Bug 2125 - read-only attribut cannot be set when samba runs on xfs
read-only attribut cannot be set when samba runs on xfs
Status: RESOLVED INVALID
Product: Samba 3.0
Classification: Unclassified
Component: File Services
3.0.8
x86 Linux
: P3 normal
: none
Assigned To: Samba Bugzilla Account
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2004-12-06 01:26 UTC by Clemens Schwaighofer
Modified: 2006-05-12 04:56 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 Clemens Schwaighofer 2004-12-06 01:26:19 UTC
I have four boxes.
- Debian/testing on XFS
- Debian/unstable on ext3
- Gentoo/stable on XFS
- Redhat 9.0 with samba 3.0.7 on ext3

I access to this box from
- Windows 2000 SP4 (ja)
- Windows XP Pro SP 2 (en)
- Windows XP Pro SP 1 (en)

I can set the read-only flag only on the samba boxes with ext3, I can't do that
when the samba runs on an xfs box. then I get an "Access denied" error.

But, when I set the file to u-w, then windows sees it (on all boxes), but again,
only the samba on ext3 can change the attribut back again.

I have no set dos attributes turned on, or ea attributes, etc. xfs is mounted
with quota and so is ext3.
Comment 1 Gerald (Jerry) Carter 2005-02-08 08:03:34 UTC
this would have to be an xfs bug.  we don't distinguish 
between file systems.
Comment 2 Yann Forget 2006-05-12 04:30:35 UTC
It works on XFS with

map archive = no
map system = no
map hidden = no
store dos attributes = yes

# setfattr -n user.DOSATTRIB -v "0x20" test
# getfattr -d -e hex test
file: test
user.DOSATTRIB=0x20

# ls -l test
-rw-rw-r--  1 root group 0 2006-05-10 18:00 test

# smbclient //FILESERVER/test -U test%test
> ls
test                                        0  Wed May 10 18:00:30 2006
> setmode test +a
> ls
test                               A        0  Wed May 10 18:00:30 2006
Comment 3 Yann Forget 2006-05-12 04:56:33 UTC
With "0x20", the ARCHIVE attribut is at ON by default.

With "0x307830", the ARCHIVE attribut is at OFF by default.