[Samba] samba3 win2k roaming profiles.

John H Terpstra jht at samba.org
Sun Jan 18 02:53:06 GMT 2004


On Sat, 17 Jan 2004, Nathan Brown wrote:

> It is! If i right click on My Computer and go to Profiles it shows
> MYDOMAIN\agent2  Roaming. I put a new folder on the desktop and changed
> the background. But, no roaming activity. No profile updates nothing.
> If i logout and go to another computer I will not get my profile on
> that computer.

Then you will need to set:
	log level = 5
	log file = /var/log/samba/%m.log
	max log size = 0

And capture see what happends during a login, change profile, logout
sequence.

I'm sure all will be revealed.

- John T.

>
>
> On Jan 17, 2004, at 9:43 PM, John H Terpstra wrote:
>
> > On Sat, 17 Jan 2004, Nathan Brown wrote:
> >
> >> Sorry, Ill be a little more specific.
> >>
> >> 1. I create user "Joe"
> >> 2. I give "joe" a password
> >> 3. "joe" logs on and the FOLDER /home/profile/joe (aka.
> >> \\www\profile\joe) is created.
> >> 4. IF a profile exists in \\www\profile\joe and NOT locally, it will
> >> read it from the server.
> >> 5. IF a profile exists LOCALLY, it will NOT read from the server.
> >> 6. In BOTH situations, the profile files will NOT be saved to the
> >> server.
> >
> > If you have a local profile, that will be used. That is normal
> > behavior.
> >
> > If you client uses the roaming profile it should write it back only if
> > the
> > profile contents has changed during the current session. It will only
> > do
> > that it the profile that is on the workstation is registered as a
> > roaming
> > profile.
> >
> > - John T.
> >
> >>
> >> May I also, I'm using Windows 2000 SP4 (But its an upgrade from
> >> WINNT).
> >>
> >> On Jan 17, 2004, at 9:27 PM, John H Terpstra wrote:
> >>
> >>> Nathan,
> >>>
> >>> Workstation default user profiles go in:
> >>> 	C:\Application and User Defaults\'username'
> >>>
> >>> Roaming profiles go in:
> >>>
> >>> logon path/'username'
> >>>
> >>> ie: If "logon path = \\server\profiles"
> >>>
> >>> Fred's profile will go in \\server\profiles\fred
> >>>
> >>> If the UNIX path for the [profiles] share is: /home/profiles
> >>> Fred's profile under UNIX will be in /home/profiles/fred
> >>>
> >>> Note: You must create the directory 'fred' under the profile share
> >>> because
> >>> Samba does not automatically do that for you. If the directory does
> >>> not
> >>> exist, the profile will not be saved.
> >>>
> >>> Cheers,
> >>> John T.
> >>>
> >>> On Sat, 17 Jan 2004, Nathan Brown wrote:
> >>>
> >>>> Perhaps I have a faulty Windows setup because I used the group
> >>>> policy
> >>>> editor gpedit.msc and set it to delete all profiles after you logout
> >>>> and to wait for roaming profiles. Perhaps I should re-install? Also,
> >>>> where are the profiles supposed to go? The same place it downloaded
> >>>> it
> >>>> from; the "logon path"?
> >>>>
> >>>>
> >>>> On Jan 17, 2004, at 8:10 PM, John H Terpstra wrote:
> >>>>
> >>>>> On Sat, 17 Jan 2004, Nathan Brown wrote:
> >>>>>
> >>>>>> I'm running Windows 2000 Professional and Samba 3.0.1 and I can't
> >>>>>> seem
> >>>>>> to get roaming profiles to work right. When there are no profiles
> >>>>>> stored locally on the win2k machine, and a user logs in for the
> >>>>>> first
> >>>>>> time, it successfully reads the profile from the server in the
> >>>>>> \\netlogon\Default User  share. Next, if you manually copy the
> >>>>>> profile
> >>>>>> to server and login to the workstation, it will read the profile.
> >>>>>>
> >>>>>> The problem comes in when any changes are made to the profile or
> >>>>>> if
> >>>>>> a
> >>>>>> profile exists (for that user) on the workstation, it won't read
> >>>>>> the
> >>>>>> profile from the server nor will it update the profile on the
> >>>>>> server
> >>>>>> when they log off. I can't tell if this is a Windows problem or a
> >>>>>> Samba
> >>>>>> problem, but everything looks like it set correctly in Samba and
> >>>>>> on
> >>>>>> Windows and I just don't know what to do now!
> >>>>>
> >>>>> What you see is the correct Windows behavior. Windows will read the
> >>>>> Default Network Profile only the to create the users' default
> >>>>> profile.
> >>>>> That default will be stored on the local windows workstation in the
> >>>>> default location. If roaming profiles are enabled, the users'
> >>>>> default
> >>>>> profile will be written to the profile share in a directory named
> >>>>> as
> >>>>> the
> >>>>> user.
> >>>>>
> >>>>> You can configure the workstation to delete a roaming profile on
> >>>>> logout.
> >>>>> Whent that is done, if the user has a 'per user' default profile it
> >>>>> will
> >>>>> be used in preference to the Network Default User profile.
> >>>>>
> >>>>> Cheers,
> >>>>> John T.
> >>>>>
> >>>>>>
> >>>>>> Samba Config:
> >>>>>>
> >>>>>> [global]
> >>>>>>          workgroup = WORKSTATION
> >>>>>>          time server = Yes
> >>>>>>          log level = 11
> >>>>>>          logon script = %u.bat
> >>>>>>          logon drive = h:
> >>>>>>          domain logons = Yes
> >>>>>>          os level = 33
> >>>>>>          preferred master = Yes
> >>>>>>          domain master = Yes
> >>>>>>          profile acls = yes
> >>>>>>          logon home = \\www\%u
> >>>>>>          logon path = \\www\profile\%u
> >>>>>>          profile acls = yes
> >>>>>>
> >>>>>> [profile]
> >>>>>>          create mask = 0777
> >>>>>>          directory mask = 0777
> >>>>>>          writable = yes
> >>>>>>          browseable = yes
> >>>>>>          path = /home/profiles
> >>>>>>
> >>>>>> [netlogon]
> >>>>>>          path = /usr/local/netlogon
> >>>>>>          read only = No
> >>>>>>          locking = No
> >>>>>>          root preexec = /usr/local/netlogon/logonscript.pl %U %M
> >>>>>> %m
> >>>>>>          root postexec = /usr/local/netlogon/logoutscript.pl %U %M
> >>>>>> %m
> >>>>>>
> >>>>>> [homes]
> >>>>>>          comment = Home Directories
> >>>>>>          read only = No
> >>>>>>          create mask = 0700
> >>>>>>          browseable = No
> >>>>>>
> >>>>>>
> >>>>>
> >>>>> --
> >>>>> John H Terpstra
> >>>>> Email: jht at samba.org
> >>>>
> >>>>
> >>>
> >>> --
> >>> John H Terpstra
> >>> Email: jht at samba.org
> >>
> >
> > --
> > John H Terpstra
> > Email: jht at samba.org
>

-- 
John H Terpstra
Email: jht at samba.org


More information about the samba mailing list