Use the NCPCON utility to view, add, or remove file and directory rights for NSS volumes and NCP volumes on Linux.
To view file or directory rights, enter ncpcon at the Linux server console and then enter the following:
rights view path
Replace path with the directory path to the file or directory that you want to view trustee rights for. This lets you view the trustee assignments that have been specifically made for that file or directory. Effective rights are not displayed by using this command.
To add file or directory rights, enter ncpcon at the Linux server console and then enter the following:
rights add path fdn mask
Replace path with the directory path to the file or directory that you want to add trustee rights to.
Replace fdn with the fully distinguished name of the user or object that you want to grant rights to.
Replace mask with the rights that you want to grant to the user or object.
For example, if you wanted to grant Read and File Scan rights to the users:bob directory for user Bob, and Bob’s context is bob.acme, you would enter the following after starting the NCPCON utility:
rights add users:bob bob.acme RF
To remove file or directory rights, enter ncpcon at the Linux server console and then enter the following:
rights rem path fdn
Replace path with the directory path to the file or directory that you want to remove trustee rights from.
Replace fdn with the fully distinguished name of the user or object that you want to remove rights from.
For example, if you wanted to remove trustee rights to the users:bob directory from user Bob, and Bob’s context is bob.acme, you would enter the following after starting the NCPCON utility:
rights rem users:bob bob.acme