I have 2 users, GM and FTP. I want GM to have read access, and FTP to have all access. How can I do this?

closed as unclear what you're asking by mdpc, Anthon, G-Man, Eric Renouf, sam Aug 28 '16 at 4:28

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.


You need to first understand that permissions are file-based.

If you want file /var/example.txt readable by GM and writable by FTP, you could set its owner to FTP (chown FTP /var/example.txt) and set its permissions to 644 (chmod 644 /var/example.txt or chmod u+rw,o+r /var/example.txt). This will make the file readable by everyone but only writable by FTP.

If you only want GM to have read access, you will need to put both users in the same group and set the permission to 640.

For more details on file permissions, refer to the chmod man page.


If you are familiar with *nix file permissions, use file's acl if your fs supports it. eg. setfacl -d -m u:GM:rx /directory setfacl -d -m u:FTP:rwx /directory

Use tune2fs -l /dev/sdX | grep acl to check your fs.

Not the answer you're looking for? Browse other questions tagged or ask your own question.