Click to See Complete Forum and Search --> : HP-UX, Solaris, Linux, and **cough*** XP on LAN


bandwidth_pig
01-27-2003, 09:43 PM
I am faced with a curious problem and thought perhaps somebody might have a idea. I have a Linux box, a HP-UX box, and a Solaris box, and a XP machine all on a LAN. I currently use Samba to access a share on my Linux machine for XP. I would like to do something similar for the Solaris and HP-UX boxes. I would like them also to have connectivity to the Linux Samba share.

I have never used Samba in conjunction with Unix clients. It's not the same as with Windows I take it? Is there some way to have my Linux Samba share get automatically mounted as a network drive for my HP-UX and Solaris machines? Kind of a odd question I guess. My Solaris and HP-UX machines don't have a lot of hard drive space, so it would be nice to utilize the larger Linux drive for all machines. :D

Hayl
01-27-2003, 09:53 PM
yes. im going to explain it from a linux perspective as im not sure of the differences for hp-ux and solaris. there are other ways but this is the most secure (i.e. your password isn't in the fstab file)

create a file in your ~ directory called .smbpassword that is only accesable to you containing the following:
username=your_samba_user_name
password=your_samba_password


create a directory /mnt/samba_share_name

then edit your /etc/fstab and add the following line:

//samb_server/share /mnt/samba_share_name smbfs credentials=/home/username/.smbpassword,uid=username 0 0

bandwidth_pig
01-27-2003, 10:01 PM
Thank you. I will give that a try. I thought perhaps it would not be this simple as I thought I would have to use smbclient. Thanks again.