Bug 1995 - dos filetimes: utime() Function call failes when primary group is not owner
Summary: dos filetimes: utime() Function call failes when primary group is not owner
Status: RESOLVED WORKSFORME
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: winbind (show other bugs)
Version: 3.0.7
Hardware: x86 Linux
: P3 major
Target Milestone: none
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-04 09:50 UTC by Dirk Laurenz
Modified: 2005-10-04 04:32 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Laurenz 2004-11-04 09:50:12 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
Comment 1 Dirk Laurenz 2004-11-10 01:54:14 UTC
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.
Comment 2 Dirk Laurenz 2004-11-10 03:48:06 UTC
Here's Information about the platform, samba is running on:
- SuSE SLES 9
- kernel-bigsmp-2.6.5-7.108
- glibc-locale-2.3.3-98.31
- glibc-i18ndata-2.3.3-98.31
- glibc-2.3.3-98.31
- samba3-client-3.0.7-13
- samba3-doc-3.0.7-13
- samba3-winbind-3.0.7-13
- libsmbclient-3.0.7-13
- samba3-cifsmount-3.0.7-13
- samba3-pdb-3.0.7-13
- samba3-python-3.0.7-13
- samba3-3.0.7-13
- samba3-utils-3.0.7-13
(from ftp.sernet.de)

Is any additional Information needed?
Comment 3 Dirk Laurenz 2004-11-10 06:54:37 UTC
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.
Comment 4 Dirk Laurenz 2005-10-04 02:34:13 UTC
Has been fixed in later releases
Comment 5 Gerald (Jerry) Carter (dead mail address) 2005-10-04 04:32:32 UTC
Thanks for the update.