User Tools

Site Tools


addusers

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
addusers [2015/10/19 19:35] wsiaddusers [2022/07/21 06:59] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== Adding Users to Control ======
 +
 +     $ sudo useradd <newuser> -m -d /home/users/<newuser> -p <password> -s /bin/bash
 +     $ sudo nano /etc/group #Add newuser to appropriate group(s) (usually scratch, wsi)
 +     $ sudo nano /etc/ssh/sshd_config #Add newuser to AllowUsers line for ssh access
 +     $ sudo service ssh restart #If given ssh access
 +
 +Instruct user how to login to control via ssh
 +
 +     $ ssh -X <newuser>@wsi.staticcling.org -p <port number here>
 +
 +Instruct user to change their password upon login with 
 +
 +     $ passwd
 +     
 +     
 +===== Troubleshooting SSH issues =====
 +  * Make Sure they are using port 26 if outside the office
 +  * Make sure they are on the allowed users list in /etc/ssh/sshd_config then run sudo service ssh restart
 +  * Check that staticcling.org has the right IP
 +  * Check Denyhosts in /etc/hosts.deny
 +  * Check Fail2Ban:
 +
 +    $ sudo iptables -L -n
 +    $ sudo iptables -D fail2ban-ssh -s <banned_ip> -j DROP
 +