23.07.2014 Views

Lustre 1.6 Operations Manual

Lustre 1.6 Operations Manual

Lustre 1.6 Operations Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

26.2 Root Squash Functionality<br />

<strong>Lustre</strong> <strong>1.6</strong> introduces root squash functionality, a security feature which prevents<br />

users from mounting <strong>Lustre</strong>, running it as the root user, and deleting all files in the<br />

filesystem. The root squash feature works by re-mapping the user ID (UID) and<br />

group ID (GID) of the root user to a UID and GID specified by the <strong>Lustre</strong><br />

administrator via proc entries on the <strong>Lustre</strong> MDS. This functionality also enables the<br />

<strong>Lustre</strong> administrator to specify a client (or set of clients) for which the re-mapping<br />

does not apply.<br />

26.2.1 Root Squash Configuration Parameters<br />

Root squash functionality is maintained by two configuration parameters,<br />

root_squash and nosquash_lnets.<br />

■ The root_squash parameter specifies the UID and GID with which the root user<br />

accesses the <strong>Lustre</strong> filesystem.<br />

■ The nosquash_lnets parameter specifies a set of clients for which root squash does<br />

not apply. The LNET NID range syntax is used for this parameter. For example:<br />

nosquash_lnets=172.16.245.[0-255/2]@tcp<br />

In this example, root squash does not apply to all TCP clients with an even<br />

number as the last component of their IP address.<br />

26.2.2 Enabling, Disabling and Tuning Root Squash<br />

By default, the root squash UID and GID are set to 0 and 0, respectively, which<br />

means that no root squashing is performed. The nosquash NID is set to 0@, so<br />

root squashing is performed for all clients.<br />

The root squash UID and GID can be changed, on the fly, via the rootsquash proc<br />

directory entry on the MDS. For example:<br />

echo "500:500" > /proc/fs/lustre/mds/lustre-MDT0000/rootsquash<br />

The NID of a not-squashed client can be changed, on the fly, via the nosquash_nid<br />

proc directory entry on the MDS. For example:<br />

echo "192.168.83.129@tcp" > /proc/fs/lustre/mds/lustre-MDT0000/nosquash_nid<br />

26-4 <strong>Lustre</strong> <strong>1.6</strong> <strong>Operations</strong> <strong>Manual</strong> • September 2008

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

Saved successfully!

Ooh no, something went wrong!