User Tools

Site Tools


useraddlinux

Differences

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

Link to this comparison view

Next revision
Previous revision
useraddlinux [2021/04/23 12:25] – создано chifekuseraddlinux [2023/09/14 06:06] (current) – external edit 127.0.0.1
Line 4: Line 4:
 For example to create a new user named username you would run: For example to create a new user named username you would run:
  
-''sudo useradd username''+''sudo useradd -m username''
  
 +
 +The command adds an entry to the /etc/passwd, /etc/shadow, /etc/group and /etc/gshadow files.
 +
 +To be able to log in as the newly created user, you need to set the user password. To do that run the passwd command followed by the username:
 +
 +''sudo passwd username''
 +
 +
 +DELETE USER
 +
 +''userdel -r userName''
useraddlinux.1619180720.txt.gz · Last modified: 2023/09/14 06:06 (external edit)