Operating System - HP-UX
1822148 Members
4182 Online
109640 Solutions
New Discussion юеВ

How can we mount Windows shared directory on HP-UX server

 
Phani_4
Frequent Advisor

How can we mount Windows shared directory on HP-UX server

Hi,

If anybody knows how to mount a windows shared dir. on HP-UX server..what is configuration to be done on windows machine to share a directory, so that which i can mount on HP-UX system...Please let me know.

Regards,
Phani
9 REPLIES 9
RAC_1
Honored Contributor

Re: How can we mount Windows shared directory on HP-UX server

You have cifs and samba.

with CIFS, install on windows cifs client software and server software on unix. share Windows stuff and mount it on HP-UX with mount command.

mount -F cifs .....
A plenty of docs available for this.
cifs is free product.

Samba is another option for you.(Also free)

Anil
There is no substitute to HARDWORK
H.Merijn Brand (procura
Honored Contributor

Re: How can we mount Windows shared directory on HP-UX server

and with samba it's like

# smbmount //win2k_pc/share /mount/pc/X -o username=administrator,password=secret

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Sundar_7
Honored Contributor

Re: How can we mount Windows shared directory on HP-UX server

Hi Phani,

Nothing special needs to be done on windows system apart from what you would do to share a dir to a windows system.

Windows uses CIFS for file sharing - CIFS client is the product that needs to be installed in ur HP-UX system.

It is a free product and can be downloaded from http://software.hp.com

Once you have CIFS client installed, you can use the mount/cifsmount command to mount the windows share

Sundar.
Learn What to do ,How to do and more importantly When to do ?
Wodisch
Honored Contributor

Re: How can we mount Windows shared directory on HP-UX server

Hi,

I would add a few more options to procura's example:

smbmount -o username=xxx,password=yyy,workgroup=zzz,ip=11.22.33.44,rw //winhostname/sharename /mntdir

just to be certain the name resolution does not interfere...

FWIW,
Wodisch
Steven E. Protter
Exalted Contributor

Re: How can we mount Windows shared directory on HP-UX server

There are some white papers about it in docs.hp.com

The most important thing I think is missing, is that you do need an account for the HP-UX machine on the windows domain. I set them up on the PDC and keep the passwords complex.

I use my HP-9000 server to back up critical data on its DDS3 drive.

The rest of the commands are top notch. When you use Merijn's command, do make sure access to that configuration file is tight as in root only or you'll have a potential security problem.

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
Steven E. Protter
Exalted Contributor

Re: How can we mount Windows shared directory on HP-UX server

There are some white papers about it in docs.hp.com

The most important thing I think is missing, is that you do need an account for the HP-UX machine on the windows domain. I set them up on the PDC and keep the passwords complex.

I use my HP-9000 server to back up critical data on its DDS3 drive.

The rest of the commands are top notch. When you use Merijn's command, do make sure access to that configuration file is tight as in root only or you'll have a potential security problem.

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
Sanjiv Sharma_1
Honored Contributor

Re: How can we mount Windows shared directory on HP-UX server

Trond Haugen
Honored Contributor

Re: How can we mount Windows shared directory on HP-UX server

I would reccomend CIFS as it is supported by HP and comes on the Applications CDs.

Regards,
Trond
Regards,
Trond Haugen
LinkedIn
Steven E. Protter
Exalted Contributor

Re: How can we mount Windows shared directory on HP-UX server

Okay what worked for me was this:

I'm home now:

make a local folder for mounting purposes

mkdir /targetserver.folder

cifsmount //hostname.fdqn/share /targetserver.folder -f -U root -P password -I 192.168.0.22

i actually do have a root user on my windows server by the way.

if you use cifslogout to umount, it doesnt unmont properly

to unmount, use umount /targetserver.folder

That does the job clean.

Thanks for motivating me to document this.

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