Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 103463 - GNAP: Users other than root fail
Summary: GNAP: Users other than root fail
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: GNAP (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Network Appliance Bugs
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 103320
  Show dependency tree
 
Reported: 2005-08-23 08:17 UTC by Thierry Carrez (RETIRED)
Modified: 2005-08-31 05:05 UTC (History)
0 users

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 Thierry Carrez (RETIRED) gentoo-dev 2005-08-23 08:17:48 UTC
Trying to execute things with different users than the "root" user will probably
fail on current GNAP systems.

The problem comes from the rights of the / directory in the booted system :
drwx------   root root

Other users can't really explore the filesystem from there.

Dirty workaround for people making their own GNAP cores:
Add a "chmod a+rx /" somewhere in specs/root_overlay/etc/init.d/overlay
Comment 1 Thierry Carrez (RETIRED) gentoo-dev 2005-08-24 03:17:17 UTC
This comes from the temporary directories created by gnap_overlay (and probably
gnap_remaster too) having restrictive permissions that sets the / of the
overlay.tar.gz and extensions tarfiles to rwx------. When untarred on the live
filesystem (at boot time for overlay and probably at remaster time for
extensions) the root permissions are overwritten.
Comment 2 Thierry Carrez (RETIRED) gentoo-dev 2005-08-28 02:37:02 UTC
This will need a revamping of how temporary resources are handled in GNAP. Make
a single temporary directory in which other directories will be created, and
clean only one at the end. Also no need to put more than 6 X's in mktemp :)
Comment 3 Thierry Carrez (RETIRED) gentoo-dev 2005-08-29 02:57:17 UTC
Fix in CVS.
Comment 4 Thierry Carrez (RETIRED) gentoo-dev 2005-08-31 05:05:26 UTC
Fixed in 1.8.1 release