Bug 53265 - rpc.statd fails to start.
Summary: rpc.statd fails to start.
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: nfs-utils
Version: 9
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Pete Zaitcev
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-09-05 19:17 UTC by lars
Modified: 2007-04-18 16:36 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-04-19 19:32:04 UTC
Embargoed:


Attachments (Terms of Use)

Description lars 2001-09-05 19:17:42 UTC
Description of Problem:

Any attempt to start rpc.statd fails with the following error in
/var/log/messages:

nfslock: rpc.statd startup succeeded
rpc.statd[8286]: Cannot access current directory after dropping privs:
access() 

Version-Release number of selected component (if applicable):

nfs-utils-0.3.1-12

How Reproducible:

Just run rpc.statd; you can also run the 'nfslock' init script.

Steps to Reproduce:
1. 
2. 
3. 

Actual Results:


Expected Results:


Additional Information:

Just for kicks I tried changing to /tmp and then rpc.statd by hand, and it
still fails with the same error.  The error is accurate; an strace of the
process concludes with:

8222  setuid32(0x1d)                    = 0
8222  getgid32()                        = 29
8222  getuid32()                        = 29
8222  access(".", R_OK|W_OK|X_OK)       = -1 EACCES (Permission denied)

Comment 1 lars 2001-09-05 19:39:23 UTC
So, the problem is pretty obvious.  rpc.statd changes to uid 29/gid 29
(rpcuser/rpcuser), and tries to chdir() to /var/lib/nfs/statd.  The permissions
in /var/lib/nfs look like this:

-rw-r--r--    1 root     root          799 Sep  4 16:21 etab
-rw-r--r--    1 root     root         2077 Sep  5 15:33 rmtab
drwxr-xr-x    4 root     root         4096 Sep  5 15:45 statd
-rw-r--r--    1 root     root         1952 Sep  5 14:51 xtab
The statd() directory should be chgrp'd to rpcuser, and then chmod'd to allow
group read/write/execute access.


Comment 2 Bob Matthews 2001-09-10 14:55:05 UTC
The nfs-utils RPM should make /var/lib/nfs/statd owned by rpcuser by default. 
What happens if you reinstall the nfs-utils RPM?


Note You need to log in before you can comment on or make changes to this bug.