The %U and %u variables are samba's not windows, but to generate desired effect, you could use

net use driveletter: /home

in your login.bat

and

logon home = \\%L\%U\.profile
logon path = \\%L\Profiles\%U

in your global section of smb.conf

Good Luck!

Geza Gemes

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
������������
[global]
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

[netlogon]
comment = The domain logon service
path = /etc/samba
public = no
writeable = no
browsable = no

[Public]
comment = Public
path = /home/public
valid users = read only = No


[homes]
comment = Home Directories
browseable = no
writable = yes
valid users = %S
create mode = 0664
directory mode = 0775





--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba

Reply via email to