Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 3708  / 2 Years ago, sat, january 29, 2022, 7:20:20

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.


More From » permissions

 Answers
2

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.


[#43361] Sunday, January 30, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
cretanol

Total Points: 320
Total Questions: 99
Total Answers: 115

Location: Australia
Member since Sat, May 27, 2023
1 Year ago
;