On Tue, Jan 29, 2008, Clint Adams wrote:
> >  Using such an umask causes problems, and bash ships with an
> >  /etc/skel/.bashrc which sets the umask to 022.

 This is not the case anymore; umask is set in /etc/profile.  The
 rationale is in bug #155973 where it's proposed that this prevent
 sysadmins from setting the system-wide umask in /etc/login.defs.
> >  I'm well aware that it might not be a zsh bug, still the fact is that
> >  switching from the default shell to zsh can bring you into serious
> >  trouble, so I'm filing this here for now so you can decide to set the
> >  umask in /etc/skel/.zshrc.
> What's your current opinion on this?

 I guess that applies to zsh as well, and zsh shouldn't set it in a file
 which is copied to each new user's home.


 I checked where the umask is currently set on my system; upstart sets
 it to 022 for jobs by default.  I don't see initramfs-tools setting it.
 sysvinit's init set's it to 022 just when entering its main().

 I don't really know how my system ended up with a 777 umask, but I
 think the bug was in bash overriding the umask anyway, not in zsh;
 thanks for closing the bug.

-- 
Loïc Minier



--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to