[Pkg-shadow-devel] Bug#711104: Bug#711104: login: su - doesn't set umask

Christian PERRIER bubulle at debian.org
Wed Jun 5 05:00:29 UTC 2013


Quoting Piotr Engelking (inkerman42 at gmail.com):
> Package: login
> Version: 1:4.1.5.1-1
> Severity: important
> 
> The 'su -' command, unlike login, doesn't set umask. This behavior
> disagrees with the man page, which says:
> 
>   The optional argument - may be used to provide an environment similar
>   to what the user would expect had the user logged in directly.
> 
> Operating with an unexpected umask value is dangerous, particularly so
> if running as root.
> 
> Please change su - to set umask to the same value that login does.


Without checking, though, I suspect this to be a PAM issue.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-shadow-devel/attachments/20130605/bf9f5a46/attachment.pgp>


More information about the Pkg-shadow-devel mailing list