first commit
This commit is contained in:
29
AccountMgr.md
Executable file
29
AccountMgr.md
Executable file
@@ -0,0 +1,29 @@
|
||||
## Install sshd
|
||||
In order to enable ssh on Ubuntu Linux, we first need to perform an SSH package installation. Open up terminal and enter command:
|
||||
|
||||
$ sudo apt install sshd
|
||||
|
||||
|
||||
|
||||
## Create a user using command line
|
||||
Let's start by creating a new user. Open up terminal and enter:
|
||||
|
||||
$ sudo adduser --no-create-home username
|
||||
|
||||
|
||||
|
||||
## Create non-login/system user
|
||||
Let's start by creating a new user. Open up terminal and enter:
|
||||
|
||||
$ sudo useradd -r username
|
||||
|
||||
|
||||
## Change default shell
|
||||
$ grep user /etc/passwd
|
||||
|
||||
$ usermod --shell /bin/bash user
|
||||
|
||||
$ grep user /etc/passwd
|
||||
|
||||
## Adding User to the sudo Group
|
||||
$ usermod -aG sudo username
|
||||
Reference in New Issue
Block a user