Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
nfsroot: start-stop-daemon stops with pam error (baselayout2
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
Abelisto
n00b
n00b


Joined: 06 Jul 2011
Posts: 1

PostPosted: Wed Jul 06, 2011 9:11 pm    Post subject: nfsroot: start-stop-daemon stops with pam error (baselayout2 Reply with quote

Hi to all,

For years I could run my nfsroot clients with the Gentoo server. After upgrading to baselayout2 the start-stop-daemon got stuck on a pam error. The clients mount (their) root filesystem as user nobody. Mounting the root filesystem as root solves the problem, but introduces a security issue.

There is a thread related to user nobody not being able to run the start-stop-daemon, which suggests altering /etc/pam.d/start-stop-daemon. No success.

The grey hair output is as follows:

* Starting udevd ...
* start-stop-daemon: pam error: Permission denied
* start-stop-daemon: failed to start `/sbin/udevd'
* start-stop-daemon: no matching process found
* ERROR: udev failed to start

/sbin is mounted, udevd does exist etc (whilst the server itself uses it)

Any suggestions? Thank you!
Back to top
View user's profile Send private message
bugfarmer
n00b
n00b


Joined: 24 Sep 2006
Posts: 46

PostPosted: Thu Jul 07, 2011 12:47 pm    Post subject: Reply with quote

nfsroot must be mounted as root for root functionality to work on the client. However, you can edit /etc/exports on the server and change the relationship between client uid/gid and server uid/gid.

That way the server sees user nobody mounting the drive while the client mounts it as root with all the privileges it entails.

This should be effectively a "chroot" share.
_________________
--- If it's unreliable, It's me that's using it.! ---
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