Supported by: Academic Computing Services
The Rensselaer Computing System (RCS) uses AFS (formerly called the Andrew File System), which acts like most UNIX file systems, except that it makes it easier to share files with others - both on campus and at other sites that use AFS.
You can share files with others, or keep others from using your files by grouping the files into directories and granting specific kinds of access to the directories. For example, you can set up a directory so that others can only read the files in it, or you can set up a directory so that others can read and edit the files in it.
The commands explained here will work on any RCS system, including remote access, at a UNIX prompt. If you are on a workstation, you will need to open a UNIX window.
Knowledge of some basic UNIX commands, such as cd and ls are useful in some cases.
Unlike standard UNIX file permissions, AFS uses Access Control Lists (ACLs) to control permissions on a directory and the files in that directory.
By using ACLs, you might also define an ACL that lets two people read and modify files in a directory, and lets a third person just read them. Since ACLs are defined for directories rather than files, the permissions specified by a directory's ACL affect all the files in that directory rather than affecting individual files.
To find out what permissions are currently set for a directory, issue the following command at a UNIX prompt:
fs la
For example:
fs la
Access list for /home/60/ramabz is
Normal rights:
system:anyuser l
ramabz rlidwka
The file permissions are:
To give someone permission to access a directory, use the following command syntax at a UNIX prompt:
fs setacl directory userid access-rights
where
For example, to give user ramabz read access to a directory, named math in your account you would issue the command:
fs setacl math ramabz rl
Please refer to Memo RPI.114, Sharing Files in RCS UNIX, for more information. There is also a man page called access (man access).
Your home directory contains two subdirectories, one named public and the other named private. You can simply put files in these directories to either share them or keep them private. Any file in your public directory can be read by anyone on campus or at related sites using AFS. No one can edit these files. Any file in your private directory can be viewed by you only.
You can use fs sa as a shortcut for fs setacl
There are also some shortcut commands you can use in place of specifying rlidwka. They are:
Go to the Help Desk Consulting homepage.
Return to the Accounts page.
Return to ACS home page.
Please send comments and suggestions to consult@rpi.edu