Computing/Athena: Difference between revisions

From OpenWetWare
Jump to navigationJump to search
m (typo)
No edit summary
Line 1: Line 1:
==AFS==
It is now possible to access Athena lockers on shmoo or habanero (Linux machines). This means that you can simply copy (instead of sftp/scp) files to and from your Athena home directory when you are logged in to either machine. Also, you can use any [http://web.mit.edu/acs/www/table.html Athena software] which runs on Linux by attaching an appropriate locker.
It is now possible to access Athena lockers on shmoo or habanero (Linux machines). This means that you can simply copy (instead of sftp/scp) files to and from your Athena home directory when you are logged in to either machine. Also, you can use any [http://web.mit.edu/acs/www/table.html Athena software] which runs on Linux by attaching an appropriate locker.


Line 15: Line 16:


See the links below for more details:
See the links below for more details:
*[http://itinfo.mit.edu/article?id=6845 AFS at MIT: An Introduction]
*[http://itinfo.mit.edu/article?id=6844 OpenAFS 1.2.10 for Red Hat Linux: Getting Started]


[http://itinfo.mit.edu/article?id=6845 AFS at MIT: An Introduction]
==User accounts==
AFS will work properly only if local user IDs match Athena user IDs. Here are the steps one should take to create accounts on Linux machines in the lab.


[http://itinfo.mit.edu/article?id=6844 OpenAFS 1.2.10 for Red Hat Linux: Getting Started]
Create group called Athena with id 101 in /etc/groups (necessary to do only once per machine):
# groupadd -g 101 Athena
 
Get UID/GID on Athena:
$ hesinfo username passwd
 
Create local account:
# useradd username -u UID -g Athena -c "Firstname Lastname"
where UID is the Athena user ID obtained in the previous step
 
Optionally, assign a local password (allows logins when the network is down):
# passwd username
 
Modifying existing accounts may be necessary, if they were created without following the procedure above.
 
Change uid/gid for the existing user:
# /usr/sbin/usermod -u uid -g Athena username
Any files which the user owns and which are located  in the directory tree rooted at the user’s home directory will have the file user ID changed  automatically. Files outside of the user’s home directory must be altered manually.
 
Record first and last names:
# /usr/bin/chfn username
 
Change ownership on files belonging to the user outside home dir (this can also be done using xargs)
# find / -uid old_id -exec chown username:Athena {} \;
except files in /var/spool/mail:
# /bin/chgrp mail
 
Delete old group of the user from /etc/group if necessary.

Revision as of 13:42, 23 November 2005

AFS

It is now possible to access Athena lockers on shmoo or habanero (Linux machines). This means that you can simply copy (instead of sftp/scp) files to and from your Athena home directory when you are logged in to either machine. Also, you can use any Athena software which runs on Linux by attaching an appropriate locker.

Here's what you need to do to attach a locker (in this example, locker is your Athena home directory):

1. Obtain Kerberos tickets

$ kinit mitusername

2. Obtain AFS tokens

$ aklog mitusername

3. Attach your Athena home directory (here lockername = mitusername)

$ afslocker lockername

Now your Athena home directory should be accessible at /mit/lockername

See the links below for more details:

User accounts

AFS will work properly only if local user IDs match Athena user IDs. Here are the steps one should take to create accounts on Linux machines in the lab.

Create group called Athena with id 101 in /etc/groups (necessary to do only once per machine):

# groupadd -g 101 Athena

Get UID/GID on Athena:

$ hesinfo username passwd

Create local account:

# useradd username -u UID -g Athena -c "Firstname Lastname"

where UID is the Athena user ID obtained in the previous step

Optionally, assign a local password (allows logins when the network is down):

# passwd username

Modifying existing accounts may be necessary, if they were created without following the procedure above.

Change uid/gid for the existing user:

# /usr/sbin/usermod -u uid -g Athena username

Any files which the user owns and which are located in the directory tree rooted at the user’s home directory will have the file user ID changed automatically. Files outside of the user’s home directory must be altered manually.

Record first and last names:

# /usr/bin/chfn username

Change ownership on files belonging to the user outside home dir (this can also be done using xargs)

# find / -uid old_id -exec chown username:Athena {} \;

except files in /var/spool/mail:

# /bin/chgrp mail

Delete old group of the user from /etc/group if necessary.