Personal computing discussed
Moderators: renee, SecretSquirrel, notfred
cheesyking wrote:In addition to the traditional ownership and permissions there's also the option of ACLs:
https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Storage_Administration_Guide/ch-acls.html
Those redhat docs look pretty good.
Kurotetsu wrote:Probably a silly question, but I imagine ACLs can be used on any distro and not just Red Hat/CentOS correct?
Kurotetsu wrote:Also, what are the practical differences between using the standard permissions mechanism and ACLs?
Kurotetsu wrote:Probably a silly question, but I imagine ACLs can be used on any distro and not just Red Hat/CentOS correct?
Flatland_Spider wrote:Kurotetsu wrote:Probably a silly question, but I imagine ACLs can be used on any distro and not just Red Hat/CentOS correct?
The acl mount option will need to be enabled in fstab for Posix ACL permissions to work, and most of the time you're not going to run into them.
The switch is acl for ext filesystems per the mount manpage.
fstab entry without acl: UUID=466a050a-8bd5-4175-afab-082b3c0ff1ff /storage/storage5 ext4 defaults 1 2
fstab entry with acl: UUID=466a050a-8bd5-4175-afab-082b3c0ff1ff /storage/storage5 ext4 defaults,acl 1 2
LABEL=/work /work ext3 acl 1 2
Kurotetsu wrote:It seems ACLs are better and in ways easier to learn than the chmod approach, so I'll likely just use that for my server (though I'll still learn chmod for the sake of it).
Flatland_Spider wrote:Using ACLs to control permissions is an odd way to setup a webhost. Most webhosts are setup one of two ways. The first way is where the Apache group is set as the group on the folders/files, and the second way is to add the Apache user to group of the website owner.