Hi,
Im trying to set up a samba PDC and login to it from Vista, and everything is fine except that the login script is not getting run at all.
I dont want roaming profiles, I just want a script to map the samba users drive and a couple of other network shares.
Pasting smb.conf at end of post. The logon script is in the netlogon directory and Im pretty sure all the permissions are ok.
/home/samba/netlogon/logon.cmd
This is a windows file.
Vista logs in ok as the domain user, just no script! Please help!
Thanks heaps!
Owen
Code:
[global]
; General server settings
netbios name = TILVERTON
server string = %h server (Samba, Ubuntu)
workgroup = ROBERTS
announce version = 5.0
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192
passdb backend = tdbsam
security = user
username map = /etc/samba/smbusers
name resolve order = wins bcast hosts
printing = CUPS
printcap name = CUPS
syslog = 1
syslog only = yes
domain master = yes
domain logons = yes
local master = yes
wins support = yes
preferred master = yes
os level = 65
# Useradd scripts
add user script = /usr/sbin/useradd -m %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/usermod -G %g %u
add machine script = /usr/sbin/useradd -n -g machines -c Machine -d /var/lib/samba -s /bin/false %u
idmap uid = 15000-20000
idmap gid = 15000-20000
# sync smb passwords with linux passwords
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .
passwd chat debug = yes
unix password sync = yes
# Default logon %U is user, %N is server name %L is netbios server name %a OSarch
logon script = logon.cmd
logon drive =
logon home =
logon path =
; NOTE: If you need access to the user home directories uncomment the
; lines below and adjust the settings to your hearts content.
[homes]
comment = Home Directories
browseable = no
read only = no
create mask = 0700
directory mask = 0700
valid users = %S
[netlogon]
comment = Network Logon Service
path = /home/samba/netlogon
; NOTE: Inside this place you may build a printer driver repository for
; Windows - I'll cover this topic in another HOWTO.
[print$]
path = /var/lib/samba/printers
browseable = yes
read only = yes
write list = root
create mask = 0664
directory mask = 0775
[printers]
path = /var/spool/samba
printable = yes
browseable = yes
[Temp]
path = /media/samba/temp
read only = no
create mask = 0644
directory mask = 0755