Skip to main content Skip to navigation

Creating AFS Groups

To set up a directory that others can access, you need to use the AFS command pts .

For clarity, instead of writing < your-uniqname >, I will just use my uniqname, nichols; replace nichols with your uniqname.

To create your own group (a group MUST begin " uniqname: "), then do the following:

 
> pts creategroup nichols:650
group nichols:650 has id -12006
Then add users, by their uniqnames, to the group.
 
> pts adduser -group nichols:650 -user jg11 herbie nichols ck3u zarikian
group nichols:650 has id -12006
I'll check that I really added them...
 
> pts membership nichols:650
Members of nichols:650 (id: -12006) are:
  jg11
  nichols
  ck3u
  herbie
  zarikian
OK, now that I have a group, I can give the group permissions to my AFS directory using the fs la command--la is short for list access control list. The pts and fs commands only apply to directories under /afs.
 
> fs la /afs/sph.umich.edu/user/n/nichols/650class
Access list for /afs/sph.umich.edu/user/n/nichols/650class is
Normal rights:
  system:administrators rlidwka
  nichols rlidwka
Now I will give write access to my group members like so... (sa =set access control list).
 
> fs sa /afs/sph.umich.edu/user/n/nichols/650class nichols:650 write
Now when I look at the access list for nichols/stats...
 
> /usr/local/bin/fs la /afs/andrew/usr/nichols/stats
Access list for /afs/andrew/usr/nichols/stats is
Normal rights:
  system:administrators rlidwka
  nichols:650 rlidwk
  nichols rlidwka
That's it!

PS: If you get confused, the command

 
pts membership nichols
will tell you what groups you belong to. This gives some different info
 
pts examine nichols

Last modified: Mon Jul 5 12:36:18 EDT 2004
Tom Nichols (nichols@umich.edu)
UM Biostatistics