Install and Configure Samba on Redhat
What is Samba?
Samba is an open source/free software suites that provides seamless file and print service to SMB/CIFS clients. It allows interoperability between UNIX/LINUX servers and windows based clients.
Steps to Install Samba
1. First look for samba package on the system , if its already installed.
# rpm -q samba
samba-3.0.25b-0.4E.6
If its not install download it.
Configuring Samba
2. Take the backup of the original smb.conf file
# cd /etc/samba
# cp smb.conf smb.conf.orig
3 . Open the file smb.conf using vi
# cd /etc/samba
# vi smb.conf
[global]
workgroup = ADMINGROUP
netbios name = smbserver
security = share
loadprinter = No
default service = global
path = /home
encrypt passwords = yes
[share]
writable = yes
admin users = smbuser
path = /home/share
force user = root
valid users = smbuser
public = yes
available = yes
save the file and quit
4. Create smbuser
# adduser smbuser
# passwd smbuser
5 . Assign smbpassword to the user
# smbpasswd -a smbuser
6. Start the smb services
# service smb start
7. Stop the iptables
# service iptables stop
8. Next step is to go onto the window xp system.
9. Open My compter.
10. Open My network place in it.
11. Select the samba share
12. Give the username and password .
13. You will be able to access your share.

Leave a Reply