![]() |
Computer Systems Lab CS1000 |
![]() Wiscinfo |
![]() CS Home |
![]() CSL |
![]() CS1000 |
![]() Feedback |
Through AFS you can share files with anyone you choose, whether it be everyone, or a select group of users. You have hopefully already noticed the peculiar properties of the directories public and private. Any file or directory you store in public is readable by anyone and nothing in private is readable by anyone but yourself. This achieved through access control lists ACL's for each directory. Each ACL controls permissions for all of the files in that directory. Subsequent directories created in that directory will have the same permissions when they are created. You can view the ACL with the command
vega1% fs listacl public
Access list for public is Normal rights: system:administrators rlidwka system:authuser rlk system:anyuser rl bucky rlidwka
Each of characters on the right are abbreviations for the following permissions
AFS permissions | ||
---|---|---|
r | read | allow user to look at files in the directory |
l | lookup | a user with this right may list a directory, look at an ACL or access subdirectories |
i | insert | allows user to add files to a directory |
d | delete | allows files to be used by user |
k | lock | allows advisory file locking |
a | administrator | allows user to change ACL. We do not advise giving other users the adminstrator right or removing your own administraotr right |
shorthand notations for combinations of rights | ||
all | = rlidwka | |
write | = rlidwk | |
read | = rl | |
none | = removes entry |
To add an entry to an ACL, use the setacl command,
vega1% fs setacl <directory> <user> <permissions>
vega1% fs setacl project bucky write
Help on AFS commands is available with the following commands:
vega1% fs help
vega1% fs help <command>
vega1% fs command-help
A group of users can be created with the pts commands. A group can be substituted for a user with any of the fs commands
Protection Group Commands | |
---|---|
vega1% pts creategroup user:group | create a user-owned group |
vega1% pts adduser user group | add a user to the group |
vega1% pts removeuser user group | remove a user from a group |
vega1% pts delete group | delete a group |
vega1% pts rename oldname newname | change a group's name |
vega1% pts help | print list of pts commands |
vega1% pts command -help | print usage information for a command |