Operating System - HP-UX
1833694 Members
3577 Online
110062 Solutions
New Discussion

Sharing for a specific machine

 
Ahmed_41
Super Advisor

Sharing for a specific machine

Dear All,

i am workin gon an HPUX machine, i am doing an export file to share and mount some folders on a windows machine using the NFS client on windows and NFS server on HPUX,
i need to do something to prevent anyone else except my machine to mount or access these shares except for my owen machine

can someone tell me how to do it
Thanks
5 REPLIES 5
Peter Godron
Honored Contributor

Re: Sharing for a specific machine

Ahmed,
if you use SAm to export the FS you can set the hostname and the access restrictions(read only, read/write)
or
have a look at man exportfs
specifically the -o option section
Regards
Simon Hargrave
Honored Contributor

Re: Sharing for a specific machine

in your /etc/exports use something like:

/folder/to/share -access=yourpc

then exportfs -a
Steven E. Protter
Exalted Contributor

Re: Sharing for a specific machine

/etc/exports can limit by hostname

/foldername access=myclient

myclient is a hostname or an ip address

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ahmed_41
Super Advisor

Re: Sharing for a specific machine

Thanks all

but what is the difference between what you said and this

/foldername -root=myclient

when i do this i still can connect to these shares from any clinent other than myclient

i mean, i have added the above line to my exports file and i can still access these shares from other machine other than myclient

so ?
Simon Hargrave
Honored Contributor

Re: Sharing for a specific machine

the root option is saying "let this specific client have root equivelancy, that is they have full root access to the drive", and let everyone else have basic access.

if you want you and you only to have root access, then combine the options:

/dir -access=mypc,root=mypc