[Samba] login script variable problem

Bob Crandell bob at assuredcomp.com
Tue Jul 22 15:57:50 GMT 2003


Instead of \\ntilinux\%U
Try \\ntilinux\\%U

David Baker (dbaker at getnetworked.com) wrote:
>Good morning.  Let me start by thanking those of you who helped with my
>first question posed to this group.
>Now, I have a working PDC.  This is wonderful.  I have a problem with my
>login script though.  I can't seem get the %u or %U variable to work.  I am
>trying to map a drive letter via the login.bat script file for each user
>that authenticates to the domain, however it seems to strip the % symbol
>while running and gives an error that it can't find \\ntilinux\u
><file://ntilinux/u>  or \\ntilinux\U <file://ntilinux/U>  respectively.
>I am running Red Hat 8.0, Samba 2.2.8 and a W2K workstation.
>Can anyone help?  Thanks.
>Copy of my smb.conf file
>workgroup = DOMAIN
>server string = ntilinux
>encrypt passwords = Yes
>smb passwd file = /etc/samba/passwd
>max log size = 0
>socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
>add user script = /usr/sbin/useradd -d /dev/null -g 100 -s /bin/false -M %u
>domain logons = Yes
>os level = 65
>preferred master = Yes
>domain master = Yes
>dns proxy = No
>logon script = login.bat
>comment = The domain logon service
>path = /etc/samba
>public = no
>writeable = no
>browsable = no
>comment = Public
>path = /home/public
>valid users =
>read only = No
>comment = Home Directories
>browseable = no
>writable = yes
>valid users = %S
>create mode = 0664
>directory mode = 0775

Bob Crandell
Assured Computing
When you need to be sure.
bob at assuredcomp.com
Voice - 541-689-9159
FAX - 541-463-1627
Eugene, Oregon

More information about the samba mailing list