Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 3 product line. The current stable release is 3.9. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 169865

Summary: utime fails when group member moves file to the recycle bin
Product: Red Hat Enterprise Linux 3 Reporter: Bastien Nocera <bnocera>
Component: sambaAssignee: Jay Fenlason <fenlason>
Status: CLOSED ERRATA QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.0CC: jfeeney, tao
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: RHEL3U7NAK
Fixed In Version: RHBA-2006-0364 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-07-20 14:49:06 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 181405    
Attachments:
Description Flags
utime.c none

Description Bastien Nocera 2005-10-04 15:49:17 UTC
samba-3.0.9-1.3E.5

1. Create 2 users (sambaone and sambatwo)
2. Add them as members of a single group (testrecycle)
3. Make a share available one a client, with the vfs recycle bin as explained in:
http://www.redhat.com/advice/tips/sambatrash.html
4. As sambaone, create a file (messages) on the share
5. As sambatwo, rm the file just created (messages)

The touch (which uses utime) will fail:
        recycle:touch = Yes

[2005/10/03 13:07:37, 0] modules/vfs_recycle.c:recycle_do_touch(316)
  recycle: touching .recycle/sambatwo/./messages failed, reason = Operation not
permitted

The .recycle directory looks like:
drwx--S---    2 sambatwo testrecycle     4096 Oct  3 14:13 sambatwo
drwx--S---    2 sambaone testrecycle     4096 Oct  3 10:16 sambaone
drwxrwsr-x    3 root     testrecycle     4096 Oct  3 13:53 ..
drwxrwsr-x    4 root     testrecycle     4096 Sep 29 14:20 .
The files in sambatwo look like:
drwx--S---    2 sambatwo testrecycle     4096 Oct  3 14:13 .
drwxrwsr-x    4 root     testrecycle     4096 Sep 29 14:20 ..
-rw-rw----    1 sambaone testrecycle        0 Oct  3 14:06 messages

Running utime() (with the attached test case) on the messages file fails as
well, because of the permissions on the directory.

Comment 1 Bastien Nocera 2005-10-04 15:49:19 UTC
Created attachment 119609 [details]
utime.c

Comment 5 Bob Johnson 2006-04-11 16:16:30 UTC
This issue is on Red Hat Engineering's list of planned work items 
for the upcoming Red Hat Enterprise Linux 3.8 release.  Engineering 
resources have been assigned and barring unforeseen circumstances, Red 
Hat intends to include this item in the 3.8 release.

Comment 9 Red Hat Bugzilla 2006-07-20 14:49:06 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2006-0364.html