Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
error starting NFS statd
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
rmoerlan
n00b
n00b


Joined: 18 Aug 2005
Posts: 5

PostPosted: Thu Aug 18, 2005 8:48 pm    Post subject: error starting NFS statd Reply with quote

When I try to start NFS I get the following:

Code:
* Error starting NFS statd                                                                                      [ !! ]


Looking at /var/log/messages it appears there is a permissions problem:

Code:
rpc.statd[17731]: open (/var/lib/nfs/state): Permission denied
rc-scripts: Error starting NFS statd


I've screwed around with the permissions on /var/lib/nfs/state to no avail.

Code:
-rw-r-xr-x   1 nobody root    0 Aug 18 15:10 state


I've done a lot of searching the documentation, these forums, usenet, and the web and can't seem to find an answer that resolves the problem.

Thoughts?

Thanks!
Back to top
View user's profile Send private message
xbmodder
Guru
Guru


Joined: 25 Feb 2004
Posts: 404

PostPosted: Thu Aug 18, 2005 10:21 pm    Post subject: Reply with quote

Can benji20 be banned now? Also in other news.
try chmod 777?
_________________
http://xbmodder.us/
Back to top
View user's profile Send private message
rmoerlan
n00b
n00b


Joined: 18 Aug 2005
Posts: 5

PostPosted: Fri Aug 19, 2005 12:11 pm    Post subject: Reply with quote

Code:
-rwxrwxrwx   1 nobody root    0 Aug 18 15:10 state


results in:

Code:
rpc.statd[19118]: Version 1.0.7 Starting
rpc.statd[19118]: open (/var/lib/nfs/state): Permission denied
rc-scripts: Error starting NFS statd


I don't get it. rpc.statd should be running with sufficient permissions to modify the state file, right?

BTW, the reason I'm running nfs-utils 1.0.7 is 1.0.6-r6 didn't work either. :(
Back to top
View user's profile Send private message
zeek
Guru
Guru


Joined: 16 Nov 2002
Posts: 480
Location: Bantayan Island

PostPosted: Sat Aug 20, 2005 7:33 am    Post subject: Reply with quote

rmoerlan wrote:
Code:
-rwxrwxrwx   1 nobody root    0 Aug 18 15:10 state


results in:

Code:
rpc.statd[19118]: Version 1.0.7 Starting
rpc.statd[19118]: open (/var/lib/nfs/state): Permission denied
rc-scripts: Error starting NFS statd


I don't get it. rpc.statd should be running with sufficient permissions to modify the state file, right?

BTW, the reason I'm running nfs-utils 1.0.7 is 1.0.6-r6 didn't work either. :(


Also check the permissions of /var, /var/lib, and /var/lib/nfs
Back to top
View user's profile Send private message
xbmodder
Guru
Guru


Joined: 25 Feb 2004
Posts: 404

PostPosted: Sat Aug 20, 2005 8:01 pm    Post subject: Reply with quote

did you 777 the state dir?
_________________
http://xbmodder.us/
Back to top
View user's profile Send private message
rmoerlan
n00b
n00b


Joined: 18 Aug 2005
Posts: 5

PostPosted: Mon Aug 22, 2005 1:07 pm    Post subject: Reply with quote

Okay,

Here are my directory permissions after running chmod 777 on them all. This is my first time really dealing with nfs since I started using Gentoo a few years ago so this one is a bit... frustrating.

from the /var/lib/nfs tree:
Code:
drwxrwxrwx  12 root   root  4096 Aug 16 15:42 var
drwxrwxrwx  13 root root 4096 Aug 18 09:17 lib
drwxrwxrwx   6 root root    4096 Aug 22 09:02 nfs


It appears I'm still getting that same stupid error. Is there a way to know whether rpc.statd is running with proper priveledges?
Back to top
View user's profile Send private message
buchan
n00b
n00b


Joined: 14 Aug 2003
Posts: 25
Location: Ottawa, Ontario

PostPosted: Fri Sep 02, 2005 2:18 am    Post subject: Reply with quote

I'm having the same problem on a fresh install. Anyone discover the solution?
Back to top
View user's profile Send private message
kik
n00b
n00b


Joined: 05 Aug 2004
Posts: 4
Location: Paris, France

PostPosted: Fri Sep 02, 2005 10:30 am    Post subject: Reply with quote

Same here, fresh 2005.1 install also. Running 2.6.12-gentoo-r9. I tried disabling NFS V4 support in the kernel, still getting the error :
Code:
Sep  2 12:44:14 nostromo Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
Sep  2 12:44:14 nostromo rpc.statd[11047]: Version 1.0.6 Starting
Sep  2 12:44:14 nostromo rpc.statd[11047]: open (/var/lib/nfs/state): Permission denied
Sep  2 12:44:14 nostromo rc-scripts: Error starting NFS statd

I checked the permissions in /var/lib/nfs :
Code:
nostromo ~ # ls -al /var/lib/nfs
total 8
drwxr-xr-x   5 root   root   99 Sep  2 11:47 .
drwxr-xr-x  14 root   root 4096 Sep  2 10:50 ..
-rw-r--r--   1 root   root    0 Sep  2 10:52 .keep
-rw-r--r--   1 root   root  156 Sep  2  2005 etab
-rw-r--r--   1 root   root    0 Sep  2 10:50 rmtab
drwxr-xr-x   2 nobody root   18 Sep  2 10:52 sm
drwxr-xr-x   2 nobody root   18 Sep  2 10:52 sm.bak
-rw-------   1 nobody root    0 Sep  2 10:50 state
drwxr-xr-x   2 root   root   18 Sep  2 10:52 v4root
-rw-r--r--   1 root   root    0 Sep  2 10:50 xtab

chmod'ing 777 /var/lib/nfs and /var/lib/nfs/state does not change anything.

Could this be a bug introduced by 2.6.12-gentoo-r9 as I have no problem on other servers running 2.6.12-gentoo-r6 ?
Back to top
View user's profile Send private message
kik
n00b
n00b


Joined: 05 Aug 2004
Posts: 4
Location: Paris, France

PostPosted: Fri Sep 02, 2005 12:59 pm    Post subject: Reply with quote

Solved the issue with "chown root:root sm sm.bak state" in /var/lib/nfs :
Code:
ls -al
total 12
drwxr-xr-x   6 root root  116 Sep  2 15:48 .
drwxr-xr-x  14 root root 4096 Sep  2 10:50 ..
-rw-r--r--   1 root root    0 Sep  2 13:07 .keep
-rw-r--r--   1 root root  156 Sep  2 15:48 etab
-rw-r--r--   1 root root    0 Sep  2 10:50 rmtab
drwxr-xr-x   2 root root    6 Sep  2 13:05 rpc_pipefs
drwxr-xr-x   2 root root   18 Sep  2 13:07 sm
drwxr-xr-x   2 root root   18 Sep  2 13:07 sm.bak
-rw-------   1 root root    4 Sep  2 15:48 state
drwxr-xr-x   2 root root   18 Sep  2 13:07 v4root
-rw-r--r--   1 root root    0 Sep  2 10:50 xtab

Now statd starts correctly, this is what I get in the syslog though :
Code:
Sep  2 15:48:08 nostromo rpc.statd[12561]: Version 1.0.6 Starting
Sep  2 15:48:08 nostromo rpc.statd[12561]: statd running as root. chown /var/lib/nfs/sm to choose different user

I am not sure if this poses a security threat of some sort. Does anybody know the implications of running rpc.statd as root ?


Last edited by kik on Wed Sep 21, 2005 9:51 am; edited 1 time in total
Back to top
View user's profile Send private message
buchan
n00b
n00b


Joined: 14 Aug 2003
Posts: 25
Location: Ottawa, Ontario

PostPosted: Fri Sep 02, 2005 4:09 pm    Post subject: Reply with quote

If you don't want it to run as root try 'chown nobody:nobody'.
Although I wonder what is the real cause of this... all my other boxes are nobody:root.
Back to top
View user's profile Send private message
kik
n00b
n00b


Joined: 05 Aug 2004
Posts: 4
Location: Paris, France

PostPosted: Mon Sep 05, 2005 11:22 am    Post subject: Reply with quote

Thanks for the tip. I just did a "chown nobody:nobody sm sm.bak state" in "/var/lib/nfs" :
Code:
nostromo nfs # ls -al
total 12
drwxr-xr-x   6 root   root    116 Sep  5 12:57 .
drwxr-xr-x  14 root   root   4096 Sep  2 10:50 ..
-rw-r--r--   1 root   root      0 Sep  2 13:07 .keep
-rw-r--r--   1 root   root    156 Sep  5 12:56 etab
-rw-r--r--   1 root   root      0 Sep  2 10:50 rmtab
drwxr-xr-x   2 root   root      6 Sep  2 13:05 rpc_pipefs
drwxr-xr-x   2 nobody nobody   18 Sep  2 13:07 sm
drwxr-xr-x   2 nobody nobody   18 Sep  2 13:07 sm.bak
-rw-------   1 nobody nobody    4 Sep  5 12:57 state
drwxr-xr-x   2 root   root     18 Sep  2 13:07 v4root
-rw-r--r--   1 root   root      0 Sep  2 10:50 xtab

and restarted nfs and netmount. Now rpc.statd starts with no warning :
Code:
Sep  5 12:57:39 nostromo rpc.statd[12532]: Version 1.0.6 Starting

I confirm all my other Gentoo boxes have nobody:root for these files as well.
Back to top
View user's profile Send private message
heilong
n00b
n00b


Joined: 23 May 2005
Posts: 45

PostPosted: Thu Dec 15, 2005 3:51 pm    Post subject: Reply with quote

I've had the same problem on a new box. Doing
"chown nobody:nobody sm sm.bak state" fixed it. The same files are owned by nobody:root on my notebook and work fine.
I really wonder what's the problem with it?
Back to top
View user's profile Send private message
Tony240zt
n00b
n00b


Joined: 10 Mar 2006
Posts: 2

PostPosted: Fri Mar 24, 2006 3:39 am    Post subject: Reply with quote

I had the same prob with a fresh install box
chmod 755 /
fixed the problem.

It was
d-wxr----t 19 root root 440 Jul 30 2005 .
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum