Skip to content
The online chat service is currently unavailable.
How to grant access to an AFS directory

Solution ID: 819
Problem Summary: How to grant access to an AFS directory
Solution Summary: Use the fs sa command to grant access to AFS directory
Distribution: All
Last Modified: 08/14/2012 8:23am
  This Solution Solved My Problem
Full Solution:

How do you allow someone access to a file in your account so
they can copy it?


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
files in the directory named "directory_name", which is assumed to be
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:


West Dunn Bldg.

101 West Dunn Building
On the corner of Dan Allen Dr. and Thurman Dr.
Raleigh, NC 27695
Click for directions!

Contact Information

Phone: (919) 515.HELP (4357)
Toll Free: (877) 501.6278
Fax: (919) 513.0877
(Password Reset Cover Sheet)



Mon-Fri: 8am-5pm
Walk-In: Support Hours

The NC State Help Desk is closed during official University Holidays

feedback link