vendredi 28 novembre 2014

Stuck on ACL's Debian Wheezy


I cannot enter a directory after creation in a folder with an ACL: I am attempting to limit rwx access to a folder for just a single group and no one else. I would like to be able to add new users to a group and have them gain access to a directory.


This is what I have done so far



  1. mkdir /mnt/files

  2. cp /media/usb0/backup/* /mnt/files

  3. chgrp filers /mnt/files

  4. chmod -R g+s /mnt/files

  5. setfacl -b /mnt/files # to remove user and other

  6. setfacl -R -d -m g:filers:rwx /mnt/files


  7. getfacl /mnt/files



    # file: mnt/files/

    # owner: root

    # group: filers

    user::---

    group::rwx

    other::---

    default:user::---

    default:group::rwx

    default:group:filers:rwx

    default:mask::rwx

    default:other::---





So far everything looks good . . .



  1. cd /mnt/files

  2. mkdir test

  3. ls -l



d---rws---+ 2 jimmy filers 4096 Nov 28 14:32 test




  1. cd test

    -bash: cd: test/: Permission denied





Any reason I can't enter the folder I just created?

11) gefacl ./test


# file: test

# owner: jimmy

# group: filers

# flags: -s-

user::---

group::rwx

group:filers:rwx

mask::rwx

other::---

default:user::---

default:group::rwx

default:group:filers:rwx

default:mask::rwx

default:other::---



Aucun commentaire:

Enregistrer un commentaire