On Sun, May 27, 2007 at 03:30:33PM -0700, Todd A. Jacobs wrote:
> I'm trying to get a single user to default to a umask of 002, regardless
> of login method (e.g. gdm or ssh) so that I don't have to update the
> umask in a host of different places. So, I installed:
> 
>     libpam-umask/testing uptodate 0.04
> 
> and placed a .pam_umask in the user's directory. It's not clear from the
> readme what the contents ought to be, though. I've tried both:
> 
>     002
> 
> and:
> 
>     session    optional     pam_umask.so umask=002
> 
> and in neither case does the umask get properly set. It remains 0022,
> which is the login default.
> 
> What am I doing wrong here?

Couldn't you just edit /etc/profile:

   if [ "`id -ur`" -eq 1234 ]; then
      umask 002
   else
      umask 022
   fi

where 1234 is the user id?  Or is it something more subtle that 
you're trying to do?

-- 
David Jardine

"Running Debian GNU/Linux and
loving every minute of it."  -L. von Sacher-M.(1835-1895)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to