Operating System - HP-UX
1757062 Members
2103 Online
108858 Solutions
New Discussion юеВ

Re: Stopping NFS Share at hpux 11.31

 
Amit Khare
New Member

Stopping NFS Share at hpux 11.31

I want to stop NFS shares mountable by everyone .
My hp-ux is 11.31.
5 REPLIES 5
g3jza
Esteemed Contributor

Re: Stopping NFS Share at hpux 11.31

Hi,
the config file for NFS in 11.31 is in /etc/dfs/dfstab

So comment any shares that you want to disable and restart nfs.server script in:
/sbin/init.d/nfs.server

or use the #unshareall command

Dennis Handly
Acclaimed Contributor

Re: Stopping NFS Share at hpux 11.31

>I want to stop NFS shares mountable by everyone.

By everyone do you mean other machines? Or other users?
Since only root can mount filesystems, the latter doesn't make much sense.

If you want to control other machines, you need to list the machines in /etc/dfs/dfstab with the -rw= or -ro= lists.
Dennis Handly
Acclaimed Contributor

Re: Stopping NFS Share at hpux 11.31

>I want to stop the sharing of share from server to everyone.

See what I said above about -rw= and -ro=.
Amit Khare
New Member

Re: Stopping NFS Share at hpux 11.31

Everyone here means - Every host can mount the share which is share from server.I want to stop the sharing of share from server to everyone. Do we have any option in 11.31 ?
g3jza
Esteemed Contributor

Re: Stopping NFS Share at hpux 11.31

as Dennis was suggesting, try using the "-rw" option in the dfstab line like this:

#share -F nfs -o rw=hostname ...