Adding user accounts: Difference between revisions
From Powers Wiki
No edit summary |
No edit summary |
||
Line 8: | Line 8: | ||
sudo useradd -g bionmr -m -s /bin/bash ''new_username'' | 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'' | |||
* Allow the user to log in ''via'' SSH: | |||
sudo sed -e 's,^\(AllowUsers\),\1 ''new_username'',' -i sshd_config | |||
= Windows = | = Windows = |
Revision as of 14:25, 5 August 2015
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
- 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
- Allow the user to log in via SSH:
sudo sed -e 's,^\(AllowUsers\),\1 new_username,' -i sshd_config
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