Letters by active User

USBDLM

 

Drive Letters by active User


 

The active user can be configured using its user name or the name of a group he is a member of.

 

To use groups defined on a server the USBDLM service has to start itself in the context of the logged on user. This USBDLM instance then determines the groups and reports them to the USBDLM service.

 

Use server groups only if required. To activate reading server groups set:

 

[Settings]

NetUserGroups=1

 

Since V4.7.2.50 beta this is probably no more required.

 

 

Sample for the user name:

 

;drive letters for the parents

[DriveLetters]

UserName=Homer

UserName=Marge

Letters=X,y

 

;no drive letters for the kids

[DriveLetters]

UserName=Bart

UserName=Lisa

UserName=Maggie

DriveType=ANY

Letter1=-

 

DriveType=ANY is required to remove the drive letters of USB floppy and USB CD/DVD drives too.

 

 

Sample for group names:

 

[DriveLetters]

UserGroup=Administrators

Letters=X,Y

 

;no USB drives for all others

[DriveLetters]

Letter=-

 

 

Or reverse:

 

;no drives for normal users

[DriveLetters]

UserGroup=Users

UserGroup=Guests

Letter1=-

 

;all other users can

[DriveLetters]

Letters=X,Y

 

 

Or using the user's admin state

 

[DriveLetters]

UserIsAdmin=1

Letters=X,Y

 

;no drives for non admins

[DriveLetters]

UserIsAdmin=0

DriveType=ALL

Letter=-

 

 

Under Vista/Win7+ for an Admin running under UAC UserIsAdmin is assumed as 1.

 

To make a certain USB drive work even a non admin is logged on, put a section with the drive's device ID in between or before both,

see Letters by Device ID.

 

[DriveLetters]

DeviceID=USB\VID_067B&PID_2517

Letters=X,Y

 

 

You can use Wildcards. For instance admin* is good for Administrator and Admin.

 

While no user is active, UserName and UserGroup are empty, therefore no section which has UserGroup or UserName defined will be ever used then. UserIsAdmin is assumed as 0 while no user is active.

 

To make a section valid for "no user logged on" UserName=- or UserGroup=- can be configured.

 

While Windows shows the logon screen after switching the user, the last user is still logged on.