User Tools

Site Tools


vps_-_trisquel

Differences

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

Link to this comparison view

vps_-_trisquel [2023/07/08 16:01] – created cardinalvps_-_trisquel [2023/07/08 16:28] (current) – [Basics] New User cardinal
Line 12: Line 12:
  
 ===== Basics ===== ===== Basics =====
 +
 +==== Root Login ====
  
 The default root login is root/root. The default root login is root/root.
Line 40: Line 42:
  
 After this, it is highly recommended to create a new user for normal activities and disable root login. After this, it is highly recommended to create a new user for normal activities and disable root login.
 +
 +==== New User ====
 +
 +You should add a new user account for regular use.  Replace ''<username>'' below with the username you want for the user account.
 +
 +<code>
 +root@trisquel:~# useradd -m <username>
 +root@trisquel:~# passwd <username>
 +Enter new UNIX password: 
 +Retype new UNIX password: 
 +passwd: password updated successfully
 +</code>
 +
 +The ''-m'' switch on ''useradd'' creates your home directory at ''/home/<username>'' By default, this new user is also assigned to a new group with the same name as the user.
 +
 +Presumably, you need sudo privileges for this newly created user, so you would add this user to the “sudo” group so that it can run commands as root.
 +
 +<code>
 +usermod -aG sudo <username>
 +</code>
  
 ===== Security Checklist ===== ===== Security Checklist =====
vps_-_trisquel.1688832067.txt · Last modified: 2023/07/08 16:01 by cardinal