Before grokking this document, please read the first few sections of the Introduction to the SP/2 document. It contains important background knowledge.
me% /usr/afsws/etc/kas -admin afsadmin Administrator's (afsadmin) Password: <afsadmin's password>To determine if the user already has an AFS Kerberos instance use the examine command.
ka> examine usernameIf they don't exist in AFS, you'll see the following:
examine: user doesn't exist getting information for username.and you will need to use the create command to create their instance, and set their initial password. You need the user present to do this, or you can use the setpassword command to do it later.
ka>> create username initial_password: Verifying, please re-enter initial_password:
If the user is already present in the AFS Kerberos database, you'll see the following instead:
User data for username key (0) cksum is #########, last cpw: <some date here>. password will never expire. An unlimited number of unsuccessful authentications is permitted. entry never expires. Max ticket lifetime 25.00 hours. last mod on <some date here> by <somebody>In this case the user is already to go. You may need to run kas's setpassword command if the user doesn't remember their AFS Kerberos password. I advise them to make it the same as their departmental Kerberos password, as there are just too many passwords involved with using the SP/2.
/u
for its own purposes, for use
with the SP/2 parallel tools. To refer to a user's AFS directory,
the qualified path of /afs/cs.wisc.edu/u/u/s/username
.
The tool of choice for adding users to the SP/2 is smit, the System Management Interface Tool. The various smit capabilities implement creating users on all SP/2 nodes.
To execute smit to add users to the SP/2, you must be logged in as root. Smit uses a hierarchically structured set of menus to direct the user to leaf nodes where functions can be executed. To shortcut the description of the smit menu systems, I'll illustrate paths through the menu system with '/' seperated menu item names. For example
Security & Users / Groupswill descend to a node of the tree which allows you to select actions to perform on unix groups.
To select a menu item, move the hilite cursor to the menu item with the arrow keys, and hit return.
To backup a level in the menu hierarchy, or to STOP during the filling out of an action menu, use F3 or the ESC+3 key sequence. To exit smit at any time, F10 or ESC+0 may be used.
Once inside an "action" menu, a menu which actually does something, return will EXECUTE the entire menu. Be sure to use the arrow keys to move between the fields to be filled in on the menu. I mention this, as I constantly keep forgetting about it.
Once return is hit in an action menu, smit will do the desired task. When it is complete it will present a new page that has any output the commands smit uses may have generated. Once this "OK" page is shown, you can backout of the menu structure or exit smit.
Fill in the fields for Group Name and Group ID from the data you gathered. Leave the other fields with their default values. Do Not add the username to the USER list field for the group.Security & Users / Groups / Add a Group
Fill in the fields for User NAME, and User ID from the information you have gathered. Set the PRIMARY group to the user's group (same as the username). Initialize the Secondary GROUPS field to any other groups the user may need. Usually this is not needed.Security & Users / 9076 SP Users / Add a User
The HOME directory field should be set to /home/username. It will be automagically changed to something else as the user is added, so do not be alarmed if you notice that change.
The Initial PROGRAM should be set to /bin/csh and User INFORMATION to the user's fullname from the gecos field.
Hit return, wait, and voila! the user is added to the SP/2.
The user must be added to the SP/2's Kerberos Database so they can use the SP/2's parallel tools. This isn't done by smit. Instead, a Kerberos tool, kdb_edit is used to directly modify the database. kdb_edit is fairly straight forward to use, so I'll just present a script of a session as an example. Use the default values for every option, and use a null instance.
When you are done adding users to the Kerberos database, generate an EOF (C-d) at the Principal name: prompt.
sp2-cw# /usr/kerberos/etc/kdb_edit Opening database... Enter Kerberos master key: <sp/2 kerberos master password> Previous or default values are in [brackets] , enter return to leave the same, or new value. Principal name: username Instance: <Not found>, Create [y] ? Principal: username, Instance: , kdc_key_ver: 1 New Password: <the users's password> Verifying, please re-enter New Password: Principal's new key version = 1 Expiration date (enter yyyy-mm-dd) [ 1999-12-31 ] ? Max ticket lifetime [ 255 ] ? Attributes [ 0 ] ? Edit O.K. Principal name: ^d
sp2-cw# /usr/kerberos/bin/kinit root.admin Kerberos Initialization for "root.admin" Password: sp2-cw# ~bolo/SP2/update_group /usr/kerberos/bin/rcp /etc/group sp2-01:/etc/group ...