[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: umask



Thats what I already tried. I can't belive it is so hard to set spezial user settings vor the bash.

i want to change the default umask permanently for one user.

1. I change the .bashrc file. uncommented umask
nothing

2. I added a .pam_umask file with 002 in it.
nothing

3. I tryed to change umask for all in /etc/pam.d/common-session
session optional        pam_umask.so umask=077
nothing

4. I changed /etc/passwd for all.
This worx.



Douglas A. Tutty schrieb:
On Mon, Jan 21, 2008 at 10:02:39AM -0600, Dave Sherohman wrote:
On Mon, Jan 21, 2008 at 12:20:24PM +0100, Christian Ruffer wrote:
i want to change the umask permanently for one user.

1. I change the .bash_profile file. uncommented umask
nothing
Have you tried setting it in .bashrc?  Depending on how a shell comes
into existence, .bash_profile may or may not run, but .bashrc always
will.  (Or, more accurately, bash will run either .bash_profile or
.bashrc on startup, depending on how it's called, but the default Debian
.bash_profile starts off by running .bashrc.)


You also have to define permanently.  umask will always be under the
user's control and can be changed at will.
There's also any settings in the /etc/ bash-related files.

There's also libpam-umask to play with.

Doug.




Reply to: