[Samba] Samba + acl,user_xattr

Dmitry Mordovin d.mordovin at dwide.com
Mon Dec 19 01:06:48 MST 2011


> At first, has your file system already enabled xattr?
> For example, are following commands successfull?
>
>   # touch test.txt
>   # setfattr -n user.test -v test test.txt
>   # setfattr -n security.test -v test2 test.txt
>   # getfattr -d test.txt
>   # getfattr -n security.test -d test.txt
>
> And your Samba (smbd) is xattr-ready?
> For example the following commands show HAVE_*XATTR line?
>
> # smbd -b | grep SETXATTR
>     HAVE_FSETXATTR
>     HAVE_LSETXATTR
>     HAVE_SETXATTR
>
> ---
> TAKAHASHI Motonobu<monyo at samba.gr.jp>
All commands successfull.

#mount
/dev/sda4 on /mnt/public type ext3 (rw,nosuid,nodev,acl,user_xattr)

#cd /mnt/public


#getfattr -d hello.txt
# file: hello.txt
user.test="test"

#getfattr -n security.test -d hello.txt
# file: hello.txt
security.test="test2"


#smbd -b|grep SETXATTR
    HAVE_FSETXATTR
    HAVE_LSETXATTR
    HAVE_SETXATTR

SAMBA ready, but don't change xattr. Very strange with my system.
Also, I joined TT 8414 where is strange with file access rights.

https://bugzilla.samba.org/show_bug.cgi?id=8414



More information about the samba mailing list