23.07.2014 Views

Lustre 1.6 Operations Manual

Lustre 1.6 Operations Manual

Lustre 1.6 Operations Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Lustre</strong> ACL support is a system-wide feature; either all clients enable ACLs or none<br />

do. Activating ACLs is controlled by MDS mount options acl / noacl<br />

(enable/disableACLs). Client-side mount options acl/noacl are ignored. You do<br />

not need to change the client configuration, and the “acl” string will not appear in<br />

the client /etc/mtab. The client acl mount option is no longer needed. If a client is<br />

mounted with that option, then this message appears in the MDS syslog:<br />

...MDS requires ACL support but client does not<br />

The message is harmless but indicates a configuration issue, which should be<br />

corrected.<br />

If ACLs are not enabled on the MDS, then any attempts to reference an ACL on a<br />

client return an Operation not supported error.<br />

26.1.3 Examples<br />

These examples are taken directly from the POSIX paper referenced above. ACLs on<br />

a <strong>Lustre</strong> filesystem work exactly like ACLs on any Linux filesystem. They are<br />

manipulated with the standard tools in the standard manner. Below, we create a<br />

directory and allow a specific user access.<br />

[root@client lustre]# umask 027<br />

[root@client lustre]# mkdir rain<br />

[root@client lustre]# ls -ld rain<br />

drwxr-x--- 2 root root 4096 Feb 20 06:50 rain<br />

[root@client lustre]# getfacl rain<br />

# file: rain<br />

# owner: root<br />

# group: root<br />

user::rwx<br />

group::r-x<br />

other::---<br />

[root@client lustre]# setfacl -m user:chirag:rwx rain<br />

[root@client lustre]# ls -ld rain<br />

drwxrwx---+ 2 root root 4096 Feb 20 06:50 rain<br />

[root@client lustre]# getfacl --omit-heade rain<br />

user::rwx<br />

user:chirag:rwx<br />

group::r-x<br />

mask::rwx<br />

other::---<br />

Chapter 26 <strong>Lustre</strong> Security 26-3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!