First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 7139
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Karolin Seeger <ks@sernet.de>
Hardware:
OS:
Version:
Priority:
Severity:
Target Milestone:
Reporter: heinz hoelzl <heinz.hoelzl@gvcc.net>
Add CC:
CC:
QA Contact:
URL:
Summary:
Keywords:
Flags: Requestee:
  ()

Attachment Type Creator Created Size Flags Actions
log.smbd for smbcacls using username%password application/octet-stream heinz hoelzl 2010-02-16 10:53 CST 436.16 KB none Details
log.smbd for smbcacls using a kerberos principal application/octet-stream heinz hoelzl 2010-02-16 10:57 CST 82.68 KB none Details
Proposed patch patch Volker Lendecke 2010-02-16 16:33 CST 1.90 KB jra: review+
Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 7139 depends on: Show dependency tree
Show dependency graph
Bug 7139 blocks:

Additional Comments:







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2010-02-16 06:03 CST
i have a file with rights 600.
if i connect to samba using username%password i can see all the rights, acl,
owner ecc.
if i connect to samba using kerberos i can not see the owner-information of the
file. 
if i try to rename this file from a windows-client i get a
NT_STATUS_ACCESS_DENIED because the owner-information is missing, but i can
change the content of the file. (mode of the parent directory is 777)


# ls -l x.txt
-rw------- 1 heinz_sgv domusers 0 2010-02-15 10:33 x.txt

smbcacls with the kerberos-option -k (principal is the same as the owner of the
file = heinz_sgv )
# smbcacls //localhost/samba -k kerberos/x.txt
Failed to open \kerberos\x.txt: NT_STATUS_ACCESS_DENIED

smbcacls with username%password
# smbcacls //localhost/samba -U heinz_sgv%password kerberos/x.txt
REVISION:1
CONTROL:0x9004
OWNER:GVCC.NET\heinz_sgv
GROUP:GVCC.NET\Domain Users
ACL:GVCC.NET\heinz_sgv:ALLOWED/0x0/RW
ACL:GVCC.NET\Domain Users:ALLOWED/0x0/
ACL:Everyone:ALLOWED/0x0/


after a chmod g+r x.txt all works fine:
# chmod g+r x.txt 
# ls -l x.txt
-rw-r----- 1 heinz_sgv domusers 0 2010-02-15 10:33 x.txt
# smbcacls //localhost/samba -k kerberos/x.txt
REVISION:1
CONTROL:0x9004
OWNER:GVCC.NET\heinz_sgv
GROUP:GVCC.NET\Domain Users
ACL:GVCC.NET\heinz_sgv:ALLOWED/0x0/RW
ACL:GVCC.NET\Domain Users:ALLOWED/0x0/R
ACL:Everyone:ALLOWED/0x0/

# klist
Ticket cache: FILE:/tmp/krb5cc_0
Default principal: heinz_sgv@GVCC.NET

------- Comment #1 From Volker Lendecke 2010-02-16 09:23:15 CST -------
Please upload debug level 10 logs of smbd for both cases.

Thanks,

Volker

------- Comment #2 From heinz hoelzl 2010-02-16 10:53:55 CST -------
Created an attachment (id=5356) [details]
log.smbd for smbcacls using username%password

log.smbd for smbcacls using username%password

in this case all works fine

------- Comment #3 From heinz hoelzl 2010-02-16 10:57:06 CST -------
Created an attachment (id=5357) [details]
log.smbd for smbcacls using a kerberos principal

log.smbd for smbcacls using a kerberos principal
the principal is also heinz_sgv, the same user as the owner of the file.
in this case:

# smbcacls //localhost/samba -k kerberos/x.txt
Failed to open \kerberos\x.txt: NT_STATUS_ACCESS_DENIED

# ll /samba/kerberos/x.txt 
-rw------- 1 heinz_sgv domusers 6 2010-02-16 12:57 /samba/kerberos/x.txt

------- Comment #4 From Volker Lendecke 2010-02-16 16:33:47 CST -------
Created an attachment (id=5358) [details]
Proposed patch

Can you try the attached patch? I don't have an appropriate setup around right
now, so I have not tested it at all. So it might immediately crash (or so), but
I'd give it a good chance that it fixes your problem.

Please tell me about your testing results!

Thanks,

Volker

------- Comment #5 From heinz hoelzl 2010-02-17 02:09:34 CST -------
thanx! now it works fine, i testet it from linux with smbcacls and from windows
xp

# ll /samba/kerberos/x.txt 
-rw------- 1 heinz_sgv domusers 6 2010-02-16 12:57 /samba/kerberos/x.txt

# smbcacls //localhost/samba -k kerberos/x.txt
REVISION:1
CONTROL:0x9004
OWNER:GVCC.NET\heinz_sgv
GROUP:GVCC.NET\Domain Users
ACL:GVCC.NET\heinz_sgv:ALLOWED/0x0/RW
ACL:GVCC.NET\Domain Users:ALLOWED/0x0/
ACL:Everyone:ALLOWED/0x0/

------- Comment #6 From Volker Lendecke 2010-02-17 04:48:48 CST -------
(From update of attachment 5358 [details])
Jeremy, please ack this for 3.5.1 and re-assign to Karolin if appropriate.

Thanks,

Volker

------- Comment #7 From Volker Lendecke 2010-02-17 04:50:01 CST -------
Heinz: Thanks for testing. Pushed to master, will be in 3.5.1 latest, maybe in
3.5.0.

Volker

------- Comment #8 From Jeremy Allison 2010-02-17 10:14:26 CST -------
(From update of attachment 5358 [details])
Clever fix - nice work !

------- Comment #9 From Jeremy Allison 2010-02-17 10:15:31 CST -------
Reopen to assign to Karolin for inclusion in 3.5.0rc1 or 3.5.1.

------- Comment #10 From Volker Lendecke 2010-02-17 10:16:24 CST -------
Karolin, please pull whenever you see appropriate, I think this should be in
latest 3.5.1.

Thanks,

Volker

------- Comment #11 From Karolin Seeger 2010-02-17 10:44:20 CST -------
Pushed to v3-5-test. Will be included in 3.5.0rc3.
Closing out bug report.

Thanks!

First Last Prev Next    No search results available      Search page      Enter new bug