Adding user accounts

From Powers Wiki

When new group members join, they'll need access to our file and program server on both Windows and Linux, and a few odds and ends. Here's how to get that done the right way.

FIRST: Have the user decide on a username and password that they will re-enter continuously during this process. They will be denoted as new_username and new_password throughout this set of instructions.

Linux

Setting up basic credentials

  • Log in to the cluster head node, either via SSH or at the machine.
  • Add the user account:
sudo useradd -g bionmr -m -s /bin/bash new_username
  • Add a password to the new account:
sudo passwd new_username
  • Add a Samba password to the new account:
sudo smbpasswd -c /etc/samba/smb.conf -a new_username
  • Add an Apache password to the new account:
sudo htpasswd /etc/apache2/htpasswd new_username
  • Allow the user to log in via secure shell:
sudo sed -e 's,^\(AllowUsers\),\1 new_username,' -i /etc/ssh/sshd_config
  • Now create a secure shell asymmetric key pair for the user:
sudo su -l new_username
ssh-keygen -t rsa -b 4096
exit

(Use the default file in which to save the key)

Archiving the credentials

FIXME

Windows

Creating the account

  • Log in to the user's workstation on an existing account, and use the Control Panel to create a new Administrator account.
  • Add a password to the newly created account. Make sure the user can remember their password.
  • Log out and back into the new account.

Setting up the network drive

FIXME

Setting up the PuTTY key

FIXME