[Nix-dev] umask and rebuild switch

Lluís Batlle i Rossell viric at viric.name
Thu Mar 22 00:33:34 CET 2012


On Thu, Mar 22, 2012 at 12:31:54AM +0100, Lluís Batlle i Rossell wrote:
> Hello,
> 
> I screwed quite enough things today...
> 
> I was running a root shell with "umask 200", and I typed: nixos-rebuild switch
> 
> That made all my /var/setuid-wrappers with bad permissions for the ".real"
> files, namely "600", and things like sendmail (owned by nobody) couldn't read
> the '.real' file, and failed. No mail.
> 
> Maybe the activation script should send the umask?

*set* the umask.

Or the activation script should set the permissions properly for the .read
files.


More information about the nix-dev mailing list