[Samba] how to view disk labels used by a user for his/her disk shares?

2007-09-25 Thread Gianluca Cecchi
I have a samba pdc.
I would like to automatically assign at next logon a disk share with a
particular letter that is the same for a group of users (such as L:\).
How can I see with samba and/or windows tools what are currently the disk
labels used by this group of users so that I can choose accordingly?
And in general, is there any smb.conf or other config option that lets me
set a unique disk letter for a share, so that I have users accessing
consistently the different disk shares?

thanks in advance,
gianluca
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] how to view disk labels used by a user for his/her disk shares?

2007-09-25 Thread Francis Galiegue
Le mardi 25 septembre 2007, Gianluca Cecchi a écrit :
 I have a samba pdc.
 I would like to automatically assign at next logon a disk share with a
 particular letter that is the same for a group of users (such as L:\).
 How can I see with samba and/or windows tools what are currently the disk
 labels used by this group of users so that I can choose accordingly?
 And in general, is there any smb.conf or other config option that lets me
 set a unique disk letter for a share, so that I have users accessing
 consistently the different disk shares?
 
 thanks in advance,
 gianluca

The logon script parameter accepts macros such as %U for the username and %G 
for the primary group of a user. So you could do something like:

logon script = %G.bat

and have a different logon script for each group.

Note however that if you want to put a script in a subdir, this directive is 
interpreted by Windows, so you should separate path components with '\', 
not '/'.

HTH,
-- 
Francis Galiegue, One2team - [EMAIL PROTECTED]
[ATTENTION : CHANGEMENT DE COORDONNÉES !]
+33178945570, +33683877875, http://www.one2team.com
40 avenue Raymond Poincaré - 75116 PARIS
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba