home *** CD-ROM | disk | FTP | other *** search
- [NeilB is in the process of redesigning this, but until them this is the
- way things work.
- ]
-
- A permission under UDB is defined as a class which includes four attributes
- amongst its descendants: the account requesting the permission and three
- attributes associated with the permission.
-
- This is best illustrated with an example.
-
- Let us suppose we wish to give some account telnet permission to a lab of
- machines. If the permission exists already it is sufficient to add the account
- to that class. It may be necessary to make the class representing the
- permission. This we will do.
-
- Let us suppose the account ``fred'' desires 24 hour telnet access to the red
- lab. We will use a permission called ``red-inet-login'' to represent this.
-
- Step 1: Make the class:
- % mkacc classification
- Login Name: red-inet-login
- Last Name : Login
- First Name: Internet
- Login Name: ^D
- %
-
- Step 2: File it away as a permission:
- % lim classes+permissions[forever] classes-classification \
- > -- red-inet-login
- %
-
- Step 3: Make three attributes representing the access desired members of the
- permission. For login access the attributes checked are:
-
- Attribute Example Name Meaning
-
- Current Time 09hrs 9:00am - 9:59am
- Current Host H-red10 red10
- Access Medium A-network telnet/rlogin
-
- Since the entire ancestry of each attribute is searched for the
- permission and we want to allow 24 hour access we will choose the
- following membership of ``red-inet-login'':
-
- Class Why
-
- Time Time is an ancestor of all the ??hrs hours.
- L-red L-red is the parent of all the H-red?? hosts.
- A-network This is the medium of access in use.
-
- Thus we make red-inet-login an ancestor of (09hrs,H-red10,A-network):
- % lim classes+red-inet-login[forever] Time L-red A-network
- %
-
- Step 4: Add the permission to the user for some finite time:
- % lim classes+red-inet-login[921231] fred
- %
-
- It is possible to make entire groups of people member of a permission if they
- have a common class, eg:
- % lim classes+red-inet-login[forever] CommonClass
- %
-
- Names of all the defined permission may be listed with:
- % printc permissions
-
- Various accesses are listed:
- % printc access
-
- The login accesses can be listed:
- % printc a-login
-