Quick Intro to RCS and AFS File Permissions - PowerPoint PPT Presentation

1 / 16
About This Presentation
Title:

Quick Intro to RCS and AFS File Permissions

Description:

(pronounced 'fusy')* fs sa . system:anyuser all. fs sa tmp joe rl. fs sa foo sam none ... (pronounced 'puts fillybog')* pts removeuser username groupname. example: ... – PowerPoint PPT presentation

Number of Views:31
Avg rating:3.0/5.0
Slides: 17
Provided by: DaveHol
Category:

less

Transcript and Presenter's Notes

Title: Quick Intro to RCS and AFS File Permissions


1
Quick Intro toRCS and AFS File Permissions
  • Ref man pages for fs, pts,
  • CIS Memo RPI.114Sharing Files in RCS Unix

2
Access Control List - ACL
  • Each directory in an AFS file system has an
    access control list that determines who can
    access the files in the directory.
  • Within a directory you can use the traditional
    Unix permissions to further restrict access.

3
Types of Permissions
  • r read - users can view contents of file
  • l list - users can names of files in a directory.
  • i insert - users can add files to directory
  • d delete - users can delete files.
  • w write - users can change contents of files.
  • k lock - users can lock files (flock()).
  • a administer - users can change permissions.

4
The fs command
  • The fs command can be used to display and change
    an ACL.
  • fs does lots of other things also!
  • try fs help for details

5
Displaying file permissions
  • fs listacl dirname(s)
  • fs la dirname(s)
  • Shows the access control list for the named
    directories.

6
fs la (pronounced "fuse lay")
  • gt fs la public
  • Access list for public is
  • Normal rights
  • systembackup l
  • systemanyuser rl
  • hollid2 rlidwka
  • gt

Not really (I made that up!)
7
Setting Permissions
  • fs setacl -d dirname -acl aclentries
  • fs sa -d dirname -acl aclentries
  • fs sa dirname username permissions
  • Changes the ACL for the named directory.

8
aclentries
  • Each acl entry is a username (or group) followed
    by any combination of the seven access privileges
    (rlidwka)
  • Examples
  • hollid2 rlidwka
  • systemanyuser rl
  • hollid none

9
fs sa (pronounced "fusy")
  • fs sa . systemanyuser all
  • fs sa tmp joe rl
  • fs sa foo sam none

10
Negative Permissions
  • fs sa dirname -negative aclentry
  • example
  • fs sa . -negative faustn2 rl

11
negativity
  • gt fs sa . systemanyuser all
  • gt fs sa . -negative faustn2 all
  • gt fs la .
  • Normal rights
  • systembackup l
  • systemanyuser rlidwka
  • hollid2 rlidwka
  • Negative rights
  • faustn2 rlidwka

12
Groups
  • You can create your own groups of users to
    simplify setting up permissions.
  • These are not the traditional "Unix groups",
    these are just for AFS file permissions!
  • Each group name you create starts with the prefix
    "yourid"

13
Creating a group
  • pts creategroup youridgroupname
  • example
  • pts creategroup hollid2students

14
Adding a user to a group
  • pts adduser username groupname
  • examples
  • pts adduser god hollid2closefriends

15
pts removeuser (pronounced "puts fillybog")
  • pts removeuser username groupname
  • example
  • pts removeuser joe hollid2research

16
Listing a group
  • pts membership groupname
  • example
  • gt pts membership hollid2blah
  • Members of hollid2blah (id -3128) are
  • ingalr
  • faustn2
Write a Comment
User Comments (0)
About PowerShow.com