Continuing from Bug 85892: After installing the new sys-apps/baselayout-1.11.12-r4 the following occurs: # /etc/init.d/net.eth0 status * status: started $ /etc/init.d/net.eth0 status * Could not create needed directory '/var/lib/init.d/softscripts'! * Could not create needed directory '/var/lib/init.d/snapshot'! * Could not create needed directory '/var/lib/init.d/options'! * Could not create needed directory '/var/lib/init.d/started'! * Caching service dependencies ... rm: cannot remove `/var/lib/init.d/depcache': Permission denied rm: cannot remove `/var/lib/init.d/deptree': Permission denied rm: cannot remove `/var/lib/init.d/broken/*': Permission denied rm: cannot remove `/var/lib/init.d/snapshot/*': Permission denied /bin/mktemp: cannot create temp file /var/lib/init.d/depcache.XrbzEUT: Permission denied * Failed to create temporary cache! bash: /var/lib/init.d/depcache: Permission denied rm: cannot remove `/var/lib/init.d/deptree': Permission denied :0: assertion failed: system(rm -f /var/lib/init.d/deptree) gawk: /lib/rcscripts/awk/gendepends.awk:440: fatal: can't redirect to `/var/lib/init.d/deptree' (Permission denied) touch: creating `/var/lib/init.d/depcache': Permission denied touch: creating `/var/lib/init.d/deptree': Permission denied * Failed to cache service dependencies [ !! ] * Error running '/sbin/depscan.sh'! * Please correct any problems above. ... so it looks as if an unpriviledged user still can't check to see if certain services have been started.
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.