Difference between revisions of "Adduser"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
 
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
adduser ([[BusyBox]])
+
{{lowercase}}
 +
adduser USERNAME [[sudo]]
 +
The user `USERNAME` is already a member of `sudo`.
  
 +
[[Amazon Linux]]
 +
  adduser USERNAME -G [[sudo]]
 +
  adduser: group 'sudo' [[does not exist]]
 +
  adduser USERNAME -G [[admin]]
 +
  adduser: group 'admin' does not exist
  
https://linux.die.net/man/8/adduser
+
<code>adduser</code> ([[BusyBox]])
 +
 
 +
* https://www.busybox.net/downloads/BusyBox.html
 +
* https://linux.die.net/man/8/adduser
 +
 
 +
adduser YOUR_NEW_USER
 +
 
 +
adduser
 +
BusyBox v1.28.4 (2020-10-07 19:11:37 +04) multi-call binary.
 +
 +
Usage: adduser [OPTIONS] USER [GROUP]
 +
 +
Create new user, or add USER to GROUP
 +
 +
-h DIR Home directory
 +
-g GECOS GECOS field
 +
-s SHELL Login shell
 +
-G GRP Group
 +
-S Create a system user
 +
-D Don't assign a password
 +
-H Don't create home directory
 +
-u UID User id
 +
-k SKEL Skeleton directory (/etc/skel)
 +
 
 +
 
 +
== Related commands ==
 +
* <code>[[passwd]]</code>
 +
* [[groups]]
 +
* <code>[[usermod]]</code>
  
 
== See also ==
 
== See also ==
* [[useradd]]
+
* {{useradd}}
 +
 
 +
 
 +
[[Category:Linux]]

Latest revision as of 13:24, 28 December 2023

adduser USERNAME sudo
The user `USERNAME` is already a member of `sudo`.

Amazon Linux

 adduser USERNAME -G sudo
 adduser: group 'sudo' does not exist
 adduser USERNAME -G admin
 adduser: group 'admin' does not exist

adduser (BusyBox)

adduser YOUR_NEW_USER
adduser
BusyBox v1.28.4 (2020-10-07 19:11:37 +04) multi-call binary.

Usage: adduser [OPTIONS] USER [GROUP]

Create new user, or add USER to GROUP

	-h DIR		Home directory
	-g GECOS	GECOS field
	-s SHELL	Login shell
	-G GRP		Group
	-S		Create a system user
	-D		Don't assign a password
	-H		Don't create home directory
	-u UID		User id
	-k SKEL		Skeleton directory (/etc/skel)


Related commands[edit]

See also[edit]

Advertising: