1826230 Members
4765 Online
109692 Solutions
New Discussion

Re: sharing

 
Indrajit Bhagat
Regular Advisor

sharing

Dear Sir,
How to Share a File oo directory in HP UNIX
4 REPLIES 4
Ramaprasad N
Honored Contributor

Re: sharing

You may have to use samba for file sharing and accessing the same over the network from otehr windows based servers as well. However, if it is to share between two unix servers, you can do an NFS mount itself. export the required directory from the source system and mount the same on to any directory on the destination file system. I think to export the directory, you have to put the directory path in /etc/exports and then execute exportfs -a (from the top of my mind).

-Ram
Laerte Cardoso
Frequent Advisor

Re: sharing

Hi Indrajit,

Server A (NFS Server)
#> vi /etc/exports
/name_FS_to_export
#> exportfs -a (to validate)
#> exportfs (to confirm)

Server B (NFS Client)
mkdir /Mydir

mount SERVER_A:/name_FS_to expor (From server) /Mydir

it´s all.

Steven E. Protter
Exalted Contributor

Re: sharing

Shalom,

For unix

vi /etc/exports

/directoryname

save it

exportfs -av

CIFS/9000 Samba permits you to do the same thing for Windows Clients. It requires additional software installation.

Search for CIFS/9000 on http://software.hp.com

Download and install both server and client products. The client requires a system reboot.

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
spex
Honored Contributor

Re: sharing

Hi,

Depending on your intended use, an FTP server may be a better fit for you.

# man ftpd
for information on setting up the "DARPA Internet FTP server" which comes with HP-UX.

An alternative server, proftpd, is available in depot form here:
http://hpux.connect.org.uk/hppd/hpux/Networking/FTP/proftpd-1.3.0/

Other options include sftp (openssh.org), scp (openssh.org), rcp, and nc (ncat).

PCS