Skip to content

Instantly share code, notes, and snippets.

@cmaureir
Last active August 29, 2015 14:02
Show Gist options
  • Save cmaureir/d1358d21124f9f51b341 to your computer and use it in GitHub Desktop.
Save cmaureir/d1358d21124f9f51b341 to your computer and use it in GitHub Desktop.
Lustre ACL

Source: http://supercomputers.aei.mpg.de/user-guide-2/lustre-file-system-acls-quota/

How to give permissions to a certain directory inside your home:

  • Set the permissions of your home to 710
chmod 710 /home/youruser
  • Set the permissions to the externaluser to a directory inside your home (This can be rwx, rw, r-x, etc.)
lfs lsetfacl -m user:externaluser:rwx /home/youruser/path/to/directory

This will grant permission only on that directory, not recursively to the inner directories, if you want to do it recursively, use -Rm instead of -m.

If you want to remove the externaluser permissions

lfs lsetfacl -x externaluser /home/youruser/path/to/directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment