Operating System - HP-UX
1833461 Members
3238 Online
110052 Solutions
New Discussion

Re: /sbin/init.d/nfs.core.... can be disabled ?

 
SOLVED
Go to solution
Jdamian
Respected Contributor

/sbin/init.d/nfs.core.... can be disabled ?

My box doesn't use NFS (neither CLIENT nor SERVER), but I saw 'nfs.core' is started anyway in startup.

it starts 'RPC' listening on UDP ports... for security reasons I'm interested to prevent this.

What is it for nfs.core?
how can it be disabled in startup ?

Thanx in advance
9 REPLIES 9
Thierry Poels_1
Honored Contributor

Re: /sbin/init.d/nfs.core.... can be disabled ?

Hi,

have a look at /etc/rc.config.d/nfsconf

good luck,
Thiery.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
Ravi_8
Honored Contributor

Re: /sbin/init.d/nfs.core.... can be disabled ?

Hi

Core NFS comes along with OS as core DCE/SNAPlus.

for your secirity reason if you disable these services that's more than sufficient.
(#/sbin/init.d/nfs.server stop
#/sbin/init.d/nfs.client stop
set the flag to 0 in /etc/rc.config.d/nfsconf file
i.e NFS_SERVER=0
NFS_CLIENT=0)

You can remove the core NFS by using
#swremove -i
(choose the NFS and remove)
never give up
Armin Feller
Honored Contributor

Re: /sbin/init.d/nfs.core.... can be disabled ?

Hi,

please edit /etc/rc.config.d/nfsconf and set client and server to "0":

NFS_CLIENT="0"
NFS_SERVER="0"

I'm not sure, but nfs.core seams to be the main service you need if you wants to have the system working as nfs-client or nfs-server.

You can stop nfs.core by following command:

# /sbin/init.d/nfs.core stop

And you can (but only if you are sure what you do) move the start-, killscript out of the way that the system didn't start it by next reboot:

# mv /sbin/rc2.d/S400nfs.core /tmp/nfs/rc2/

# mv /sbin/rc1.d/K600nfs.core /tmp/nfs/rc1/

Hope that helps.

Regards ...
Armin
Jdamian
Respected Contributor

Re: /sbin/init.d/nfs.core.... can be disabled ?

I forgot to say that nfsconf is properly configured:

NFS_CLIENT=0
NFS_SERVER=0

I don't want to remove the NFS product because, perhaps, I'll need it in the future. I just want to disable.

My main question is: why nfs.core is started if client and server services aren't configured to run ?
Ravi_8
Honored Contributor

Re: /sbin/init.d/nfs.core.... can be disabled ?

Hi,

Because scripts are in /sbin/rc2.d for core nfs to start, if you don't want to start

#cd /sbin/rc2.d
#unlink S400nfs.core
#unlink S430nfs.client
never give up
Ravi_8
Honored Contributor

Re: /sbin/init.d/nfs.core.... can be disabled ?

Hi,

Because scripts are in /sbin/rc2.d for core nfs to start, if you don't want to start

#cd /sbin/rc2.d
#unlink S400nfs.core
#unlink S430nfs.client
#reboot

now nfs.core wouldn't start
never give up
David_246
Trusted Contributor
Solution

Re: /sbin/init.d/nfs.core.... can be disabled ?

Hi,

Indeed the params are set in /etc/rc.config.d/nfsconf.
The following should be set to 0 -->
NFS_CLIENT
NFS_SERVER
AUTOMOUNT
START_MOUNTD

If the first two options are set to 0, both client and server process terminate immediatly. So no big deal in that. For the core, you can always mv the S400nfs.core to s400nfs.core
This way (the lower case "s") you keep spotting it, but it will not be executed anymore, and off course this will have to be done with the "k"-file as well.

Regs David
@yourservice
Michael Knaup
Advisor

Re: /sbin/init.d/nfs.core.... can be disabled ?

Hi,

you should be aware that nfs.core starts the rpcbind process, which can register other applications like nfs or nis. So you should first check with "rpcinfo -p", if anything important is registered at rpcbind, before disabling nfs.core.

Cheers,

Michael
Chris Vail
Honored Contributor

Re: /sbin/init.d/nfs.core.... can be disabled ?

I'm with the others that note that nfs.core starts the rpc.bind process. Among other things, Open Desktop uses this. If you turn this off, you won't be able to log in graphically either. You're better off starting nfs.core and turning off the client and server portions, as otherwise noted.


Chris