Re: libpam_umask setup



* From: Bug <recvfrom@xxxxxxxxx>
But when I login in, I still get umask 022. What step am I missing?

I do not use pam_umask , but:

(1) /usr/share/doc/libpam-umask/README says:

If a user has a .pam_umask
in his home directory, the contents will be used to set the umask.

(2) Linkname: pam_umask(8) - Linux man page
URL: http://linux.die.net/man/8/pam_umask
says

The PAM module tries to get the umask value from the following places in the following
order:
* umask= argument
* umask= entry of the users GECOS field
* pri= entry of the users GECOS field
* ulimit= entry of the users GECOS field
* UMASK= entry from /etc/default/login
* UMASK entry from /etc/login.defs

It also speaks about a debug option.

Looking at the sources (apt-get source libpam-umask), I dubt that the
man page applies to the debian version of libpam-umask, but a look at
the above files (/etc/passwd) might be worthy.

(3) perhaps a

# strace -f -o /tmp/login.strace.log login -f user

might help


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: libpam_umask setup
    ... I still get umask 022. ... umask= entry of the users GECOS field ... I find this package a bit maddening. ...
    (Debian-User)
  • Re: Is there a work-around for a umask bug in rssh/chroot ??
    ... (so thatumaskhas full control of what will end up on the inode)? ... If sftp/rssh is trying to ... in the /etc/profile only umask is set. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Setting Default Group Permissions In Folders
    ... I have used chmod to allow new files/folders to automatically get the ... umask however umask is reset every time you login and yadda yadda. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: passwd
    ... 1.First check the umask of /etc/passwd file because this is the file that has uid already set 2.if u find the umask is 644,that's pretty good 3.otherwise try to change it as 644 and now try to change the password as user i think u will definitely fix the problem at this stage try and enjoy ... >>If you are not the intended recipient, you are hereby notified>that any dissemination of this communication is strictly prohibited. ... >>If you have received this communication in error, please erase>all copies of the message and its attachments and notify us>immediately. ... >>-->redhat-list mailing list>unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe ...
    (RedHat)
  • Re: Mounting Vfat file system and umask
    ... > adding an entry in fstab. ... > system as a user and I suspect it is because of an incorrect umask. ... I'm able to write to that windows drive with that entry in my /etc/fstab. ...
    (comp.os.linux)