Solved

How to configure Linux+Samba with roaming profile suport for windows clients

Posted on 2009-04-02
2
2,574 Views
Last Modified: 2013-12-16
Hi,
I Want to Know how to configure Linux+Samba with roaming profile suport for windows clients
0
Comment
Question by:alexinoa
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 4

Accepted Solution

by:
Multipath earned 500 total points
ID: 24055639
There is great data on this on the Samba website...  Some gottchas I have come accross with this is to make sure you set up the proper amount of disk sace for the share I would suggest 200mg per user or an automated clean up process for this.

http://wiki.samba.org/index.php/Samba_&_Windows_Profiles#Implementing_Roaming_Profiles_with_Samba

Implementing Roaming Profiles with Samba

To implement Roaming Profiles with Samba a few things must happen. First you must create a share to store these profiles, then you must set a few Samba directives to enable roaming profiles.

NOTE: You can theoretically store profiles within the users home directory, unfortunately Windows does not release a share immediately after logging out. So if you do store user's profiles within the home directories and another user logs into a machine immediately after another user logs out, the newly logged in user could invariably use the other users profile resulting in a possible security issue, as well as other issues. It is best to simply store all of the user profiles within a separate Samba share.
[edit]
Creating the Profile Share

To create a Samba share to use for your user's profiles simply add something similar to your share section of the smb.conf file:

    * [profiles]
    * comment = Network Profiles Share
    * path = /srv/samba/profiles
    * read only = No
    * store dos attributes = Yes
    * create mask = 0600
    * directory mask = 0700
    * browseable = no
    * guest ok = no
    * printable = no
    * hide files = /desktop.ini/outlook*.lnk/*Briefcase*/

Then ensure that everyone has write access to the directory listed as the path:

    * chmod o+rw /srv/samba/profiles

[edit]
Setting relevant directives for Roaming Profiles

The smb.conf settings required to use Roaming Profiles by default are:

    * logon path = \\%L\profiles\%U
    * logon home = \\%L\%U\.9xprofile
    * logon drive = P:

The logon home directive is only used if you have any Windows 9x based machines on your Domain, otherwise it does not need to be set. The logon drive specifies the Drive Letter Windows will assign your home directory, this alleviates the need to create a logon script that essentially would do the same thing.

The logon path directive is where you actually setup roaming profiles. This directive should contain a Windows Network path to the location of the profile for each user. If the user's profile directory does not exist, one will be created at that location (as long as the user has write access to that directory).

You can also take full advantage of Samba's Variable Substitutions and further separate User's profiles, such as by architecture. Using the directive:

    * logon path = \\%L\profiles\%U\%a

will separate the user's profiles relating to each version of Windows, such as WinXP, WinNT, etc. This is extremely helpful if you have users that jump from computer to computer that have different versions of Windows on them. This can solve a whole slew of problems relating to the registry on different versions of Windows, especially when running different version of Internet Explorer. Separating profiles in this way can be a very powerful feature, especially when you include Folder Redirection into the mix.


0
 

Expert Comment

by:Arslan306
ID: 25332121
how to configure windows xp client for using user profiles that made with samba server
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains the steps required to use the default Photos screensaver to display branding/corporate images
Determining the an SCCM package name from the Package ID
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question