Showing results for 
Search instead for 
Did you mean: 

NFS share command for user

Occasional Contributor

NFS share command for user


I would like to share FS servers:

server: sophia (HP-UX 11.31)

client: marta (HP-UX 11.31)

SOPHIA / # share -F nfs -o access=marta /adamanut

marta:/:>mount sophia:/adamanut /sophia
nfs mount: sophia:/adamanut: Permission denied

o would like to mount by user SAG in the marta client

i put the commmand and work, but dont access by user SAG, only root

:SOPHIA / # share -F nfs -o rw=marta /adamanut




Bill Hassell
Honored Contributor

Re: NFS share command for user

The share command is found in /usr/sbin, the directory reserved for root usage. The share coomand needs access to kernel networking and NFS code, none of which can be run by a non-root user.

This command could be added to the sudo config file for this user. But this gives the user the power to make mistakes as the root user. The better choice is to have the sysadmin setup automount for the selected mount point. That way, it will always be available when needed.

Bill Hassell, sysadmin