Problem:
How do you allow someone access to a file in your account so
they can copy it?
Solution:
With the AFS file system (what we use here at NC State), you give
permissions to directories, not specific files. The commands to grant
someone access to one of your directories is:
cd (change to your home directory)
fs sa . someones_login l (give someone rights to see the directories
in your home file space)
fs sa directory_name someones_login rl (give someone rights to see
the directories and file in
the named directory)
This gives the person whose login is "someones_login" read access to
the
files in the directory named "directory_name", which is assumed to be
a
subdirectory in your home file space.
The permissions are as followd:
r = read (reading file contents)
l = look (listing files in the directory)
i = insert (creating new files in a directory)
d = delete (removing files from directories)
k = flock (UNIX flock() file locking)
w = write (writing to/in existing files)
a = admin (administrative privileges)
To view the list of login names with access to a directory, use the command:
fs la directory_name (use "." for current directory)
Additional information about AFS permissions can be found in the
Eos Guide at:
http://www.eos.ncsu.edu/guide/permissions.html
|