Geoff Stitt
2003-Apr-04 16:53 UTC
[Samba] %a reports a Windows XP client as having a "Win2K" architecture.
One of the variables available in Samba is "%a", which, as you know is the architecture of the remote machine. I tested using this variable with a Windows 2000 and Windows XP client. Unfortunately, the log file reports the Windows XP client is seen as having an architecture of "Win2K" instead of something like "WinXP". The Windows 2000 box shows up fine as "Win2K". The reason I am using the %a variable is so roaming profiles can have different paths for different architectures. Thank you, Geoff Stitt -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.samba.org/archive/samba/attachments/20030404/638bcad4/attachment.bin
John H Terpstra
2003-Apr-04 17:18 UTC
[Samba] %a reports a Windows XP client as having a "Win2K" architecture.
Geoff, What version of samba are you using? Have you tried 2.2.8? - John T. -- John H Terpstra Email: jht@samba.org -------------- next part -------------- Skipped content of type multipart/signed-------------- next part -------------- -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Thomas Bork
2003-Apr-04 17:31 UTC
[Samba] %a reports a Windows XP client as having a "Win2K" architecture.
Hi Georg,> One of the variables available in Samba is "%a", which, as you know is > the architecture of the remote machine. I tested using this variable > with a Windows 2000 and Windows XP client. Unfortunately, the log file > reports the Windows XP client is seen as having an architecture of > "Win2K" instead of something like "WinXP". The Windows 2000 box shows up > fine as "Win2K".use samba 2.2.8 or actual samba alpha version for that (please read the changes). der?tom ______________________________________________________________________________ UNICEF bittet um Spenden fur die Kinder im Irak! Hier online an UNICEF spenden: https://spenden.web.de/unicef/special/?mc=021101
Gerald (Jerry) Carter
2003-Apr-04 20:45 UTC
[Samba] %a reports a Windows XP client as having a "Win2K" architecture.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 4 Apr 2003, Geoff Stitt wrote:> One of the variables available in Samba is "%a", which, as you know is > the architecture of the remote machine. I tested using this variable > with a Windows 2000 and Windows XP client. Unfortunately, the log file > reports the Windows XP client is seen as having an architecture of > "Win2K" instead of something like "WinXP". The Windows 2000 box shows up > fine as "Win2K".Fixed in 2.2.8 cheers, jerry ---------------------------------------------------------------------- Hewlett-Packard ------------------------- http://www.hp.com SAMBA Team ---------------------- http://www.samba.org GnuPG Key ---- http://www.plainjoe.org/gpg_public.asc "You can never go home again, Oatman, but I guess you can shop there." --John Cusack - "Grosse Point Blank" (1997) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (GNU/Linux) Comment: For info see http://quantumlab.net/pine_privacy_guard/ iD8DBQE+je7yIR7qMdg1EfYRApT1AKC+od42dLQMBe3G/s2k4SUZ2V+QHQCgm9dM 4GS2LPeXRPhl2T2uCDX5Dy8=QqKS -----END PGP SIGNATURE-----
Thomas Bork
2003-Apr-04 21:23 UTC
[Samba] %a reports a Windows XP client as having a "Win2K" architecture.
Hi Gerald (Jerry) Carter, you wrote:>> One of the variables available in Samba is "%a", which, as you know >> is the architecture of the remote machine. I tested using this >> variable with a Windows 2000 and Windows XP client. Unfortunately, >> the log file reports the Windows XP client is seen as having an >> architecture of "Win2K" instead of something like "WinXP". The >> Windows 2000 box shows up fine as "Win2K". > > Fixed in 2.2.8sorry, not really ;o) Found the problem now too. If configuring logon path = \\%N\%U\%a in smb.conf and making a connection as Administrator (mapped to root) with WinXPPro, the directory /root/Win2K for profile directory will be created :( ^^^^^^ der tom
Geoff Stitt
2003-Apr-04 21:24 UTC
[Samba] %a reports a Windows XP client as having a "Win2K"architecture.
Sorry, I am not being descriptive enough. In my smb.conf I have the entry logon path = \\%L\profiles\%U\%a Hence the reason why you see "iitest\Win2K\ntuser.ini", etc. in the log. The "Win2K" portion is what is substituted for %a. In fact, when I look in /var/spool/samba/profiles I see the directories "ittest\Win2K\","username\Win2K\",etc., which is what I wanted as it keeps profiles for different architectures separate. Thx. On Fri, 2003-04-04 at 15:46, Thomas Bork wrote:> Hi Geoff Stitt, > > you wrote: > > > Still, when I log in from a Windows XP Professional client "Win2K" is > > still used. > [..] > > [2003/04/04 13:01:42, 2] smbd/open.c:open_file(246) > > ittest opened file ittest/Win2K/ntuser.ini read=Yes write=No > > (numopen=2) > > Your log says only, that user ittest opened the file > > ittest/Win2K/ntuser.ini > > nothing more, nothing less. This has nothing to do with the macro %a. > If you want to know, from which share (service) the file was opened, > search in the log above for > > [2003/04/04 22:38:08, 1] smbd/service.c:make_connection(636) > ??? (xxx.xxx.xxx.xxx) connect to service ??? as user ittest (uid=?, > gid=?) (pid ???) > > > Example from my machine: > > [2003/04/04 22:38:08, 1] smbd/service.c:make_connection(636) > xp (192.168.0.11) connect to service root as user root (uid=0, gid=0) > (pid 12321) > [2003/04/04 22:38:13, 2] smbd/open.c:open_file(246) > Administrator opened file profile/ntuser.ini read=Yes write=No > (numopen=2) > [2003/04/04 22:38:13, 2] smbd/close.c:close_normal_file(229) > root closed file profile/ntuser.ini (numopen=1) > > > I opened \\root\profile\ntuser.ini in my homedir. > > > der tom-- Geoff Stitt Information Technology Dept. SOMA Networks, Inc. 312 Adelaide Street West Suite 700 Toronto, CANADA M5V 1R2 Phone +1 416 977 1414, x1611 Fax +1 416 977 1505 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.samba.org/archive/samba/attachments/20030404/3c47bc54/attachment.bin