[Samba] Permission denied of usershares statfile in Samba 3.0.28a-1ubuntu4.7

Meslo84 meslo84 at gmx.de
Tue Nov 18 09:37:57 GMT 2008


Hello,

I have migrate my running Samba-PDC Setup with LDAP from Debian Etch to
Ubuntu Hardy Server 8.04.

LDAP ist running correct. Samba Setup ist working right, but acces to
Users Home has a poor performance. Access to a "PUBLIC" Folder is much
faster!

Bug Report:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/299306


The Usershare Folder:
drwxrwx--T 2 root sambashare 4096 Nov 17 20:10 usershares

Error in log.PC09: <USERNAME> stands for the login user

2008/11/18 02:32:31, 3] smbd/process.c:process_smb(1069)
  Transaction 17 of length 110
[2008/11/18 02:32:31, 3] smbd/process.c:switch_message(927)
  switch message SMBtrans2 (pid 915) conn 0x8535d40
[2008/11/18 02:32:33, 3] smbd/service.c:find_service(286)
  checking for home directory <USERNAME> gave (NULL)
[2008/11/18 02:32:33, 0] param/loadparm.c:process_usershare_file(4606)
  process_usershare_file: stat of /var/lib/samba/usershares/ <USERNAME>
failed. Permission denied
[2008/11/18 02:32:33, 3] smbd/service.c:find_service(360)
  find_service() failed to find service <USERNAME>
[2008/11/18 02:32:33, 3] smbd/error.c:error_packet_set(106)
  error packet at smbd/trans2.c(6307) cmd=50 (SMBtrans2) NT_STATUS_NOT_FOUND
[2008/11/18 02:32:33, 3] smbd/process.c:process_smb(1069)
  Transaction 307 of length 104
[2008/11/18 02:32:33, 3] smbd/process.c:switch_message(927)
  switch message SMBntcreateX (pid 914) conn 0x8515a18
[2008/11/18 02:32:33, 3] smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (31033, 544) - sec_ctx_stack_ndx = 0

/etc/samba/smb.conf

[profiles]
        path = /srv/profiles/
        browseable = no
        writeable = yes
        guest ok = yes
        hide files = /desktop.ini/ntuser.ini/NTUSER.*/thumbs.db/
        write list = %U, @"Domain Users", @"Domain Admins"
        create mode = 0600
        directory mode = 0700
        default case = lower
        preserve case = no
        case sensitive = no
        force group = "Domain Users"

[homes]
        comment = Home Directory %U, %u
        path = /srv/user-homes/%U
        browseable = no
       valid users = %S
        read only = no
        writeable = yes
        guest ok = no
        inherit permissions = yes
        create mask = 0644
        directory mask = 0775
        force user = root
        force group = "Domain Users"


More information about the samba mailing list