Re: umask in X different to bash
Rich wrote:
Hey
did you ever find out how to control UMASK for X?
: )
rich
Hi all!
I struggled with the umask about a month ago with KDE. Here is the best
solution I found with the help of the other list members:
libpam-umask
With this package, you can control the default umask which is set after
authentication, which works in X sessions, console, etc. The package is
available in testing and unstable, but I compiled the source code with
no problem on my Woody box.
The solution:
1) Download the source package.
2) Compile the source code and make a .deb from it with
dpkg-buildpackage -rfakeroot -uc -b
(You must install other packages the compiler requests, and
fakeroot) Fakeroot isn't necessary if you are root, I think.
3) Install the package with dpkg -i packagename.deb
4) Edit /etc/pam.d/login: Add the line
session optional pam_umask.so umask=022
(or whatever umask you like)
Of course, if you use sagre, or sid, just enter the line to the config file!
Regards.
Alex.
Reply to: