1748031 Members
5265 Online
108757 Solutions
New Discussion юеВ

Re: configuring samba

 
Chandra Sekhar_5
Occasional Advisor

configuring samba

Hi
I am trying to map a windows directory onto HPUX server using SAMBA. Samba has been installed on the unix server.Can you please let me know how to configure the windows directory onto the unix server. I could nt able to get the right instructions so far..your help is highly appreciated.


2 REPLIES 2
Ivan Ferreira
Honored Contributor

Re: configuring samba

You need to create a directory where the windows share will be mounted:

mkdir /mnt/windows_share

Use the smbmount command to mount the windows share:

smbmount //netbios_name/share_name /mnt/windows_share -o username=user-name password=user-password

If you don't need a password, use

smbmount //netbios_name/share_name /mnt/windows_share -o guest

See man smbmount.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Steven E. Protter
Exalted Contributor

Re: configuring samba

Your question is vague and in the Linux section.

Some general information:

Windows has a samba client built in. Windows networking is based on CIFS, which is what Samba is based on.

Basically, there is on Unix a single important configuration file. Its called smb.conf and it is pretty well documented with lots of comments.

You make changes based on your authentication environment and restart samba.

/sbin/init.d/samba stop
/sbin/init.d/samba start

The most simple authentication involves having a user ID on unix that is the same as windows. The windows user searches through network neighborhood by ip address or server name and clicks in.

Then the user is challented for a user name and password.

User rights on Unix are based on unix permissions.

Its possible to integrate authentication into LDAP or ADS, this is more comoplex and is beyond the scope of this message.

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