[Samba] How to test roaming profiles

Marc Delisle marc at infomarc.info
Sat Jul 18 10:09:20 MDT 2009

Gary Dale a écrit :
> Marc Delisle wrote:
>> Hi,
>> I'm working on a server that was upgraded a few weeks ago (Linux 
>> Mandriva was reinstalled with a more up-to-date Samba version which is 
>> 3.3.2).
>> Now, roaming profiles no longer work. I even wonder what would be the 
>> proper to way to test them. Workstations are running Windows XP.
>> I followed the procedure for Win2000/XP located here:
>> http://us6.samba.org/samba/docs/man/Samba-HOWTO-Collection/ProfileMgmt.html#id2660622 
>> and the profile conversion for userx took place; however, looking on 
>> the workstation, it says that userx's profile is roaming but its 
>> status is local. Adding a file on the Desktop, and after logout, the 
>> file is not synched to the server.
>> Thanks,
> Have you checked that the profile path is correct? It could be that the
> profile path doesn't exist on your server so the local profile can't be
> sync'ed. It may also be a permissions thing. Check your Samba logs.
> Don't forget to restart Samba after making a change to smb.conf.
I'm using this in smb.conf:
root preexec = PROFILE=/home/samba/profiles/%u ; if [ ! -e $PROFILE ]; 
then mkdir -pm755 $PROFILE ; chown %u.%g $PROFILE;fi

         valid users= @tous
         username = @tous
         path = /home/samba/profiles
         write list = @tous
         create mode = 0700

and /home/samba/profiles exists, owned by root:root and permissions 777.

When I try to log in with a user for which I did not convert the 
profile, his directory under profiles is created and a file prf86.tmp is 
created, that's all.

In /var/log/samba, there are files named username.log containing many 
lines I cannot interpret, for example:
[2009/07/18 10:34:13,  3] smbd/sec_ctx.c:set_sec_ctx(324)
   setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2009/07/18 10:34:13,  3] smbd/process.c:smbd_process(1930)
   receive_message_or_smb failed: NT_STATUS_END_OF_FILE, exiting
[2009/07/18 10:34:13,  3] smbd/sec_ctx.c:set_sec_ctx(324)
   setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2009/07/18 10:34:13,  3] smbd/connection.c:yield_connection(31)
   Yielding connection to
[2009/07/18 10:34:13,  3] smbd/server.c:exit_server_common(960)
   Server exit (normal exit)

Anything specific to look for in the logs?

Marc Delisle

More information about the samba mailing list