Building RPM for Openssh5.6p1 fails on RHEL 6.0
Peter Stuge
peter at stuge.se
Thu Dec 16 15:10:33 EST 2010
Rob C wrote:
> The umask functionality in sftp-server.c ver 5.5 will not work as
> expected due to the -u argument being parsed as decimal. The fix (which
> will likely be in the next version) uses:
> mask = strtol(optarg, &cp, 8);
I'd suggest setting 0 for the base, so that the standard way of
parsing umask is used. (Ie. leading 0 means octal.)
> For me, it's not so great as I want to control permissions of a file
> received via sftp-server and the umask option does not provide
> sufficient fine-grained control of file permissions.
> (Understandably so.)
Maybe use an ACL (if only for now).
> The bottom line is that the fixed "-u <umask>" will do exactly what it
> is supposed to do - masks permission bits, you just can't count on what
> bits it will mask.
$ echo $[022]
18
//Peter
More information about the openssh-unix-dev
mailing list