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

Re: unable to modify umask settings in wheezy 7.8



On Mon, 2015-06-08 at 16:51 +0200, Fekete Tamás wrote:
> Hello everyone,
> 
> I use wheezy 7.8 on x86_64 architecture and I'm simply unable to modify the
>  umask settings of the system. I have read many webpages for solution (even
>  helps specified for debian) but didn't find the answer what to do.
> 
> Now, my umask is the default umask: 0022. I want it to be 0077.
> 
> I took two steps to modify this variable. The first that I have edit
> /etc/login defs. I rewrite the UMASK part of the file to look like this:
> UMASK 077
> 
> My second step was to edit /etc/pam.d/common-session. I add a last line to
> the:
> #and here are moe per-package modules part of the file. The line is looking
> like
>  this:
> session optional pam_umask.so umask = 0077
> 
> The umask settings are not modified even if I am in gnome, or in normal
> shell.
> If you have any advice or good knowledge what is still missing to work,
> please
> share!

Even with pam, a I think a user can override this, do you have any umask
settings in ~/.profile or similar files?

Try checking the list in the second answer here, but it sounds like
you've made all the right changes.

http://stackoverflow.com/questions/10220531/how-to-set-system-wide-umask

-- 
Cheers,
Sven Arvidsson
http://www.whiz.se
PGP Key ID 6FAB5CD5


Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: