| Summary: | Running "/etc/init.d/* status" as non-root still broken in new baselayout | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Stuart Shelton <srcshelton> |
| Component: | [OLD] baselayout | Assignee: | Gentoo's Team for Core System packages <base-system> |
| Status: | RESOLVED FIXED | ||
| Severity: | major | ||
| Priority: | High | ||
| Version: | 2005.0 | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Stuart Shelton
2005-06-09 13:30:15 UTC
Works here: j__m@testbox ~ $ /etc/init.d/net.eth0 status * status: started Hmm - well, as you can see, mine certainly isn't working! Could you suggest anything I could try/trace/check the permissions on to fix this? svcmount = no in /etc/conf.d/rc, incidentally... What are the permissions on your /var/lib/init.d directory? (In reply to comment #2) > What are the permissions on your /var/lib/init.d directory? $ ls -la /var/lib/init.d total 40 drwxr-xr-x 6 root root 180 Jun 9 19:39 . drwxr-xr-x 12 root root 320 May 31 18:25 .. -rw------- 1 root root 22980 Jun 9 19:39 depcache -rw-r--r-- 1 root root 12027 Jun 9 19:39 deptree drwxr-xr-x 2 root root 40 Jun 4 16:59 options drwxr-xr-x 2 root root 40 Jun 9 19:37 snapshot -rw-r--r-- 1 root root 8 Jun 4 16:59 softlevel drwxr-xr-x 2 root root 660 Jun 4 16:59 softscripts drwxr-xr-x 2 root root 680 Jun 6 23:21 started Hmm - seems my init.d directory was wrong, it had permissions 644. I don't know how this might have happened... I've corrected that to 755, and have: $ ls -la /var/lib/init.d/ total 160K drwxr-xr-x 6 root root 4.0K Jun 10 01:06 . drwxr-xr-x 35 root root 4.0K Jun 6 13:07 .. -rw------- 1 root root 73K Jun 10 01:06 depcache -rw-r--r-- 1 root root 40K Jun 10 01:06 deptree -rw-r--r-- 1 root root 9.1K Jun 9 10:11 envcache drwxr-xr-x 2 root root 4.0K Jun 10 00:21 options drwxr-xr-x 2 root root 4.0K Jun 10 00:26 snapshot -rw-r--r-- 1 root root 8 Jun 10 00:22 softlevel drwxr-xr-x 2 root root 4.0K Jun 10 00:22 softscripts drwxr-xr-x 2 root root 4.0K Jun 10 00:44 started ... but even with this, I get the following: $ /etc/init.d/net.eth0 status /lib/rcscripts/sh/rc-services.sh: line 22: /var/lib/init.d/deptree: No such file or directory * Dependency info is missing! Please run * # /sbin/depscan.sh * to fix this. Update: Strange... ran it a second time, and everything works just fine. |