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.
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
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
#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: CentOS, file sharing, samba server
3 Comments:
Thank You. It's neat and correct.
I tested with CentOS 5.3 and Samba 3.0.33 and it works.
thanks a lot, simple and effective.
thanx i easly configue samba server now
Post a Comment
Subscribe to Post Comments [Atom]
<< Home