Skip to contentSkip to conversation

nfssvc: Permission denied

DISCUSSION Antoine Jacoutot 2 participants 4 messages Nov 15, 2002 – Nov 19, 2002

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi, =20
=20
I'm using NFS under Gentoo Linux with kernel-2.4.19.=20
When starting nfs server with nfs init script (from nfs-utils), I get the=
=20
following message: =20
=20
/etc/init.d/nfs start =20
[ok ] * Starting NFS statd... =20
[ ok ] * Starting NFS rquotad... =20
[ ok ] * Starting NFS daemon... =20
nfssvc: Permission denied =20
* Error starting NFS daemon =20
[ !! ] =20
* Starting NFS mountd... =20
=20
The modules are correctly loaded: =20
nfsd 61136 0 (autoclean) =20
lockd 44080 0 (autoclean) [nfsd] =20
sunrpc 60796 0 (autoclean) [nfsd lockd] =20
=20
This error is happening on all my servers, whether the nfs is user-space = =20
or kernel-space. =20
=20
There's nothing in the logs except someting about the portmapper (in=20 auth.log): =20
Oct 7 07:03:09 srv01 portmap[29402]: connect from 127.0.0.1 to set(nfs): = =20
request from unprivileged port =20
Oct 7 07:03:09 srv01 portmap[21158]: connect from 127.0.0.1 to unset(nfs)= : =20
request from unprivileged port =20
Oct 7 07:04:40 srv01 portmap[1765]: connect from 127.0.0.1 to set(nfs):=20 request =20
from unprivileged port =20
=20
Portmap is running and I have nfs-utils-0.3.3-r1.=20
=20
Thanks in advance if you have any clue.=20
I've search Google and didn't find anything usefull (this errors appears = to=20
happen on old Linux kernels, but I'm using the lastest stable).=20 =20
-- =20
Antoine Jacoutot=20
Gentoo Linux=20
[email protected]=20
http://www.lphp.org=20
=20
=20
=20

-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing your web site with SSL, click here to get a FREE TRIAL of a Thawte Server Certificate: http://www.gothawte.com/rd524.html
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#1 lore raw
Quoted 11 lines · On Friday November 15, [email protected] wrote:

Hi,

I'm using NFS under Gentoo Linux with kernel-2.4.19.
When starting nfs server with nfs init script (from nfs-utils), I get the following message:

/etc/init.d/nfs start
[ok ] * Starting NFS statd...
[ ok ] * Starting NFS rquotad...
[ ok ] * Starting NFS daemon...
nfssvc: Permission denied

It looks like you are not running this as root. You need to.

NeilBrown

Quoted 22 lines

* Error starting NFS daemon
[ !! ]
* Starting NFS mountd...

The modules are correctly loaded:
nfsd 61136 0 (autoclean)
lockd 44080 0 (autoclean) [nfsd]
sunrpc 60796 0 (autoclean) [nfsd lockd]

This error is happening on all my servers, whether the nfs is user-space or kernel-space.

There's nothing in the logs except someting about the portmapper (in auth.log):
Oct 7 07:03:09 srv01 portmap[29402]: connect from 127.0.0.1 to set(nfs):
request from unprivileged port
Oct 7 07:03:09 srv01 portmap[21158]: connect from 127.0.0.1 to unset(nfs):
request from unprivileged port
Oct 7 07:04:40 srv01 portmap[1765]: connect from 127.0.0.1 to set(nfs):
request
from unprivileged port

Quoted 23 lines

Portmap is running and I have nfs-utils-0.3.3-r1.

Thanks in advance if you have any clue.
I've search Google and didn't find anything usefull (this errors appears to happen on old Linux kernels, but I'm using the lastest stable).

Signature · 16 lines
Antoine Jacoutot 
Gentoo Linux 
[email protected] 
http://www.lphp.org 
 
 
 


-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing
your web site with SSL, click here to get a FREE TRIAL of a Thawte
Server Certificate: http://www.gothawte.com/rd524.html
_______________________________________________
NFS maillist  -  [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing your web site with SSL, click here to get a FREE TRIAL of a Thawte Server Certificate: http://www.gothawte.com/rd524.html
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#2 lore raw
Quoted 5 lines · Neil Brown
Quoted 4 lines · On Friday November 15, [email protected] wrote:

Hi,

I'm using NFS under Gentoo Linux with kernel-2.4.19.
When starting nfs server with nfs init script (from nfs-utils), I get=

the

Quoted 10 lines
Quoted 7 lines

following message:

/etc/init.d/nfs start
[ok ] * Starting NFS statd...
[ ok ] * Starting NFS rquotad...
[ ok ] * Starting NFS daemon...
nfssvc: Permission denied

It looks like you are not running this as root. You need to.

I am running is as root !
Besides, it works, but after 7 or 8 times restarting the service. This is=
very=20
strange.

-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing your web site with SSL, click here to get a FREE TRIAL of a Thawte Server Certificate: http://www.gothawte.com/rd524.html
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#3 lore raw
Quoted 14 lines · On Tuesday November 19, [email protected] wrote:
Quoted 13 lines · Neil Brown
Quoted 11 lines · On Friday November 15, [email protected] wrote:

Hi,

I'm using NFS under Gentoo Linux with kernel-2.4.19.
When starting nfs server with nfs init script (from nfs-utils), I get the following message:

/etc/init.d/nfs start
[ok ] * Starting NFS statd...
[ ok ] * Starting NFS rquotad...
[ ok ] * Starting NFS daemon...
nfssvc: Permission denied

Quoted 6 lines
Quoted 2 lines

It looks like you are not running this as root. You need to.

I am running is as root !
Besides, it works, but after 7 or 8 times restarting the service. This is very strange.

Strange indeed.
The only time that nfsd should give this message is
if (!capable(CAP_SYS_ADMIN)) {

Maybe if you
sh -x /etc/init.d/nfs start

and double check which program is producing the error, and then
strace ....
that program.

NeilBrown

-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing your web site with SSL, click here to get a FREE TRIAL of a Thawte Server Certificate: http://www.gothawte.com/rd524.html
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs