tms3 at tms3.com
2010-Jun-11 06:02 UTC
[Samba] Fwd: how to "Disable Samba Roaming profile"
> > --- Original message --- > Subject: [Samba] Fwd: how to "Disable Samba Roaming profile" > From: Muqtadir Kamal <smkamal2001 at gmail.com> > To: <samba at lists.samba.org> > Date: Thursday, 10/06/2010 10:31 PM > > ---------- Forwarded message ---------- > From: Muqtadir Kamal <smkamal2001 at gmail.com> > Date: Fri, Jun 11, 2010 at 10:49 AM > Subject: how to "Disable Samba Roaming profile" > To: samba at lists.samba.org > > > Hey all, please let's me know how to "Disable Samba Roaming profile" > In > OpenLDAP+SAMBA SERVER [root at XXXXX ~]# testparmLoad smb config files > from > /etc/samba/smb.confProcessing section "[homes]"Global parameter server > signing found in service section!Global parameter server schannel > found in > service section!Processing section "[netlogon]"Processing section > "[Profiles]"WARNING: No path in service Profiles - making it > unavailable!NOTE: > Service Profiles is flagged unavailable.SNIP OK, I have some N00b time. First open in your favorite text editor smbldap.conf, and find the bits that look like this: ############################################################################## # # SAMBA Configuration # ############################################################################## # The UNC path to home drives location (%U username substitution) # Just set it to a null string if you want to use the smb.conf 'logon home' # directive and/or disable roaming profiles # Ex: userSmbHome="\\PDC-SMB3\%U" userSmbHome="\\<NetBIOS-ServerName or ip-addy>\<ShareName>" # The UNC path to profiles locations (%U username substitution) # Just set it to a null string if you want to use the smb.conf 'logon path' # directive and/or disable roaming profiles # Ex: userProfile="\\camarillo\profiles\%U" userProfile="\\<NetBIOS-ServerName or ip-addy>\<ProfileDirectory>\%U" # The default Home Drive Letter mapping # (will be automatically mapped at logon time if home directory exist) # Ex: userHomeDrive="H:" userHomeDrive="z:" Make sure that the shares and paths you have make sense. Now edit smb.conf in your favorite text editor, and find your shares listings, and create something like this, that makes sense on your system: [Profiles] path=/usr/home/sambashit/Profiles public = yes only guest = no browseable = yes writeable = yes printable = no create mask = 0700 force create mode = 0700 force directory mode = 0700 directory security mask = 0700 level2 oplocks = Yes OK. Now, simply mkdir the appropriate directories on your file system, and set the perms on the folder to something like chmod Administrator:Domain\ Users /usr/home/sambashit/Profiles <--- Do not go all recursive on this (no -R switch). Now....If you prefer no roaming profiles, after doing the above, you can edit smbldap.conf thusly: # The UNC path to profiles locations (%U username substitution) # Just set it to a null string if you want to use the smb.conf 'logon path' # directive and/or disable roaming profiles # Ex: userProfile="\\camarillo\profiles\%U" userProfile="\\%SystemDrive%\ %USERPROFILE%\%U" see: <http://en.wikipedia.org/wiki/Environment_variable> for additional Windoze environment variables. Of course, for existing users, you will need export and edit an .ldif file for the user, use an ldap gui editor, or delete users created prior to editing the above, and recreate the users. Cheers, TMS III
tms3 at tms3.com
2010-Jun-11 06:09 UTC
[Samba] Fwd: how to "Disable Samba Roaming profile"
Whoops...edited below> > --- Original message --- > Subject: Re: [Samba] Fwd: how to "Disable Samba Roaming profile" > From: <tms3 at tms3.com> > To: <SMKamal2001 at GMail.com> > Cc: <samba at lists.samba.org> > Date: Thursday, 10/06/2010 11:03 PM > > > > > >> >> >> --- Original message --- >> Subject: [Samba] Fwd: how to "Disable Samba Roaming profile" >> From: Muqtadir Kamal <smkamal2001 at gmail.com> >> To: <samba at lists.samba.org> >> Date: Thursday, 10/06/2010 10:31 PM >> >> ---------- Forwarded message ---------- >> From: Muqtadir Kamal <smkamal2001 at gmail.com> >> Date: Fri, Jun 11, 2010 at 10:49 AM >> Subject: how to "Disable Samba Roaming profile" >> To: samba at lists.samba.org >> >> >> Hey all, please let's me know how to "Disable Samba Roaming profile" >> In >> OpenLDAP+SAMBA SERVER [root at XXXXX ~]# testparmLoad smb config files >> from >> /etc/samba/smb.confProcessing section "[homes]"Global parameter server >> signing found in service section!Global parameter server schannel >> found in >> service section!Processing section "[netlogon]"Processing section >> "[Profiles]"WARNING: No path in service Profiles - making it >> unavailable!NOTE: >> Service Profiles is flagged unavailable. > SNIP > > OK, I have some N00b time. > > First open in your favorite text editor smbldap.conf, and find the > bits that look like this: > > ############################################################################## > # > # SAMBA Configuration > # > ############################################################################## > > # The UNC path to home drives location (%U username substitution) > # Just set it to a null string if you want to use the smb.conf 'logon > home' > # directive and/or disable roaming profiles > # Ex: userSmbHome="\\PDC-SMB3\%U" > userSmbHome="\\<NetBIOS-ServerName or ip-addy>\<ShareName>" > > # The UNC path to profiles locations (%U username substitution) > # Just set it to a null string if you want to use the smb.conf 'logon > path' > # directive and/or disable roaming profiles > # Ex: userProfile="\\camarillo\profiles\%U" > userProfile="\\<NetBIOS-ServerName or ip-addy>\<ProfileDirectory>\%U" > > # The default Home Drive Letter mapping > # (will be automatically mapped at logon time if home directory exist) > # Ex: userHomeDrive="H:" > userHomeDrive="z:" > > Make sure that the shares and paths you have make sense. > > Now edit smb.conf in your favorite text editor, and find your shares > listings, and create something like this, that makes sense on your > system: > > [Profiles] > path=/usr/home/sambashit/Profiles > public = yes > only guest = no > browseable = yes > writeable = yes > printable = no > create mask = 0700 > force create mode = 0700 > force directory mode = 0700 > directory security mask = 0700 > level2 oplocks = Yes > > OK. Now, simply mkdir the appropriate directories on your file > system, and set the perms on the folder to something likechown Administrator:Domain\ Users /usr/home/sambashit/Profiles chmod 770 /usr/home/sambashit/Profiles> <--- > Do not go all recursive on this (no -R switch). > > Now....If you prefer no roaming profiles, after doing the above, you > can edit smbldap.conf thusly: > > # The UNC path to profiles locations (%U username substitution) > # Just set it to a null string if you want to use the smb.conf 'logon > path' > # directive and/or disable roaming profiles > # Ex: userProfile="\\camarillo\profiles\%U" > userProfile="\\%SystemDrive%\ %USERPROFILE%\%U" > > see: > > <http://en.wikipedia.org/wiki/Environment_variable> > > for additional Windoze environment variables. > > Of course, for existing users, you will need export and edit an .ldif > file for the user, use an ldap gui editor, or delete users created > prior to editing the above, and recreate the users. > > Cheers, > > TMS III > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba
Reasonably Related Threads
- how to "Disable Samba Roaming profile"
- Howto Backup Domain Controller (BDC) for the Primary Domain Controller (PDC) in Centos Openldap+samba 3.3 Please send to...
- smb/cifs share network speed testing
- Your home directory is listed as :'home/xxxx' but it does not appear to exist
- store profiles on a third server