Minor typos
This commit is contained in:
parent
ae901366a9
commit
f85c7e14e7
1 changed files with 7 additions and 11 deletions
|
@ -17,32 +17,28 @@
|
||||||
- Thread-based vs event-based servers
|
- Thread-based vs event-based servers
|
||||||
|
|
||||||
## Basic Security
|
## Basic Security
|
||||||
```root``` is the administrative account of Linux systems. Owing to the extremely broad permissions granted to root accounts, one of the core tenants of Linux security is ensuring each user has their own account.
|
`root` is the administrative account of Linux systems. Owing to the extremely broad permissions granted to root accounts, one of the core tenants of Linux security is ensuring each user has their own account.
|
||||||
|
|
||||||
This is because root can be used, even accidentally to damage or destory the system because of its extensive permissons. Having seperate accounts, such as "yourusername" also increases accountability and decreases the likelihood of system damage.
|
This is because root can be used, even accidentally to damage or destroy the system because of its extensive permissions. Having separate accounts, such as "yourusername" also increases accountability and decreases the likelihood of system damage.
|
||||||
|
|
||||||
|
|
||||||
- Creating a non-root account:
|
- Creating a non-root account:
|
||||||
|
|
||||||
```adduser "yourusername" ```
|
`adduser "yourusername" `
|
||||||
|
|
||||||
We should create the new user as root.
|
We should create the new user as root.
|
||||||
|
|
||||||
Execute the command as above, replacing ```"yourusername"``` with a desired username.
|
Execute the command as above, replacing `"yourusername"` with a desired username.
|
||||||
|
|
||||||
During the setup, you may be asked for a password along with other information. You may customise this information as you wish.
|
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```
|
`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.
|
Now that the user has been created, we should ensure that that user can execute commands with escalated permissions. These are called `sudo` permissons.
|
||||||
|
|
||||||
Execute the command as above, replacing ```"yourusername"``` with the user created in the previous step.
|
Execute the command as above, replacing `"yourusername"` with the user created in the previous step.
|
||||||
|
|
||||||
- The Linux security model: Knowing why you're typing your password
|
- The Linux security model: Knowing why you're typing your password
|
||||||
- SSH
|
|
||||||
- Disable root login
|
|
||||||
- SSH Keys
|
|
||||||
|
|
||||||
|
|
||||||
### Securing SSH
|
### Securing SSH
|
||||||
Used by servers and their administrators across the world to talk to one another, if someone manages to get in who isn't supposed to, they could do all kinds of damage!
|
Used by servers and their administrators across the world to talk to one another, if someone manages to get in who isn't supposed to, they could do all kinds of damage!
|
||||||
|
|
Loading…
Reference in a new issue