7.6 Trustee Rights Utility for Linux

The Trustee Rights Utility for Linux allows you to specify trustee rights for directories and files in NSS volumes on OES Linux. This utility does not provide support for Trustees on Linux file systems. It is also not meant to be used to set trustees for NSS volumes on OES NetWare. The trustee information is saved in the file and directory metadata in the NSS volume and works seamlessly with OES NetWare if the volume is moved to OES NetWare.

7.6.1 Purpose

Use this utility at a workstation to

  • View or modify user or group rights for files
  • View or modify user or group rights for directories and volumes

7.6.2 Syntax

rights [OPTIONS]
rights [TOPTIONS] trustee USERNAME
rights [DOPTIONS] delete USERNAME
rights [IOPTIONS] irf
rights [EROPTIONS] effective USERNAME
rights [SOPTIONS] show

7.6.3 Actions

The first argument indicates the action to be taken.

trustee

Add or modify a trustee on a file or directory.

delete

Remove a trustee from a file or directory.

irf

Set the inherited rights filter on a directory.

effective

Display a user’s effective rights.

show

Display the trustees and inherited rights filter.

7.6.4 Options

OPTIONS

-v, --version 

Display the program version information.

-h, --help 

Display the help screen.

TOPTIONS

-r, --rights=MASK

Specify the rights to be given to this trustee. For information, see MASK.

If the No Rights (n) option is assigned, the trustee is removed.

If rights are not specified, the default assignment is Read and File Scan rights.

-f, --file=filename

Specify the name of file or directory to assign trustees to. Filename is the path for the file or directory. For example:

-f /users/username/userfile.sxi
--file=/designs/topsecret

If a file or directory is not specified, the current directory is used.

DOPTIONS

-f, --file=filename

The name of file or directory to delete trustees from. Filename is the path for the file or directory.

If a file or directory is not specified, the current directory is used.

IOPTIONS

-r, --rights=MASK

Specify the rights to be passed through the filter. For information, see MASK.

If rights are not specified, the default assignment is All Rights.

-f, --file=filename

Specify the name of the directory where the filter is to be applied. Filename is the path for the directory.

If a directory is not specified, the current directory is used.

EROPTIONS

-f, --file=filename

The name of file or directory where effective right are to be calculated. Filename is the path for the file or directory.

If a file or directory is not specified, the current directory is used.

SOPTIONS

-f, --file=filename

Specify the name of the file or directory to display a list of its trustees.

If a file or directory is not specified, the current directory is used.

USERNAME

The username is the fully distinguished name of an eDirectory object, including the tree name. For example: username.context.treename or joe.engineer.acme_tree.

MASK

The mask is a string of characters, with each character representing a type of rights. The following table lists the rights, the letter to use for each right, and what the right is used for.

Right

Use to

s (Supervisor)

Grant all rights to the file or directory.

r (Read)

Open and read files in the directory.

w (Write)

Open and write to files in the directory.

c (Create)

Create files and subdirectories.

e (Erase)

Erase files and directories.

m (Modify)

Rename files and directories, and change file attributes.

f (File Scan)

View and search on file and directory names in the file system structure.

a (Access Control)

Add and remove trustees and change trustee rights to files and directories.

n (No Rights)

Remove all rights.

all (All Rights)

Add All rights except Supervisor.

7.6.5 Example

rights -f /designs/topsecret -r rwfc trustee joe.engineer.acme_tree

This command assigns Read, Write, File Scan, and Create rights to the /designs/topsecret directory for user joe in the engineer context of the acme_tree eDirectory tree.