Tuesday, October 20, 2009

setting up simple samba on centos 5

Here is the quick and dirty way to get your samba file share. I did this on my VM for easier file transfers

1) system-config-securitylevel - select SAMBA

2) vi /etc/samba/

These are the lines I uncommented and modified. # and ; are commented out.

workgroup =
netbios name = test-l1
security = user
passdb backend = tdbsam

[public]
comment = Public Stuff
path = /home/samba
public = yes
writable = yes
printable = no


3) smbpasswd -a

= your linux/windows username


4) /etc/init.d/smb reload


5) vi /etc/sysconfig/iptables

-A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 137 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 138 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 139 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 445 -j ACCEPT



No comments:

Splitting the home network

Who wouldn't want to separate the traffic at home for security reasons. The more common ones include wireless guest and wireless users. ...