[Samba] different logon path for different users - local profilesfor a few users only - how?

Tomasz Chmielewski mangoo at wpkg.org
Wed Sep 28 12:07:26 GMT 2005


José M. Fandiño schrieb:
> Tomasz Chmielewski wrote:
> 
>>I would like to have roaming profiles for one group of users (student1,
>>student2), and local profiles for another group of users (Joe, Mary).
>>
>>Is it possible with Samba?
>>
>> From what I've tested, one can use either roaming profiles with a
>>setting similar to the one below:
>>
>>logon path = \\%L\profiles\%G\%U
>>
>>Or local profiles, using the logon path empty:
>>
>>logon path =
>>
>>I have no clue how to specify the logon path for certain users only.
> 
> 
> Hello Tomasz
> 
> _I_ don't _test _this_ but you might try to use 'include=' directives 
> to redefine the logon path for certain users. 
> 
> something like:
> .
> .
> logon path = \\%L\profiles\%G\%U
> .
> .
> include =  /etc/samba/profile.%U 
> 
> being /etc/samba/profile.%U a redefinition of logon paths, i.e.
> 
> #cat /etc/samba/profile.user1
> logon path =
> 
> #cat /etc/samba/profile.user2
> logon path = \profiles\%U

I doubt it can work. With "include =  /etc/samba/profile.%U" in smb.conf 
  testparm says:


Can't find include file /etc/samba/profile.


-- 
Tomek
http:/wpkg.org
Software deployment and upgrades with Samba


More information about the samba mailing list