SAMBA + WinXP + Win7

Hi, on the same SAMBA server, can I have a net logon profile for
WinXP and another for Win7?

Hi,

as far as i know there will be no difference between the the Windows version which connect to the samba server.
But, i’am dont necessarily need to be right :slight_smile:

On Fri July 23 2010 08:09 am, VampirD wrote:

> Hi, on the same SAMBA server, can I have a net logon profile for
> WinXP and another for Win7?
VampirD;

If you are talking about roaming profiles the answer is yes. In fact, XP and
Windows 7 need different profiles. The Windows7 and VISTA profile have the
default extension “.V2” which is not true of XP.
In my smb.conf I have:


logon path = \\%L\profiles\%U

The profiles for XP are of the form: <username>; while those of VISTA or WIN7
are: <username>.V2

You do NOT need a separate [profile] share in smb.conf.

If you are having problems please post your “logon path” and [profile] share
from /etc/samba/smb.conf

P. V.
“We’re all in this together, I’m pulling for you.” Red Green

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Yes, I know that, but I want to have inside the netlogon directory a
preconfigured profile for XP and another one for 7


[netlogon]
comment = Network Logon Service
path = /var/lib/samba/netlogon
write list = root
read only = yes


VampirD

Microsoft Windows is like air conditioning
Stops working when you open a window.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/

iEYEARECAAYFAkxJ4rMACgkQJQ+0ABWtaVknfgCgvB8xIalJ6hJ4btwfIgXeW+NP
bEUAoOItTjX/56P9uRyVOY1dfqthsmCp
=k8Wa
-----END PGP SIGNATURE-----

On Fri July 23 2010 01:39 pm, VampirD wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Yes, I know that, but I want to have inside the netlogon directory a
> preconfigured profile for XP and another one for 7
>
>


> [netlogon]
>         comment = Network Logon Service
>         path = /var/lib/samba/netlogon
>         write list = root
>         read only = yes
> 

VampirD

Microsoft Windows is like air conditioning
Stops working when you open a window.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/

iEYEARECAAYFAkxJ4rMACgkQJQ+0ABWtaVknfgCgvB8xIalJ6hJ4btwfIgXeW+NP
bEUAoOItTjX/56P9uRyVOY1dfqthsmCp
=k8Wa
-----END PGP SIGNATURE-----
VampirD;
So you are talking logon script. I’ve not tried this but I think you could
use the %a variable in the path parameter. Something like:


path = /var/lib/samba/netlogon/%a

I’m not sure if the manual is a bit out of date or this variable has not been
extended yet for Windows7. In the worse case scenario, it looks to me like
the XP machines would use:
/var/lib/samba/netlogon/WinXP
and the Windows 7 machines would use:
/var/lib/samba/netlogon/UNKNOWN

It’s certainly likely that %a has been extended to recognize Windows 7 and the
manual is just a bit out of date.

See the write up on variable substitution in the smb.conf manual.
http://www.samba.org/samba/docs/man/manpages-3/smb.conf.5.html

You might also want to check the release notes for 3.4 and 3.5 to see if any
mention is made of %a with regards to Windows 7. The release notes are
available on Samba.org.

If you do not have very many clients, you might get by with using %m , this
would require scripts for each individual client, although you could just
link all the XP and WIN7 clients to an appropriate script.

P. V.
“We’re all in this together, I’m pulling for you.” Red Green

Done, samba recognize Win7 as Vista

On Mon July 26 2010 06:11 am, VampirD wrote:

> Done, samba recognize Win7 as Vista
VampirD;

Glad to hear that. Thanks for posting back the results.

P. V.
“We’re all in this together, I’m pulling for you.” Red Green