1830898 Members
3364 Online
110017 Solutions
New Discussion

samba

 
cbozlagan
Regular Advisor

samba

1- I started samba in my HPUX system
>startsmb

2- I access win shared folder (xml_BXD) in brckxidb system

>smbclient //brckxidb/xml_BXD -U domain\\user

3- I saw line below

smb: >


Question: I want xml_BXD folder permanently mounted to a folder in HPUX system.

How can I do this?

Thanks
8 REPLIES 8
Rasheed Tamton
Honored Contributor

Re: samba

cifsmount //brckxidb/xml_BXD /xml_BXD -U username (mount the share from brckxidb on /xml_BXD (mkdir /xml_BXD on hp-ux) as username)

cifsclient start / stop cifsclient service stop/start

Regards.
Steven E. Protter
Exalted Contributor

Re: samba

Shalom,

You will need to put a line in the /etc/fstab of your system.

/ntserver/docs /mnt/samba smbfs username=docsadm,password=D1Y4x9sw 0 0

Depending on your samba installation which appears non-standard you may need to use cifs instead of smbfs.

Wondering why you didn't use the standard Samba/CIFS/9000 release from http://software.hp.com

Either way, this will if you have the smbclient binary do the trick.

You may wish to put the password in a file with strict security permissions.

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
cbozlagan
Regular Advisor

Re: samba

Hi rashead,

is username HPUX user or Win user?
Rasheed Tamton
Honored Contributor

Re: samba

Hi

>smbclient //brckxidb/xml_BXD -U domain\\user


same user as in (domain\\user).
It is the windows user.
cbozlagan
Regular Advisor

Re: samba

Hi Steven,

Win.Server: brckxidb
Win.Shared folder: xml_BXD
Domain:borinternal
Domain User:brcsysadmin password:brc123



HPUX: brckxits
mount directory: /mnt/xml_BXD

1- I added the line below into /etc/fstab
/brckxidb/xml_BXD /mnt/xml_BXD smbfs
username=brcsysadmin,password= brc123 0 0

2- I executed the command below
mount -a

it gave me the message below
----------------------------

mount: /brcxidb/xml_BXD no such file or directory.

What is the wrong with it?

thanks



Steve Lewis
Honored Contributor

Re: samba

Did you create your empty mount point directory?

mkdir /mnt/xml_BXD

then re-run the mount command.
cbozlagan
Regular Advisor

Re: samba

Steve,

I've already created /mnt/xml_BXD
hour and hours ago.

And now I checked it.It stays it's place.

Rasheed Tamton
Honored Contributor

Re: samba

Hi cbozlagan

Where do you stand about this. Did you solve this.