[Samba] useradd scripts
Dimitris Theoharis
dtheoharis at gmail.com
Mon Nov 26 14:29:50 GMT 2007
Hi
can someone explain me please exactly how these scripts work ? How can
i have them automatically add users etc?
If i add use them like this i get the NT STATUS CONNECTION REFUSED errors
# Useradd scripts
add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u
delete user script = /usr/sbin/userdel -r %u
add group script = /usr/sbin/groupadd %g
delete group script = /usr/sbin/groupdel %g
add user to group script = /usr/sbin/usernod -G %g %u
add machine script = /usr/sbin/useradd -s /bin/false/ -d /var/lib/nobody %u
idmap uid = 15000-20000
dmap gid = 15000-20000
template shell = /bin/bash
the samba server is a stand along server. This is my conf. Please advise:
[global]
log file = /var/log/samba/log.%m
template homedir = //192.168.10.198/home/%U
hide unreadable = yes
logon drive = H:
hide dot files = yes
null passwords = no
hosts allow = ALL
netbios name = Master
server string = %h server (Samba, Debian)
logon script = \\192.168.10.198\netlogon\%U.bat
workgroup = OCR
logon path = \\192.168.10.198\%U
security = user
domain logons = yes
log level = 3
winbind cache time = 10
#socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
[homes]
comment = Homes
browseable = yes
writable = yes
valid users = %S
read only = no
create mode = 0600
directory mode = 0700
path = /home/%U
More information about the samba
mailing list