Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 186819 - app-portage/layman should feature a umask setting in layman.cfg
Summary: app-portage/layman should feature a umask setting in layman.cfg
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Gunnar Wrobel (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-27 16:34 UTC by Wolfram Schlich (RETIRED)
Modified: 2008-06-02 16:15 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wolfram Schlich (RETIRED) gentoo-dev 2007-07-27 16:34:29 UTC
All root accounts on machines I administer have a umask of 0077 set
via /root/.bashrc.
That leads to problems with layman, as all newly created files
of repositories checked-out by layman are not readable by the
portage user.
I have written a wrapper script I am using from cron to run
"layman -S" on a daily basis that sets a safe umask of 0022
before running layman. So far, so good.
Unfortunately sometimes I need to run "layman -S" by hand
and I *always* (yes) forget to use my wrapper script instead
or to set a proper umask by hand prior to running layman,
so I run into this permission problem.
The IMHO best solution would be a simple feature allowing
to set the umask in layman.cfg, with 0022 as the safe default.
Comment 1 Wolfram Schlich (RETIRED) gentoo-dev 2008-04-02 12:01:39 UTC
Ping :)
Comment 2 Robert Buchholz (RETIRED) gentoo-dev 2008-06-01 19:58:43 UTC
I would even go further and say that it should always work with umask 0022. All other settings just break normal usage.
Comment 3 Gunnar Wrobel (RETIRED) gentoo-dev 2008-06-02 16:15:28 UTC
Finally in CVS (layman-1.2.0). Sorry for the delay.