Ubuntu – Giving a single user write permissions

permissionsusers

I want to grant a single user write permissions to a directory owned by root over command line. With chmod, it seems that I can only change the permissions for owner, group and other, not for a specific user.

Best Answer

If filesystem is mounted with the acl option (default in ext4 in any modern Ubuntu - if not, add it to /etc/fstab), you can use setfacl:

setfacl -m u:USERNAME:r FILENAME

would give user USERNAME read access to FILENAME.

Related Question