Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 103463

Summary: GNAP: Users other than root fail
Product: Gentoo Hosted Projects Reporter: Thierry Carrez (RETIRED) <koon>
Component: GNAPAssignee: Gentoo Network Appliance Bugs <gnap>
Status: RESOLVED FIXED    
Severity: major Keywords: InVCS
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 103320    

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