[Samba] Delay in 'logon home' being set
kl at attitia.com
Thu Jul 24 10:19:15 GMT 2008
Is the above possible? I'll explain.
I've set up samba v3.0.25b-1.el4_6.5 as PDC. Everything Samba itself
seems to work fine (at least according to every test I've come across
However, I've spent the better part of 3 days trying to get an XP SP2
client to correctly execute the logon script. EVERY possible thread,
EVERY possible question previously asked about XP and logon scripts, I
reckon I've covered. (At least everything google could find upto 3 pages in)
I don't want roaming profiles and so had smb.conf set up;
As you can see, I also wanted to execute logons based on hostname rather
logon drive = H:
logon script = %m.cmd
# Disable roaming profiles
logon home =
logon path =
I have the shares defined as;
path = /home/samba/netlogon
guest ok = Yes
writable = no
share modes = no
valid users = %S
read only = no
browseable = no
path = /home/shares/pub
browseable = yes
guest only = yes
writable = yes
public = yes
And the logon script mappings;
net use U: /d /y
net use U: \\SMBSERVER\public /persistent:no
rem Home Drive
net use H: /d /y
net use H: /HOME /persistent:no
rem net use H: \\SMBSERVER\%username% /persistent:no
Initially, the logon script was called, but would error claiming the
"The users home has not been specified". "NET USE H: /HOME
/persistent:no" (without quotes) is the first mapping call in the file.
Also when executing manually over the once_logged_in UNC share gave the
above error. Other mappings in the same file however, worked. Logical
enough, I s'pose. So a bit more reading and I changed it to read;
logon home = \\%N\%U
Again, the logon script was called every time. Yet it still simply would
not map the Home drive. Other drives mapped, but not Home. Yet, once
logged on, I could execute dbl-click the script file and it would
execute with no issues thereby mapping each drive with no errors;
including Home. That says to me that the NetBIOS side of things MUST be
Seems the only way I can get a user's home dir mapped during the logon
process is by using "NET USE H: \\SMBSERVER\%username%. But I was under
the impression that with new Samba 3.0.x, I am supposed to use '/HOME'.
What is '/HOME' used for otherwise?
How is it published?
Or is there something stupidly simple I have missed pls?
I've tried rearranging the smb.conf file to put 'logon home' up higher.
I've tried putting the Home mapping in the logon script toward the end
after all the other mappings.
More information about the samba