brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: a plus sign after the permissions in ls -l means an ACL adds more rules

Permissions
~/tips/tip-permissions-ls-plus-sign-means-acl

ls -l report.odt # -rw-r-----+

Shows how to spot extra access rules that ls -l hides behind a plus sign.

A file looks closed in ls -l, and another user can still write to it. The small plus sign explains why.

ls -l report.odt     # -rw-r-----+
getfacl report.odt

The plus sign marks an access control list. getfacl prints the extra entries, including the mask, which limits the effective rights of all named users and groups. With an ACL in place the group column of ls -l shows that mask and not the owning group’s permissions, so do not trust it on its own.

Further reading: acl manual page

More Permissions tips sudo su -s /bin/bash www-data sudo setfacl -R -d -m g:media:rwX /srv/media sudo cp -r /srv/site /srv/site.r ls -ln /srv/data newgrp media All Permissions tips (30) All topics

Link