[Samba] different logon scripts and mappings for individual users

Adam Williams awilliam at mdah.state.ms.us
Tue Jun 17 16:47:44 GMT 2008


but if the only share they need is their home directory you can map that 
automagically with:

        logon drive = R:
        logon home = \\roark\%U

Leandro Tracchia wrote:
> really? i'm glad i only have 18 users. what if there is a common set
> of server shares that i would want everyone to map to, with exception
> of a handful of users. would i still be forced to have a script for
> each individual user???
> On Tue, Jun 17, 2008 at 12:21 PM, Adam Williams
> <awilliam at mdah.state.ms.us> wrote:
>> in the global section:
>>       logon script = scripts\%U.bat
>> then have a script for each user by their username.bat
>> Leandro Tracchia wrote:
>>> i'm not sure how to create different logon scripts for different
>>> users. right now i have one logon script called 'logon.bat' that maps
>>> all users to a server share and syncs the time with the server. i need
>>> to be able to map different users to different server shares. not all
>>> users should be mapped to all server shares. these should be automatic
>>> mappings.
>>> for example:
>>> user1 should only be automatically mapped to music/ share when he logs in.
>>> user2 should only be automatically mapped to photos /share when he logs
>>> in.

More information about the samba mailing list