song-buaa / opendedup

Automatically exported from code.google.com/p/opendedup
0 stars 0 forks source link

acl problem #55

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. install Debian 6.0.6 (amd64) (on OpenVZ) + SDFS 1.1.8 (sdfs-1.1.8_amd64.deb)
2. mkfs.sdfs --volume-name=sdfs_vol1 --volume-capacity 16GB
3. mkdir -p /mnt/sdfs && cd /mnt/sdfs
4. mount.sdfs -v sdfs_vol1 -m /mnt/sdfs -o 
default_permissions,direct_io,big_writes,allow_other,fsname=sdfs1
5. touch test1
6. chown root:root test1
7. chmod 640 test1
6. setfacl -m u:some_user:rw test1
7. su - some_user
8. echo "test" >>/mnt/sdfs/test1

-- What is the expected output? What do you see instead?
I see an error:
-su: /mnt/sdfs/test1: Permission denied

-- What version of the product are you using? On what operating system?
Debian 6.0.6 (amd64) running on OpenVZ, SDFS 1.1.8 

Original issue reported on code.google.com by soalhn on 11 Oct 2012 at 11:24

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
$ getfacl /mnt/sdfs/test1
getfacl: Removing leading '/' from absolute path names
# file: mnt/sdfs/test1
# owner: root
# group: root
user::rw-
user:831:rw-
group::r--
mask::rw-
other::r--

$ id some_user
uid=1000(some_user) gid=1000(some_user) 
groups=1000(some_user),27(sudo),50(staff),100(users)

Original comment by soalhn on 11 Oct 2012 at 11:42