mount -t smbfs //halifax6/Media /home/usamantaray/samba/ -o rw,username=usamantaray/flagstonere,gid=users,dmask=777,fmask=777
Anonymous access of samba share on a linux machine
[global]
workgroup = HOME
server string = Samba Server
security = SHARE
passdb backend = tdbsam
log file = /var/log/samba/%m.log
max log size = 50
dns proxy = No
wins support = Yes
hosts allow = 192.168.2., 127.
[homes]
comment = Home Directories
read only = No
browseable = No
[share]
comment = Public Share
path = /share
read only = No
create mask = 0666
directory mask = 0777
guest ok = Yes
[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No
chmod 0777 /share
writable = yes
# vi /etc/samba/smbpasswd
nobody:99:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[DU ]:LCT-00000000:
save and exit
IPTABLE Configuration to allow samba share.
# iptables -A INPUT -i eth1 -p tcp -m tcp --dport 138 -j ACCEPT
# iptables -A INPUT -i eth1 -p tcp -m tcp --dport 139 -j ACCEPT
# iptables -A INPUT -i eth1 -p tcp -m tcp --dport 137 -j ACCEPT
# iptables -A INPUT -i eth1 -p tcp -m tcp --dport 445 -j ACCEPT
# service iptables save
# vi /etc/sysconfig/iptables
Move the above 4lines to up
# service iptables restart
No comments:
Post a Comment