This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
linux:acls [2016/02/09 15:41] – [Interaction between ACLs and traditional UNIX permissions] jansen | linux:acls [2022/04/13 07:08] (current) – [Permissions and groups] jansen | ||
---|---|---|---|
Line 2: | Line 2: | ||
===== Permissions and groups ===== | ===== Permissions and groups ===== | ||
- | Normal file permissions on Linux (and UNIX) consist of 3 categories: the file user (owner), the group the file belongs to, and all others. For each of these categories, the owner can set a combination of read (r), write(w) and execute (x) permissions. | + | Normal file permissions on Linux (and UNIX) consist of 3 categories: the file user (owner), the group the file belongs to, and all others. For each of these categories, the owner can set a combination of read ( r), write(w) and execute (x) permissions. |
[Additionally, | [Additionally, | ||
Line 51: | Line 51: | ||
ACLs on remote disks (nfs) | ACLs on remote disks (nfs) | ||
- | The description above is for ACLs on local disks. Luckily, there is ACl support in the network file system too. For nfs3 (currently only still in use on our last RedHat 5 servers), ACls can be set and read as on local disks. Nfs4 (default on RHEL6 & 7 and Fedora > 14) comes with its own ACL implementation, | + | ===== ACLs on remote disks ===== |
+ | |||
+ | The description above is for ACLs on local disks. Luckily, there is ACL support in the network file system too. Nfs4 (default on RHEL6 & 7 and Fedora > 14) comes with its own ACL implementation, | ||
To read ACL info on a nfs4 disk, use nfs4_getfacl, | To read ACL info on a nfs4 disk, use nfs4_getfacl, | ||
Line 71: | Line 73: | ||
Here is an example using nfs4_setfacl: | Here is an example using nfs4_setfacl: | ||
nfs4_setfacl -a ' | nfs4_setfacl -a ' | ||
- | This will give the user ' | + | This will give the user ' |
+ | |||
+ | ===== New: nfs4-acl-editor ===== | ||
+ | |||
+ | Luckily, there is now a working graphical user interface for the NFS4 ACLs, called '' | ||
+ | |||
+ | ===== Copying NFS4 ACls ===== | ||
+ | If you have a working ACl setup on one directory, and you want to duplicate that on another, use a command like this: | ||
+ | nfs4_getfacl / | ||
+ | |||
+ | ====== Devices without ACL support ====== | ||
+ | Unfortunately, | ||
+ | * / | ||
+ | * / |