Rocks: Adding a user

From Define Wiki
Jump to navigation Jump to search

Add the User

adduser test1

When you add a user, make sure to su as the user to setup the RSA ssh keys for passwordless access across the cluster.

su -l test1
# press enter twice *without* entering a password!!

Sync user details across the cluster

rocks sync users

Debugging user problems

Can i access all the hosts ok without entering a password?

From the headnode, try and access all the hosts

su -l test1
rocks run host uptime

I'm getting prompted for a password?

Some thing to check if you get prompted for a password:

  • Check the /etc/[passwd|group|shadow] files contain the user details?
  • If these dont exist, run rocks sync config and check output to make sure 411 is syncing these files

Log in to the compute host as root and try su to the user

  • If this works ok, verify the users ~/.ssh/authorized_keys is ok

If the above is ok:

  • Is the /home/ directory mountable?
  • Manually try mount the /export/home directory
  • If this works ok, check the users home directory in /etc/passwd (It should be /home/username)