Tomasz Chmielewski
2005-Sep-28 09:12 UTC
[Samba] different logon path for different users - local profiles for a few users only - how?
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. I use Samba 3.0.14a (PDC) with OpenLDAP backend. -- Tomek http://wpkg.org
Tomasz Chmielewski
2005-Sep-28 12:05 UTC
[Samba] different logon path for different users - local profilesfor a few users only - how?
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\%UI 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
Josh Kelley
2005-Sep-28 15:13 UTC
[Samba] different logon path for different users - local profiles for a few users only - how?
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?You should be able to set the profile path for individual users using pdbedit, or directly by setting the sambaProfilePath attribute in the LDAP backend. Josh Kelley