Re: [Samba] 'logon drive' questions
Quoting John H Terpstra On Wed, 25 Feb 2004, flinchlock wrote: logon home = \\%L\%u\.win_profiles\%m This has no real place in Windows NT/XP, it is used to set the profile directory for Windows 9x/Me clients. For what it is worth, I decided to not use/setup any W98 clients. :-) So, instead of deleting 'logon home' from my smb.conf file, I just changed it to: logon home = \\%L\%u And automagically, when I click on Command Prompt, the dos window opens to H:, and HOMEDRIVE, HOMEPATH, HOMESHARE are set correctly (at least according to me) I guess XP handles 'logon home' differently if 'logon home' has additional directories listed after \\%L\%u (that would match the User home directory field in /etc/passwd). Mike -- SuSE 9.0 Pro (2.4.21-192-default) with samba-2.2.8a-107 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] 'logon drive' questions
Quoting John H Terpstra What is Samba-3.1.x? I am not aware that we have made any commitments to a 3.1.x release. We are planning a 3.0.3, however I should point out that 3.0.2a is looking good based on feedback so far. It will likely become known as a very stable reference release. Let me rephrase... Since I'm just a home user (less than six workstations), I don't need all the bleeding edge stuff in Samba 3.x. So, I'll wait to upgrade until a stable release is available. I'm s feedup with software x.0 releases (mostly Windows progs), I'll wait until x.1. I won't ask you any questions. Why? What was wrong with my answers? :) I *assume* you are VERY busy, and I shouldn't waste your time (or the lists) on stuff that I can goggle (same as RTFM). THANKS. Mike -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] 'logon drive' questions
I would like to ask the list to help me understand three Samba settings: 'logon path', 'logon drive', and 'logon home'. Please see my question at the bottom of this post. THANKS! --- My settings are: . . . logon path = \\%L\profiles\%u\%m logon drive = H: logon home = \\%L\%u\.win_profiles\%m [profiles] path = /home/samba/nt_profiles read only = No create mask = 0600 directory mask = 0700 browseable = No [homes] comment = %u's Home Directory valid users = %S read only = No create mask = 0640 directory mask = 0750 hide dot files = No veto files = /.*/Documents/public_html/ browseable = No --- On my XP Pro client, when I click on Command Prompt, I get a dos window that displays the prompt as: C:\Documents and Settings\testuser. This happens, because the properties for the Command Prompt have this setting in the Start in box: %HOMEDRIVE%%HOMEPATH% According to http://support.microsoft.com/default.aspx?scid=kb;en-us;100843 ... [quote] HOMEPATH HOMEDRIVE HOMESHARE These three environment variables are set based on the value of the home directory. The user's home directory is specified in User Manager (Choose Profile and Properties). If the home directory uses universal naming conventions (UNC), then they will have the following values: HOMESHARE=\\server name\share name HOMEPATH=\path HOMEDRIVE=drive letter: If the home directory is a local path such as c:\nt then they will look like this: HOMEDRIVE=c: HOMESHARE= HOMEPATH=\nt [/quote] MY variables are set like this: C: set | find HOME HOMEDRIVE=C: HOMEPATH=\Documents and Settings\testuser When I run USRMGR.EXE (User manager for Domains), I can see the two users listed in /etc/samba/smbpasswd (just as it should be). When I double-click on testuser (to open the Properties window), I can now click on the Profile button to see the two other boxes: User Profiles User Profile path: \\mutt\profiles\testuser\lapdog Logon Script Name: logon.bat Home Directory Local Path: Connect H: to \\mutt\testuser\.win_profiles\lapdog Remember the Microsoft Q100383 article says, If the home directory uses universal naming conventions (UNC), then they will have the following values: HOMESHARE=\\server name\share name HOMEPATH=\path HOMEDRIVE=drive letter: So, this indicates the Samba is not working correctly regarding these these variables! QUESTION: Can some of you please click on your Command Prompt and see if you get H: or C:\Documents and Settings\youruser? THANKS! -- SuSE 9.0 Pro (2.4.21-192-default) and samba-2.2.8a-107 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] 'logon drive' questions
On Wed, 25 Feb 2004, flinchlock wrote: I would like to ask the list to help me understand three Samba settings: 'logon path', 'logon drive', and 'logon home'. Please see my question at the bottom of this post. THANKS! --- My settings are: . . . logon path = \\%L\profiles\%u\%m logon path sets the Windows XP environment variable %USERPROFILE% that pervades the Windows registry. logon drive = H: logon drive sets the drive letter that is used when you run: net use * /home If set in smb.conf and you use either tdbsam or ldapsam this will automatically map the users UNIX home directory to the drive letter specified _and_ will set the environment variable %HOMEDRIVE% on the workstation. Of course, the Windows XP Pro client must be a Domain Member client for this to work. logon home = \\%L\%u\.win_profiles\%m This has no real place in Windows NT/XP, it is used to set the profile directory for Windows 9x/Me clients. [profiles] path = /home/samba/nt_profiles read only = No create mask = 0600 directory mask = 0700 browseable = No [homes] comment = %u's Home Directory valid users = %S read only = No create mask = 0640 directory mask = 0750 hide dot files = No veto files = /.*/Documents/public_html/ browseable = No --- On my XP Pro client, when I click on Command Prompt, I get a dos window that displays the prompt as: C:\Documents and Settings\testuser. This happens, because the properties for the Command Prompt have this setting in the Start in box: %HOMEDRIVE%%HOMEPATH% According to http://support.microsoft.com/default.aspx?scid=kb;en-us;100843 ... [quote] HOMEPATH The %HOMEPATH% is derived from the Windows registry variables. When you implement folder redirection (as I have documented in my new book Samba-3 by Example - can be ordered from Amazon.Com now) to redirect the user's desktop folder contents to network drives, then this environment variable will be changed also. But remember, roaming profiles are copied from the server to the local machine - no matter what - this always happens. It you have set Windows registry to delete roaming profiles on logout (a good practice) you will not see any remnants of the profile after the user has logged out. Otherwise, if roaming profiles are not set to delete on logout you will find a mirror of the roaming profile (temporary profile) under: C:\Documents and Settings\'username' and you will find that the matching environment parameters for this are: HOMEDRIVE=C: HOMEPATH=\Documents and Settings\'username' You have been confusing two entirely different aspects of profile handling. There are two components: 1) Those that specify where windows obtains the profile to copy across the network to the client 2) The location of the working image of the desktop profile Cheers, John T. HOMEDRIVE HOMESHARE These three environment variables are set based on the value of the home directory. The user's home directory is specified in User Manager (Choose Profile and Properties). If the home directory uses universal naming conventions (UNC), then they will have the following values: HOMESHARE=\\server name\share name HOMEPATH=\path HOMEDRIVE=drive letter: If the home directory is a local path such as c:\nt then they will look like this: HOMEDRIVE=c: HOMESHARE= HOMEPATH=\nt [/quote] MY variables are set like this: C: set | find HOME HOMEDRIVE=C: HOMEPATH=\Documents and Settings\testuser When I run USRMGR.EXE (User manager for Domains), I can see the two users listed in /etc/samba/smbpasswd (just as it should be). When I double-click on testuser (to open the Properties window), I can now click on the Profile button to see the two other boxes: User Profiles User Profile path: \\mutt\profiles\testuser\lapdog Logon Script Name: logon.bat Home Directory Local Path: Connect H: to \\mutt\testuser\.win_profiles\lapdog Remember the Microsoft Q100383 article says, If the home directory uses universal naming conventions (UNC), then they will have the following values: HOMESHARE=\\server name\share name HOMEPATH=\path HOMEDRIVE=drive letter: So, this indicates the Samba is not working correctly regarding these these variables! QUESTION: Can some of you please click on your Command Prompt and see if you get H: or C:\Documents and Settings\youruser? THANKS! -- SuSE 9.0 Pro (2.4.21-192-default) and samba-2.2.8a-107 -- John H Terpstra Email: [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] 'logon drive' questions
Quoting John H Terpstra Quoting flinchlock logon path = \\%L\profiles\%u\%m logon path sets the Windows XP environment variable %USERPROFILE% that pervades the Windows registry. OK, that helps ALOT!!! :-) logon drive = H: logon drive sets the drive letter that is used when you run: net use * /home If set in smb.conf and you use either tdbsam or ldapsam this will automatically map the users UNIX home directory to the drive letter specified _and_ will set the environment variable %HOMEDRIVE% on the workstation. So, I guess the only use for mapping this (HOME), is to allow a user to share/access his/her *nix files on a Windows machine... right? Most? applications don't need/use a HOME directory... right? logon home = \\%L\%u\.win_profiles\%m This has no real place in Windows NT/XP, it is used to set the profile directory for Windows 9x/Me clients. Sure/OK, I havn't started messing with my W98 clients. (I won't ask you any questions!) The %HOMEPATH% is derived from the Windows registry variables. When you implement folder redirection (as I have documented in my new book Samba-3 by Example - can be ordered from Amazon.Com now) to redirect the user's desktop folder contents to network drives, then this environment variable will be changed also. I'm just a home user, and I'll wait until Samba 3.1.x is out... and I *do* have an Amazon account. But remember, roaming profiles are copied from the server to the local machine - no matter what - this always happens. It you have set Windows registry to delete roaming profiles on logout (a good practice) you will not see any remnants of the profile after the user has logged out. Otherwise, if roaming profiles are not set to delete on logout you will find a mirror of the roaming profile (temporary profile) under: C:\Documents and Settings\'username' and you will find that the matching environment parameters for this are: HOMEDRIVE=C: HOMEPATH=\Documents and Settings\'username' I'll need time to digest this. You have been confusing two entirely different aspects of profile handling. There are two components: 1) Those that specify where windows obtains the profile to copy across the network to the client 2) The location of the working image of the desktop profile OK. I guess my definition of HOME needs to be re-thought about. When I think about HOME, I think about the home dir field in /etc/passwd. Seems like 'logon path' has NOTHING to-do with my thoughts about what/where HOME is. I'll eventually figure it out... but I promise I won't ask you any questions. THANKS for your insight/patience. :-) Mike -- SuSE 9.0 Pro (2.4.21-192-default) with samba-2.2.8a-107 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] 'logon drive' questions
Quoting John H Terpstra On Mon, 23 Feb 2004, flinchlock wrote: Later, I changed 'logon path' to \\%L\profiles\%U\%m When 'logon path' is \\%L\%U\.msprofile and I click on Command Prompt, I get a command window that says: H:\ When 'logon path' is \\%L\profiles\%U\%m and I I click on Command Prompt, I get a command window that says: C:\Documents and Settings\flichlock Do you have a directory on the logon server under the share called profiles called ./flinchlock/'machine_name' ? YES... I have checked all directory ownership/permissions a zillion times. I have only tried those two different settings for 'logon path' on my XP laptop. I THINK the problem has something todo with the fact? that XP will shorten the 'logon path' from \\%L\%U\.msprofile to just \\%L\%U, and then, that will match the home directory field in /etc/passwd. So, it (Samba) changes or passes info to XP that causes the three DOS variables to be set differently. And, the properties on the Command Prompt link in XP has '%HOMEDRIVE%%HOMEPATH%' in the Start in properties field. So, that is why the different results. These variables are set when 'logon path' = \\%L\%U\.msprofile HOMEDRIVE=H: HOMEPATH=\ HOMESHARE=\\mutt\flinchlock These variables are set when 'logon path' = \\%L\profiles\%U\%m HOMEDRIVE=C: HOMEPATH=\Documents and Settings\flinchlock -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] 'logon drive' questions
Hello list, I sent this about two weeks ago, but I didn't get an answer... so I'm pushing my luck. :-) QUESTION#1: What EXACLTLY causes the HOMEDRIVE, HOMEPATH, and HOMESHARE variables? Something passed from Samab to the client, or some thing the client does? QUESTION#2: How/what/where/why is there a difference in the results of click on Command Prompt? My Setup... I'm running SuSE 9.0 Pro (2.4.21-192-default) and samba-2.2.8a-107. I have a XP laptop client. When I first setup my Samba PDC, I had this smb.conf: - [global] workgroup = NO-CATS netbios name = MUTT server string = Samba PDC running %v encrypt passwords = Yes update encrypted = Yes passwd program = /usr/bin/passwd %u unix password sync = Yes log file = /var/log/samba/log.%m time server = Yes socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY logon script = logon.bat logon path = \\%L\%U\.msprofile logon drive = H: logon home = \\%L\%U\.win_profile\%m domain logons = Yes os level = 255 preferred master = Yes domain master = Yes wins support = Yes hosts allow = 127.0.0.1 192.168.1.0/255.255.255.0 [netlogon] path = /home/samba/netlogon browseable = No [profiles] path = /home/samba/nt_profiles read only = No create mask = 0600 directory mask = 0700 browseable = No [homes] comment = %U's HOME directory valid users = %S read only = No browseable = No - Later, I changed 'logon path' to \\%L\profiles\%U\%m When 'logon path' is \\%L\%U\.msprofile and I click on Command Prompt, I get a command window that says: H:\ When 'logon path' is \\%L\profiles\%U\%m and I I click on Command Prompt, I get a command window that says: C:\Documents and Settings\flichlock I have compared the XP client set variables, and I see just three differences: HOMEDRIVE=H: HOMEPATH=\ HOMESHARE=\\mutt\flinchlock --- HOMEDRIVE=C: HOMEPATH=\Documents and Settings\flinchlock -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] 'logon drive' questions
On Mon, 23 Feb 2004, flinchlock wrote: Later, I changed 'logon path' to \\%L\profiles\%U\%m When 'logon path' is \\%L\%U\.msprofile and I click on Command Prompt, I get a command window that says: H:\ When 'logon path' is \\%L\profiles\%U\%m and I I click on Command Prompt, I get a command window that says: C:\Documents and Settings\flichlock Do you have a directory on the logon server under the share called profiles called ./flinchlock/'machine_name' ? If the client can not find this at logon time it will default to using a local profile. That is what it seems to be doing. - John T. I have compared the XP client set variables, and I see just three differences: HOMEDRIVE=H: HOMEPATH=\ HOMESHARE=\\mutt\flinchlock --- HOMEDRIVE=C: HOMEPATH=\Documents and Settings\flinchlock -- John H Terpstra Email: [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba