[global]
workgroup = Army97
netbios name = Army97
server string = Army97
unix charset = utf8
display charset = utf8
dos charset = cp950
log file = /var/log/samba/%m.log
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = no
template shell = /bin/false
winbind use default domain = no
security = user
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
# printcap name = cups
# load printers = yes
# printing = cups
preferred master = yes
domain master = yes
local master = yes
wins support = yes
wins proxy = yes
dns proxy = yes
remote announce = 192.168.0.255 192.168.200.255
remote browse sync = 192.168.0.255 192.168.200.255
os level = 255
domain logons = yes
logon path = //%N/profiles/%U
logon drive = Z:
logon home = //%N/public
# logon script = startup.bat
# time server = yes
admin users = F6_Admin
[netlogon]
comment = Network Logon Service
path = /home/samba/netlogon
writable = no
write list = root
follow symlinks = yes
guest ok = yes
browseable = no
[homes]
comment = Home directories
browseable = no
writable = yes
valid users = %S
create mode = 0664
directory mode = 0775
[profiles]
comment = Users profiles
path = /home/samba/profiles
guest ok = no
browseable = no
create mask = 0600
directory mask = 0700
writable = yes
[temp]
comment = Temporary file space
path = /tmp
read only = no
public = yes
[public]
comment = Public directories
path = /home/samba/public
read only = no
public = yes
create mask = 0775
directory mask = 0775
test conf:
testparm
useradd -d /dev/null -s /bin/false --groups xxxx PC01$
smbpasswd -a -m PC04
add new user:
useradd -d /dev/null -s /bin/false --groups xxxx army97
smbpasswd -a army97