My blog has moved! Redirecting...

You should be automatically redirected. If not, visit http://techienote.com and update your bookmarks.

Tech Resources

Sunday, April 26, 2009

Configuring Samba on CentOS

Samba is an Open Source / Free Software suite that has, since 1992, provided file and print services to all manner of SMB/CIFS clients, including the numerous versions of Microsoft Windows operating systems. Samba is freely available under the GNU General Public License.

The Samba project is a member of the Software Freedom Conservancy.
Operatring System
Samba
Installing samba via yum
#yum -y install samba samba-common samba-client
Configuring samba
#mv /etc/samba/smb.conf /etc/samba/smb.conf.orig
Showing you  the basic configuration of samba. In this example we are going to share softwares directory. Only samba user can able to save files in this directory.
#vi /etc/samba/smb.conf
[global]
workgroup = WORKGROUP
server string = Samba Server Version %v
security = share
load printers = yes
cups options = raw
[share]
writeable = yes
admin users = it
path = /softwares
force user = root
valid users = it
public = yes
available = yes
Save and exit the configuration file. Now we have to create samba user as well as the softwares directory which we want to share.
#mkdir /softwares
#adduser it
#passwd it
#smbpasswd -a it
#/etc/init.d/smb restart
Thats it now you are ready to browse the samba share. To access the samba share on windows pc follow the below given procedure:
Start -> run -> cmd
At the prompt type: net use z: \\ip_of_your_samba_server\share /user:it it_password
At this point you have successfully set up Samba under Linux and are now successfully connected to your share from your Windows machine.

Labels: , ,

3 Comments:

Anonymous Thusith said...

Thank You. It's neat and correct.
I tested with CentOS 5.3 and Samba 3.0.33 and it works.

June 8, 2009 at 3:33 PM  
Blogger mherrera said...

thanks a lot, simple and effective.

September 30, 2009 at 8:27 AM  
Blogger zaheer baig said...

thanx i easly configue samba server now

April 26, 2010 at 3:36 PM  

Post a Comment

Subscribe to Post Comments [Atom]

<< Home