Operating System - HP-UX
1822000 Members
3764 Online
109639 Solutions
New Discussion юеВ

Sharing a FS between Windows - Unix

 
SOLVED
Go to solution
sdip
Advisor

Sharing a FS between Windows - Unix

Hi,

Is there any way we can mount any Windows directory to our HP-UX box. I have installed SAMBA in our HP-UX box & trying to find if I can mount the same. My Windows server is standalone box, it is not attached with any domain, but my Unix box is attached with Domain.

Can anybody advise me how it can acheive
10 REPLIES 10
Luk Vandenbussche
Honored Contributor

Re: Sharing a FS between Windows - Unix

Hi,

You can do this with smbclient

Check the man page

man smbclient

http://www.hmug.org/man/1/smbclient.php
Vladimir Fabecic
Honored Contributor

Re: Sharing a FS between Windows - Unix

Hello,
smbfs is linux only feature. No other version of Unix supports that. You need kernel level support for such a thing.
You can install NFS services on windows box and mount windows share as NFS file system.
There is also possibility to use linux box "as a bridge" to do that.
In vino veritas, in VMS cluster
sdip
Advisor

Re: Sharing a FS between Windows - Unix

Thanks all for your advise. Since I already told we are using HP-UX box so not sure how we can use linux feature..

I also have a look that smbclient facility but no luck..
Vladimir Fabecic
Honored Contributor

Re: Sharing a FS between Windows - Unix

In that case the best way should be to install NFS services in windows.
How to use linux feature?
First mount windows share in some mount point as smbfs (for example /mnt/windisk). Than export that directory as NFS share so HP-UX can mount it.
In vino veritas, in VMS cluster
Darren Prior
Honored Contributor
Solution

Re: Sharing a FS between Windows - Unix

Hi,

You could use HP's CIFS client software. It's free and supported by HP. There is documentation available from http://docs.hp.com

regards,

Darren.
Calm down. It's only ones and zeros...
sdip
Advisor

Re: Sharing a FS between Windows - Unix

Thanks Darren,

I think I was looking for this solution. Would appreciate if you can pass me some example configs where dir canbe mounted from WIN to HP-UX
Rita C Workman
Honored Contributor

Re: Sharing a FS between Windows - Unix

sdip

To make a simple connection between UNIX and Windows you create your samba environment and set up a samba share (that's what you mount to when coming from Windows to UNIX).
To start Samba...it's startsmb; to stop stopsmb; to check status smbstatus.
Make sure you put where these are in your PATH statement (/opt/samba/bin).
Then on the Windows box you just go to Start/Explore and from top toolbar hit Tools/Map Network Drive...then select an open drive, in Folder put: \\UNIX-Box\share-name

Now if Windows is exporting the file system, get that info from Windows on how to do it.
On the UNIX box to import the file system is a simple matter of mounting an NFS fs...
/usr/sbin/mount -F nfs :

Rgrds,
Rita

...least that's as far as memory recalls...
Darren Prior
Honored Contributor

Re: Sharing a FS between Windows - Unix

This is covered in the CIFS client admin guide, but the basics are:

cifsclient start
mount -F cifs servername:/sharetomount /mountpoint
cifslogin servername accountname

You can then use cifslist to show the connections, and use normal HP-UX commands to move round the share, delete/write files, etc.

regards,

Darren.
Calm down. It's only ones and zeros...
Gavin Clarke
Trusted Contributor

Re: Sharing a FS between Windows - Unix

This is the one that works for me:

/usr/bin/cifsmount "//Winserver/Winshare" /mountpoint -U Winuser -P Winpassword -I IPofWinserver

I got this from the forums somewhere.
Alzhy
Honored Contributor

Re: Sharing a FS between Windows - Unix

sdip,

If you're runing 11.11 or 11.23, you most likely already have CIFS Client installed - which BTW is your best Windows->Unix filesharing solution.

How?

edit /etc/rc.config.d/cifsclient
set RUN_CIFSCLIENT=1
edit /etc/opt/cifsclient/cifsclient.cfg
domain = "YourWindows_workGroup_or_Domain"
guestUser = "root"
Start Cifsclient:
/opt/cifsclient/bin/cifsclient start
Create mount directory on unis - say /winshare

Mount so it is static/survies reboots:

cifsmount \\winserver\fileshare /winshare -s -U windowsusername



man on cifsmount for other options.

Hope this helps.


Another Solution is install Windows SFU (Services for UNIX) on windows and share to UNIX via NFS.


Hakuna Matata.