Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
umask for single user
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
p0tter
n00b
n00b


Joined: 06 Mar 2013
Posts: 1

PostPosted: Wed Mar 06, 2013 3:54 pm    Post subject: umask for single user Reply with quote

Hey there.

Setting the umask for all users works fine.
Code:
% grep UMASK /etc/login.defs
# UMASK is also used by useradd and newusers to set the mode of new home
UMASK      077


But I would like to change the umask for one single user. Now the manual of login.defs says this:
Quote:
It is also used by login to define users' initial umask. Note that this mask can be overriden by the user's GECOS line (if QUOTAS_ENAB is set) or by the specification of a limit with the K identifier in limits(5).


I can't activate QUOTAS_ENAB though. When I do i get this error: configuration error - unknown item 'QUOTAS_ENAB' (notify administrator) (shadow 4.1.4.3). So it won't work. Sadly using limits is also no option, since Gentoos limits.conf is another kind of limits file. I also can't use .bashrc or something like that, because often I start programs via sudo, so there is no bash involved.

Has anyone an idea how to solve this problem under Gentoo? Thanks.
Back to top
View user's profile Send private message
eyoung100
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1428

PostPosted: Thu Mar 07, 2013 3:08 pm    Post subject: Reply with quote

See this Really OLD POST:
problems with a fresh G1.2 install
_________________
The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum