5.4 Configuring the [Public] Trustee Access Rights on NSS Volumes for Daemons Running as the Nobody User

Access rights to files and folders on NSS volumes are controlled through the NSS file system trustees and rights set for eDirectory users, not with Linux POSIX rights. The only exception to this is the root user, which never has an eDirectory counterpart in order to allow the server to be administered even if eDirectory is not available.

NSS maps the Linux nobody user ID to the eDirectory [Public] trustee. When you use daemons that run as the nobody user to access Linux file system volumes, you typically set the Linux POSIX rights to 777 (rwx rwx rwx) in order to grant access to the nobody user. However, this does not work on the NSS file system. NSS expects the trustee rights for the [Public] trustee to be set up on the target directory and be granted at least the Read and File Scan access rights. This allows NSS to set up the proper NSS and eDirectory authorizations for the nobody user, and to provide the nobody user ID when interacting with native Linux daemons. Otherwise, the daemon cannot store files on the NSS volume.

The [Public] trustee is not an eDirectory object. It is a specialized trustee that represents any network user, logged in or not, for rights assignment purposes. By making [Public] a trustee of a directory or file, you effectively grant all objects in eDirectory the same trustee rights.

IMPORTANT:For security reasons, you should not provide the file system Supervisor right to the [Public] trustee.

You can use the Files and Folders plug-in in iManager, or the NSS rights utility to configure trustees and trustee rights for volumes, directories, or files. For information about setting trustees in iManager, see Section 6.5, Using the Files and Folders Plug-In for iManager to Manage Trustees, Trustee Rights, and Inherited Rights. For information about the rights utility, see Section 6.9, Using the Rights Utility to Set Trustee Rights for the NSS File System. An example of using each method is provided below.

Example: [Public] Trustee Setup for the RSync Daemon

The rsync daemon runs as the nobody user. In the following example, you want the daemon to access files in the /media/nss/VOL1/rsync directory on an NSS volume named VOL1. You must assign the eDirectory [Public] trustee as a file system trustee of the directory, and give it the Read and File Scan access rights on that directory.

To use the Files and Folders Plug-In to iManager to set up the [Public] trustee as a file system trustee:

  1. In iManager, click Files and Folders, then click Properties to open the Properties page.

  2. On the Properties page, browse and select the VOL1/rsync directory, then click OK.

  3. On the folder’s Properties page, click the Rights tab to view the trustees, trustee rights, and inherited rights filter for the selected directory.

  4. Add the eDirectory [Public] trustee as a file system trustee of the directory.

    1. Scroll down to the Add Trustees field.

    2. Type [Public] enclosed in square brackets with a dot before and after, then click the Add (+) icon.

      For example:


      The name appears in the Trustees list, but it is not actually added until you click Apply or OK. The Read and File Scan trustee rights are assigned by default.

    3. On the Properties page, click Apply to save the changes.

  5. (Optional) Add other trustee rights for the .[Public]. trustee by clicking the check box below the right, then click Apply.

To use the Rights Utility to set up the [Public] trustee as a file system trustee:

  1. Log in to the server as the root user, then open a terminal console.

  2. At the console prompt, enter the following commands

    cd /media/nss/VOL1/rsync
    rights trustee "[Public]" -r rf

    Modify the list of rights in this command to add other rights for the daemon if they are needed. For information about the options, see Section 6.9, Using the Rights Utility to Set Trustee Rights for the NSS File System.

  3. View the rights to verify that the settings are as expected by entering

    rights show 

    The displayed response should be similar to the following:

    Trustees and Inherited Rights Filter
    File: /media/nss/VOL1/rsync
      (1) [Public]
        [read, scan]
    Inherited Rights Filter:
        [supervisor, read, write, create, erase, access control, scan, modify]