umask dilemma

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


Hi,

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        pam_umask.so umask=006
session sufficient      pam_ldap.so
session required        pam_unix.so

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?

TIA
Dieter





More information about the ubuntu-users mailing list