Access Keys:
Skip to content (Access Key - 0)

How can I easily share files with other users on Athena?

If you want a few people to have access to some of your directories (rather than nobody or everybody), there are a few ways to do it.

Sharing with one or two other individuals

If there are only one or two users that you want to have access to your directories, the best way to do it is to give them access individually. You can do this by typing

joeuser@athena:~$ fs sa directory username read

  
Note: Be sure to fill in the correct information for directory and username.

where 'directory' is the directory you want to be sharable and 'username' is the username of the person you want to have access. This will let them list and read (as well as copy) any files in your
directory. If you'd like them to be able to insert, change, and delete files as well, then type:

joeuser@athena:~$ fs sa directory username write

  
Note: Be sure to fill in the correct information for directory and username.

Note that "write" permissions also implies "read", so you don't need to set both explicitly.

When you no longer want your friends to have access to that directory, you can type:

joeuser@athena:~$ fs sa directory username none

  
Note: Be sure to fill in the correct information for directory and username.

For more information about the "fs" command, please see How do I change permissions in AFS?

There can be no more than 16 entries on the access control list for a given directory. This includes entries like "system:anyuser l" and "system:expunge ld". Note that this limit is the number of entries, not the number of users. If you want to give access to more than a few users, it's best to create a group and use that. See the instructions below for doing that.

Sharing with a group

If there are more than a few users you want to share a directory with, then the best way to do so would be to use a group created by Moira. If you do not have an existing group which you want to use for this purpose, you will need to create one. For more information, see How can I create a group? and How do I administer an Athena (Moira) list or group?.

Once your group is set up the way you want, you can then give the group permission to your directory by typing:

joeuser@athena:~$ fs sa directory system:group_name read

  
Note: Be sure to fill in the correct information for directory and group_name.

where 'group_name' is the name of the group that you want to share with. If you want the group to be able to insert, write, and delete from the directory as well, replace "read" with "write". As above, you can remove permissions by assigning the group permissions to "none".

You can check to see who has permission to your directory by typing

joeuser@athena:~$ fs la directory

  

For more information on fs, type 'fs help'. To get help with a specific fs command, type 'fs help commandname'.

IS&T Contributions

Documentation and information provided by IS&T staff members


Last Modified:

February 10, 2014

Get Help

Request help
from the Help Desk
Report a security incident
to the Security Team
Labels:
olc-afs olc-afs Delete
share share Delete
permissions permissions Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
Feedback
This product/service is:
Easy to use
Average
Difficult to use

This article is:
Helpful
Inaccurate
Obsolete
Adaptavist Theme Builder (4.2.3) Powered by Atlassian Confluence 3.5.13, the Enterprise Wiki