[Samba] configure roaming profile

Pol Hallen samba at fuckaround.org
Sun Dec 20 07:28:48 UTC 2020


Hi folks :-)

Using samba4.9.5 standalone I created several users and password as 
windows machines

from windows, users can access to samba using own data without insert 
any user and password

Now I modify profile of users inserting \\srv1\home on windows account 
(I'd like using roaming profile) but there're some problems:

process_usershare_file: stat of /var/lib/samba/usershares/homes failed. 
Permission denied
WARNING: Failed to create BUILTIN\Administrators group!  Can Winbind 
allocate gids?

thanks for help!

Pol

[...]
[home]
         path = /samba/homes/%u
         browseable = yes
         writeable = yes
         valid users = @sambashare
         access based share enum = yes
         force create mode = 0600
         force directory mode = 0700

ls -la

drwxrwx--- 9 admin sambashare 4096 Dec  8 18:44 homes/

cat /var/log/samba

[2020/12/20 08:19:53.612490,  0] 
../source3/param/loadparm.c:3362(process_usershare_file)
   process_usershare_file: stat of /var/lib/samba/usershares/homes 
failed. Permission denied
[2020/12/20 08:19:53.758768,  2] 
../source3/param/loadparm.c:2803(lp_do_section)
   Processing section "[luca]"
[2020/12/20 08:19:53.759699,  2] 
../source3/param/loadparm.c:2803(lp_do_section)
   Processing section "[utenti]"
[2020/12/20 08:19:53.760519,  2] 
../source3/param/loadparm.c:2803(lp_do_section)
   Processing section "[home]"
[2020/12/20 08:19:53.761268,  2] 
../source3/param/loadparm.c:2803(lp_do_section)
   Processing section "[dati]"
[2020/12/20 08:19:53.762008,  2] 
../source3/param/loadparm.c:2803(lp_do_section)
   Processing section "[perizie]"
[2020/12/20 08:19:53.762870,  2] 
../source3/param/loadparm.c:2803(lp_do_section)
   Processing section "[sopralluoghi]"
[2020/12/20 08:19:53.764767,  2] 
../source3/auth/auth.c:316(auth_check_ntlm_password)
   check_ntlm_password:  authentication for user [luca] -> [luca] -> 
[luca] succeeded
[2020/12/20 08:19:53.767484,  2] 
../source3/auth/token_util.c:713(finalize_local_nt_token)
   WARNING: Failed to create BUILTIN\Administrators group!  Can Winbind 
allocate gids?
[2020/12/20 08:19:53.768662,  2] 
../source3/auth/token_util.c:732(finalize_local_nt_token)
   WARNING: Failed to create BUILTIN\Users group! Can Winbind allocate gids?
[2020/12/20 08:19:53.821425,  0] 
../source3/param/loadparm.c:3362(process_usershare_file)
   process_usershare_file: stat of /var/lib/samba/usershares/homes 
failed. No such file or directory
[2020/12/20 08:19:53.906900,  2] 
../source3/smbd/service.c:849(make_connection_snum)
   win2 (ipv4:192.168.50.39:49670) connect to service luca initially as 
user luca (uid=1002, gid=113) (pid 12402)
[2020/12/20 08:19:54.148292,  2] ../source3/smbd/open.c:1447(open_file)
   luca opened file luca.V6/6A6DCA49-668C-4DD1-8A7F-9D5B61E8EE92.tmp 
read=No write=Yes (numopen=1)
[2020/12/20 08:19:54.211721,  2] 
../source3/smbd/close.c:802(close_normal_file)
   luca closed file luca.V6/6A6DCA49-668C-4DD1-8A7F-9D5B61E8EE92.tmp 
(numopen=1) NT_STATUS_OK
[2020/12/20 08:20:04.459127,  2] ../source3/smbd/service.c:1129(close_cnum)
   win2 (ipv4:192.168.50.39:49670) closed connection to service luca




More information about the samba mailing list