Operating System - HP-UX
1826411 Members
4094 Online
109692 Solutions
New Discussion

How to share HP UX Directory

 
SOLVED
Go to solution
Al-Harbi
Occasional Contributor

How to share HP UX Directory

hi all :
I have to share Directory in my system to Allow
another Persons to access it (the Other Persons aloso that use Hp unix ) ..
how to do that ..
I thing in Sun unix There is (share command)
but in HP Unix how to share The Directory ..
many Thanks
and sorry for My English .
8 REPLIES 8
Rob_132
Regular Advisor

Re: How to share HP UX Directory

Your English is fine!!

In SAM, set up the local directory for NFS export. On the other machine set it up for NFS import. Make sure each host has the other in /etc/hosts (or whatever hostname resolution you use).

Hope this helps!
Rob
Umapathy S
Honored Contributor

Re: How to share HP UX Directory

Hi,
You can use nfs to share the dirs.
edit /etc/exports and add your dir in the server. Restart the nfs server. man exports for more details.
mount the dirs in the client to access those dirs.

HTH,
Umapathy
Arise Awake and Stop NOT till the goal is Reached!
Mark Grant
Honored Contributor

Re: How to share HP UX Directory

NFS is indeed what you want here. Alternative to the above, add the directory you want ot "share" to /etc/exports. This file should also contain the names of the machines that can share this directory. So for example, if your first machine is called hpuxa and the second machine is called hpuxb, then /etc/exports would look like this

/myshare hpuxb

If you want the "root" user to have access to it also, you would make it look like this

/myshare -root=hpuxb

On hpuxb you mount make a directory for example called /hpuxashare and do

mount hpuxa:/myshare /hpuxashare

You need only ensure that hpuxa has the nfs server running and that hpuxb has the nfs client. Also you might want to adjust the permissions on the directories
Never preceed any demonstration with anything more predictive than "watch this"
Mark Grant
Honored Contributor

Re: How to share HP UX Directory

I forgot to add that before you do the mount you also need to do an "exportfs -a" from the hpuxa machine.

Apologies
Never preceed any demonstration with anything more predictive than "watch this"
Stanimir
Trusted Contributor

Re: How to share HP UX Directory

Hi!
You can use NFS-technology. Easy way
is to do it by SAM. You have to export
needed directory from your server.
Then from other mashine you must import
it again by using SAM or command:

#mkdir /localdir
#mount -F nfs server:/shareddir /localdir

It is easy to do.
Both mashines have to be added on its
/etc/hosts-files. Check also if
your NFS-server&client is running.
If not,you could do:
#/sbin/init.d/nfs.server start


Regards..
T G Manikandan
Honored Contributor
Solution

Re: How to share HP UX Directory

Solaris HPUX

File /etc/dfs/dfstab /etc/exports

startup-script /etc/init.d/nfs.server /sbin/init.d/nfs.server

command shareall exportfs -a
share exportfs
T G Manikandan
Honored Contributor

Re: How to share HP UX Directory

previous message not wrapped
check the attachement
Al-Harbi
Occasional Contributor

Re: How to share HP UX Directory

Every body Thanks alot ,,
many many Thanks
I Solved it ..
Hot Regards ..