Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 18971 - tmpfs svcdir has permissions 0644
Summary: tmpfs svcdir has permissions 0644
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-08 10:34 UTC by Mark Aikens
Modified: 2003-04-21 16:40 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 Mark Aikens 2003-04-08 10:34:14 UTC
When running as a normal user, it's impossible to get any information about currently 
running services because /mnt/.init.d has the odd permissions of 0644. I don't know if 
this is by design but 0644 is extremely odd for a directory. 
 
The fix is to change the tmpfs mount option "mode=0644" to "mode=0755" in /sbin/rc 
and /etc/init.d/checkroot. 

Reproducible: Always
Steps to Reproduce:
1. As a non-root user, "ls /mnt/.init.d" 
2. 
3. 
Actual Results:  
ls: /mnt/.init.d/softscripts: Keine Berechtigung 
ls: /mnt/.init.d/softlevel: Keine Berechtigung 
... 

Expected Results:  
A directory listing
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2003-04-21 16:40:03 UTC
Its a security feature ... if its my box that a lot of users use .. the
less they can find out about what is going on with stuff that *should*
not be thier worry, the better.