Permission denied of usershares statfile in Samba 3.0.28a-1ubuntu4.7
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
samba (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
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!
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.
Transaction 17 of length 110
[2008/11/18 02:32:31, 3] smbd/process.
switch message SMBtrans2 (pid 915) conn 0x8535d40
[2008/11/18 02:32:33, 3] smbd/service.
checking for home directory <USERNAME> gave (NULL)
[2008/11/18 02:32:33, 0] param/loadparm.
process_
[2008/11/18 02:32:33, 3] smbd/service.
find_service() failed to find service <USERNAME>
[2008/11/18 02:32:33, 3] smbd/error.
error packet at smbd/trans2.c(6307) cmd=50 (SMBtrans2) NT_STATUS_NOT_FOUND
[2008/11/18 02:32:33, 3] smbd/process.
Transaction 307 of length 104
[2008/11/18 02:32:33, 3] smbd/process.
switch message SMBntcreateX (pid 914) conn 0x8515a18
[2008/11/18 02:32:33, 3] smbd/sec_
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.
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"
This bug report can be closed....
The Problem was an error in mapping user and group ID to the LDAP UID/GID!
I have set the right UID/GID in the smb.conf with
uid map = 10000-20000
gid map = 500-600
-> no errors in config!!