umask dilemma

Dieter Schicker dieter.schicker at
Fri Jan 12 17:20:57 UTC 2007


I want to set file mask to 660 and directory mask to 770 for all my
users on a certain machine. I don't want to play with /etc/login.defs
and /etc/bashrc.bashrc etc ... So I tried libpam-umask with the
following /etc/pam.d/common-session:

session required umask=006
session sufficient
session required

Well, nothing happens. If I create a file, it gets 644. Tried all kind
of combinations with absolutely no success ...

Stupid question: Does umask only affect files or groups also?

Any ideas?


More information about the ubuntu-users mailing list