User Tools

Site Tools


usermanagement

Differences

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

Link to this comparison view

Next revision
Previous revision
usermanagement [2022/12/21 15:36] – created dimitrijusermanagement [2022/12/21 16:37] (current) dimitrij
Line 3: Line 3:
 1. Open a terminal session on the server. [[ssh_connection|Connect to a Server via SSH]] 1. Open a terminal session on the server. [[ssh_connection|Connect to a Server via SSH]]
  
-2. Run the command `sudo adduser <username>to create a new user. You will be prompted to enter a password and other information such as the full name and email address.+2. Run the command ''sudo [[adduser|adduser]] <username>'' to create a new user. You will be prompted to enter a password and other information such as the full name and email address.
  
-3. Once the user has been created, run the command `sudo usermod -aG sudo <username>to give the user sudo privileges. This allows the user to run commands as the root user.+3. Once the user has been created, run the command ''sudo [[usermod|usermod]] -aG sudo <username>'' to give the user sudo privileges. This allows the user to run commands as the root user.
  
-4. Run the command `su - <username>to log in as the new user.+4. Run the command ''su - <username>'' to log in as the new user.
  
 5. The new user is now set up and can run commands on the server. 5. The new user is now set up and can run commands on the server.
usermanagement.1671633404.txt.gz · Last modified: 2022/12/21 15:36 by dimitrij

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki