On Sat, 31 Oct 2015, Georgios Zarkadas wrote:

> Hi Yaroslav,

> This seems to be the effect of a restrictive umask (0077,
> specifically) to user root, either through explicitly setting it at
> your startup files, or through pam settings.

> Dhelp code does not set permissions for the created files, rather
> assumes the customary 0022 umask for user root. There is a *lot* of
> code out there that does this assumption, so I would not consider this
> a bug.

> Although it is quite some time since the original report, if you could
> confirm whether that was the case then it would be useful.

confirming:

- I do have umask 077 for my user
- I do not set umask 077 explicitly anywhere for root, so if I just
  login in a terminal console, root's umask 022
- umask is restrictive (077) if I su or sudo into root:

% umask
077
% su
Password: 
root@xxx:/home/yoh# umask
0077
root@xxx:/home/yoh# exit
% sudo -s
[sudo] password for yoh: 
# umask
077
# 
% umask 022
% umask
022
% su
Password: 
root@xxx:/home/yoh# umask
0022

hope this helps
 
-- 
Yaroslav O. Halchenko
Center for Open Neuroscience     http://centerforopenneuroscience.org
Dartmouth College, 419 Moore Hall, Hinman Box 6207, Hanover, NH 03755
Phone: +1 (603) 646-9834                       Fax: +1 (603) 646-1419
WWW:   http://www.linkedin.com/in/yarik        

Reply via email to