Problem executing netlogon scripts in Samba

Discussion in 'Server Operation' started by skirao, Aug 12, 2008.

  1. skirao

    skirao New Member

    Hi all,

    I am new here. I have configured Samba as a PDC on Ubuntu 8.04 AMD 64 with WinXP clients. The users are able to login without any problems. If i enable the [home] share, the users home directory is mapped as a separate network drive.

    But, if i put the users home directory on a different folder other than /home. say for example /export and share this directory, this share appears in the network places in windows but not as a network/mapped drive. Also, i am struggling to make the netlogon work, so that users home directory is mapped when users login.

    Is there anyway, i can redirect my documents folder in windows to be permanently mapped to a network drive?

    Below is the config file!

    # Global parameters
    workgroup = abc
    netbios name = servername
    ;interfaces = eth1, lo
    ;bind interfaces only = Yes
    passdb backend = tdbsam

    hosts allow =
    security = domain
    smb ports = 139
    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 -s /bin/false -d /var/lib/nobody '%u'

    comment = User Home Dir
    path = /export/U%
    read only = No

    domain logons = Yes
    preferred master = Yes
    domain master = yes
    wins support = Yes
    os level = 65
    logon path = \\%N\profiles\%U
    logon drive = h:
    logon home = \\%N\%U

    ;comment = Home Directories
    ;valid users = %S
    ;read only = No
    ;browseable = No

    comment = Network Logon Service
    path = /var/lib/samba/netlogon
    logon script = /var/lib/samba/netlogon/logon.bat
    guest ok = Yes
    locking = No
    read only = no

    comment = Profile Share
    path = /var/lib/samba/profiles
    read only = No
    profile acls = Yes

    username map = /etc/samba/smbusers
    log level = 1
    syslog = 0
    log file = /var/log/samba/%m
    max log size = 50
    smb ports = 139
    name resolve order = wins bcast hosts

    Kindly Help

Share This Page