The Samba-Bugzilla – Bug 1995
dos filetimes: utime() Function call failes when primary group is not owner
Last modified: 2005-10-04 04:32:32 UTC
Opening/Closing an excel document on a samba server (3.0.7) which is member of a
german windows nt domain works fine but not reseting the time of the file to old
values. (set_filetime function of samba) Activating the dos filetimes directive
works fine. I can see that samba calls the build in function set_filetime and
via strace i can see, that utime is called.
This works fine, if the primary group (mapped by winbind) of the user does not
contain any german characters. In this special case it's the group
"Domänen-Benutzer". If i change the primary group for that user to e.g.
"Stuff-People", everything works fine.
The file is the same, rights are the same, only the primary group is changed.
B.t.w. the "unix charset" is iso-8559-15. I think something is wrong with winbind.
Granting Accesrigths to file for the group "Domänen-Benutzer" works fine.
Here's what i mean:
id of user fscadmin:
uid=10000(DOMAIN+fscadmin) gid=10000(DOMAIN+Domänen-Benutzer) <--fail
after the change:
uid=10000(DOMAIN+fscadmin) gid=10040(DOMAIN+GESIS) <-- success
Changing the primary group to a group without german special characters, let the
thing run fine, as long as the user or it's primary group is owner. If the user
or the primergy group has only full access to the file via nested groups and
posix acl, the utime calls fail.
Here's Information about the platform, samba is running on:
- SuSE SLES 9
Is any additional Information needed?
What i forgot is, if a file is owned by root (copied as domain administrator
which is mapped to root by smbusers) and a user has full access (rwx) via acl,
setting the time back doesn't work.
Has been fixed in later releases
Thanks for the update.