University Computing Systems


AFS Permissions


    AFS Permissions

    How to Set AFS Permissions

    AFS system:anyuser Permissions

    Resetting Permissions

 


Seven rights are predefined by AFS: four control access to a directory and three to all of the files in a directory.

The four directory rights are:

The three rights that affect all of the files in a directory are:


Notes

Files

Directories


How to Set AFS Permissions


A user can set any AFS permissions: The syntax for setting AFS permissions is:
fs setacl <directory> <username> <perms>
To set permissions in the working directory:
fs sa . <username> <perms>
sa is shorthand for setacl
username is any user with an account in the AFS system, plus special users, which includes system:anyuser.

The AFS permissions that can be set are:

The following are shortcuts: Examples:
fs sa ~/public_html abc89 rlid
gives user abc89 rlid rights in your public_html directory
fs sa . system:anyuser rl
gives the user system:anyuser rl rights in the current directory
fs sa ~ system:anyuser rl
gives the user system:anyuser rl rights in your login directory
fs sa ~/public_html abc1234 none
removes all rights for user "abc1234" in your public_html directory
To see what permissions are in effect in a directory:
fs listacl <path_to_directory>
or
fs la <path_to_directory>
Examples:
List the permissions in the current directory
fs la
List the permissions in your login directory
fs la ~
List the permissions in your public_html directory
fs la ~/public_html

AFS system:anyuser Permissions


The AFS permission in a directory
system:anyuser rl
permits any user who is logged in to an NJIT AFS'd machine to look at (read) any file in that directory (provided that user has at least l permussion up to the directory in question.

To see the AFS permissions on a directory:

fs la <dir_name>
To keep everyone from reading files in a directory, do this in a directory you want to be private: From anywhere in your login directory tree, including your login directory (~) ):
mkdir priv.stuff
(priv.stuff can be any name)
fs sa priv.stuff system:anyuser none
When the above is done, no file in priv.stuff can be read by anyone but the owner of priv.stuff -- i.e., you
[ If you have given other users access to directories in your account, make sure that they do not have rights in priv.stuff (fs la priv.stuff will show who has rights there ). Remove rights for other users by fs sa priv.stuff <other_user> none ]

Resetting Permissions


To reset AFS permissions in an endire directory tree, the following program can be used :
/usr/ucs/bin/set.afs.perms.recur