Olivia's picture

Hi everyone,

I'm using my TurnKey PDC and it all works perfectly. I use Windows 7 host machines for the domain users to sign in on the Domain.

When I sign in as administrator I get an automatic home directory on H: and a Storage share. Which is what I wanted. But when I try using domain users when they log in, this doesn't seem to happen. I have to map it physically.

What can I do in order to map the shares automatic when the users log in on the domain?


In Turnkey, I have Windows Networking set to Always show service [global] which is where logon.batch etc. are linked. Please see below

 

[global]
    passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
    admin users = administrator @smbadmins
    obey pam restrictions = yes
    show add printer wizard = yes
    time server = yes
    passwd program = /usr/bin/passwd %u
    dns proxy = no
    netbios name = PDC
    writeable = yes
    printing = cups
    logon script = logon.bat
    local master = yes
    workgroup = dc.local
    os level = 64
    auto services = global
    printcap name = cups
    security = user
    add machine script = /usr/sbin/useradd -s /bin/false -d /nonexistent '%u' -g smbmachines
    delete user script = /usr/sbin/userdel -r '%u'
    max log size = 1000
    log file = /var/log/samba/samba.log
    read raw = no
    write raw = no
    add group script = /usr/sbin/groupadd '%g'
    socket options = TCP_NODELAY
    delete group script = /usr/sbin/groupdel '%g'
    add user to group script = /usr/sbin/usermod -G '%g' '%u'
    logon drive = H:
    domain master = yes
    encrypt passwords = yes
    public = yes
    passdb backend = tdbsam
    wins support = true
    server string = TurnKey Domain Controller
    path = /homes
    unix password sync = yes
    logon path = \\%L\profiles\%U
    add user script = /usr/sbin/useradd -m '%u' -g smbusers -G smbusers
    valid users = administrator
    syslog = 0
    panic action = /usr/share/samba/panic-action %d
    pam password change = yes
    domain logons = yes

 

Forum: 
Jeremy Davis's picture

Or is this an outstanding issue?

Olivia's picture

Hi Jeremy,

Thanks for your quick reply. Unfortuanly this did not resolve my issue, so I am still having this. It must be something in the logon.bat script , but for some reason it just won't work.

Olivia's picture

I got it to work for normal shares by editing the logon.bat file with a new echo script. Only thing now is the automaticcaly home folder, I'll see if I can figure that one out somehow.

Jeremy Davis's picture

It's been a long time since I've done this sort of stuff on Win servers. Sorry I can't give more guidance. It sounds like you're getting there though...

Add new comment