Difference between revisions of "Create new server user"

From Biowikifarm Metawiki
Jump to: navigation, search
(Created page with "Note: balance between descriptive user names and those users commonly use #either in shell script set USERNAME = Test123 - or manually replace for command line sudo adduser...")
 
(small fix and descriptive user name folder added)
Line 6: Line 6:
 
  sudo mkdir -p /home/$USERNAME/.ssh;  
 
  sudo mkdir -p /home/$USERNAME/.ssh;  
 
  sudo chmod 0700 /home/$USERNAME/.ssh;  
 
  sudo chmod 0700 /home/$USERNAME/.ssh;  
  sudo chown $USERNAME:$USERNAME /home/jpmilcent/.ssh;  
+
  sudo chown $USERNAME:$USERNAME /home/$USERNAME/.ssh;  
 
  sudo nano /home/$USERNAME/.ssh/authorized_keys;  
 
  sudo nano /home/$USERNAME/.ssh/authorized_keys;  
 
  sudo ls /home/$USERNAME/.ssh -l;  
 
  sudo ls /home/$USERNAME/.ssh -l;  
 
  sudo chown $USERNAME:$USERNAME /home/$USERNAME/.ssh/authorized_keys;  
 
  sudo chown $USERNAME:$USERNAME /home/$USERNAME/.ssh/authorized_keys;  
 
  sudo chmod 0600 /home/$USERNAME/.ssh/authorized_keys
 
  sudo chmod 0600 /home/$USERNAME/.ssh/authorized_keys
 +
 +
# this needs to be done manually
 +
sudo mkdir /home/$USERNAME\ =\ <enter full name and institution of user>

Revision as of 13:08, 28 May 2014

Note: balance between descriptive user names and those users commonly use

#either in shell script set USERNAME = Test123 - or manually replace for command line
sudo adduser $USERNAME; 
# Add Full name and in Room the city/country plus in Other some information on sponsor or other collobaration context
sudo mkdir -p /home/$USERNAME/.ssh; 
sudo chmod 0700 /home/$USERNAME/.ssh; 
sudo chown $USERNAME:$USERNAME /home/$USERNAME/.ssh; 
sudo nano /home/$USERNAME/.ssh/authorized_keys; 
sudo ls /home/$USERNAME/.ssh -l; 
sudo chown $USERNAME:$USERNAME /home/$USERNAME/.ssh/authorized_keys; 
sudo chmod 0600 /home/$USERNAME/.ssh/authorized_keys
# this needs to be done manually
sudo mkdir /home/$USERNAME\ =\ <enter full name and institution of user>