Ultra public Samba share
Create the directories first off:
And then the smb.conf file:
mkdir /var/samba/pub
chown nobody:sambashare /var/samba/pub
chmod 0777 /var/samba/pub
And then the smb.conf file:
#== Global Settings ==
[global]
workgroup = THEGREATEST
server string = Samba server
netbios name = smbserver
security = share
encrypt passwords = yes
hosts deny = ALL
hosts allow = 10.10.2. localhost
dns proxy = no
log file = /var/log/samba/log.%m
max log size = 1000
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
time server = yes
load printers = no
#== Share Definitions ==
[comp]
path = /var/smb-files/comp
comment = Comp
public = yes
browsable = yes
printable = no
guest ok = yes
writable = yes
create mode = 0777
directory mask = 0777
force user = nobody
force group = sambashare
## EOF ##
Labels: IT slaves, Linux, Programs, Scripts, Security, Ubuntu
0 Comments:
Post a Comment
<< Home