Operating System - HP-UX
1753768 Members
5293 Online
108799 Solutions
New Discussion

Re: NFS share command for user

 
fernandojose
Occasional Contributor

NFS share command for user

Hi,

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
SOPHIA / #

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

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

Wait

 

 

1 REPLY 1
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