More info on basic security
All checks were successful
continuous-integration/laminar-elessar Build 51 succeeded in 1 minute .
All checks were successful
continuous-integration/laminar-elessar Build 51 succeeded in 1 minute .
This commit is contained in:
parent
d765b46c8a
commit
08890c90b0
1 changed files with 12 additions and 4 deletions
|
@ -17,10 +17,18 @@
|
|||
- Thread-based vs event-based servers
|
||||
|
||||
## Basic Security
|
||||
- Creating a non-root account
|
||||
- `adduser` "yourusername"
|
||||
- `sudo` permissions
|
||||
-
|
||||
- Creating a non-root account:
|
||||
|
||||
```adduser "yourusername" ```
|
||||
|
||||
As root, we should create a new user. This is because root has all permissions over the system and can therefore be used, even accidentally to damage or destory the system. Having seperate accounts, such as "yourusername" increases accountability and decreases the likelihood of system damage.
|
||||
|
||||
During the setup, you may be asked for a password along with other information. You may customise this information as you wish.
|
||||
|
||||
```usermod -aG sudo yourusername```
|
||||
|
||||
Now that the user has been created, we should ensure that that user can execute commands with escalated permissions. These are called ```sudo``` permissons.
|
||||
|
||||
- The Linux security model: Knowing why you're typing your password
|
||||
- SSH
|
||||
- Disable root login
|
||||
|
|
Loading…
Reference in a new issue