umask dilemma [UGLY SOLUTION]
dieter.schicker at uni-graz.at
Mon Jan 15 14:46:35 UTC 2007
Just in case someone wants to know:
I solved my umask dilemma after investigating some threads by hardcoding
"umask 0007" in /etc/login.defs, /etc/profile and in every user's
~/.gnomerc . Ugly, but it works for me ... It's really sad that
libpam-umask doesn't work because IMHO that would be the best solution.
Dieter Schicker wrote:
> thanks for your answer but it still doesn't work.
>>> session required pam_umask.so umask=006
>> You want to set the umask to 007, otherwise directories will get mode
>> 771 instead of 770.
> Oh yes, thanks!
>> Probably the 'umask 022' in /etc/profile overrides your pam_umask
>> setting. Remove it from /etc/profile and try again.
> Removed it but I still get 644 permissions. Even if I hardcode "umask
> 007" in /etc/login.defs and /etc/bash.bashrc and /etc/profile I get 644
> ... Event if I put it into the users ~/.bashrc or ~/.bash_profile I get
> 644. I'm getting frustrated as you can imagine ... ;-)
> Also grep'd for "umask" whereever it seems useful (home directory, /etc
> directory, ...) with no success.
> Any further ideas?
Server- und Netzwerkadministration, Applikationsentwicklung, Lehre
Institut für Informationsverarbeitung in den Geisteswissenschaften
A - 8010 Graz
More information about the ubuntu-users