2004-04-07 10:15:11 +00:00
<samba:parameter name= "logon home"
context="G"
2016-01-21 10:39:35 +01:00
type="string"
2005-03-12 22:41:20 +00:00
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
2004-04-07 10:15:11 +00:00
<description >
2005-07-17 05:46:16 +00:00
<para >
This parameter specifies the home directory location when a Win95/98 or NT Workstation logs into a Samba PDC.
It allows you to do
</para>
2004-04-07 10:15:11 +00:00
2005-07-17 05:46:16 +00:00
<para >
<prompt moreinfo= "none" > C:\> </prompt> <userinput moreinfo= "none" > NET USE H: /HOME</userinput>
2004-04-07 10:15:11 +00:00
</para>
2005-07-17 05:46:16 +00:00
<para >
from a command prompt, for example.
</para>
2004-04-07 10:15:11 +00:00
2005-07-17 05:46:16 +00:00
<para >
This option takes the standard substitutions, allowing you to have separate logon scripts for each user or machine.
</para>
<para >
This parameter can be used with Win9X workstations to ensure that roaming profiles are stored in a
subdirectory of the user's home directory. This is done in the following way:
</para>
2004-04-07 10:15:11 +00:00
2005-07-17 05:46:16 +00:00
<para >
<command moreinfo= "none" > logon home = \\%N\%U\profile</command>
</para>
2004-04-07 10:15:11 +00:00
2005-07-17 05:46:16 +00:00
<para >
This tells Samba to return the above string, with substitutions made when a client requests the info, generally
in a NetUserGetInfo request. Win9X clients truncate the info to \\server\share when a user does
2007-04-16 07:47:27 +00:00
<command moreinfo= "none" > net use /home</command> but use the whole string when dealing with profiles.
2005-07-17 05:46:16 +00:00
</para>
2004-04-07 10:15:11 +00:00
2005-07-17 05:46:16 +00:00
<para >
Note that in prior versions of Samba, the <smbconfoption name= "logon path" /> was returned rather than
<parameter moreinfo= "none" > logon home</parameter> . This broke <command moreinfo= "none" > net use /home</command>
but allowed profiles outside the home directory. The current implementation is correct, and can be used for
profiles if you use the above trick.
</para>
2004-04-07 10:15:11 +00:00
2005-07-17 05:46:16 +00:00
<para >
Disable this feature by setting <smbconfoption name= "logon home" > ""</smbconfoption> - using the empty string.
</para>
2004-04-07 10:15:11 +00:00
2005-07-17 05:46:16 +00:00
<para >
This option is only useful if Samba is set up as a logon server.
</para>
2004-04-07 10:15:11 +00:00
</description>
<value type= "default" > \\%N\%U</value>
<value type= "example" > \\remote_smb_server\%U</value>
</samba:parameter>