marius at pov.lt
Fri Jan 12 18:00:27 UTC 2007
On Fri, Jan 12, 2007 at 06:20:57PM +0100, Dieter Schicker wrote:
> 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
You want to set the umask to 007, otherwise directories will get mode
771 instead of 770.
> 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 ...
Probably the 'umask 022' in /etc/profile overrides your pam_umask
setting. Remove it from /etc/profile and try again.
EMACS is a good OS. The only thing it lacks is a decent text-editor.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 189 bytes
Desc: Digital signature
More information about the ubuntu-users