April 24, 2009

SAMBA SERVER

Samba is a networking tool that enables Linux to participate in Windows networks. There are two parts to Samba, one being the server which shares out files and printers for other PC's to use, and the other being the client utilities, which allow Linux to access files and printers on other Windows/Samba PCs.

In case you wanna share data with client ( linux to windows ) you
can do it by samba share, i'll tell you how............
i am assuming that you have put your shared data in /mnt/data and you
wanna share it for test1 and test2 users.......

For that you have to create test1 and test 2 users on your server and
have to give them passwd with smbpasswd command like;

# smbpasswd -a test1

and remember that you have to give full access to the directory[ /mnt/
data ] which you are going to share

Now install samba packages

# yum install samba* -y

# chkconfig samba on

# vim /etc/samba/smb.conf

{Go to the Bottom of the file and put your entries }

Path = /mnt/data

[your share name]

hosts allow = .vodafone.com

valid users = test1, test2

read list = test1 {he will have read permission on directory]

write list = test2 { he will have both read and write permission }

browseable = yes

writable = no { uses will not have write permission, but if you wanna
oppose of it you can write 'yes' }

:wq!

# service smb restart

Now on client side, your users can sit on any system of .vodafone.com
side and they can access directory with their users name and
sambapassword.....

On client machine ping with the server to check whether you are
connected or not....Go to start > Run > cmd > ping server.vodafone.com

IF you are connected then go to search and type the server addres like
172.24.25.254 and it will show you the shared directory and will ask
you for login name and smbpasswd to access that directory...after
giving write username and password you will be successful to access
the data...................

No comments:

Post a Comment