Update README.md
This commit is contained in:
12
README.md
12
README.md
@@ -53,7 +53,7 @@ Said user is appropriately named jaileduser and their sole purpose is to transfe
|
||||
|
||||
Create jaileduser as a system user
|
||||
|
||||
```
|
||||
``` bash
|
||||
useradd -r -s /usr/sbin/nologin jaileduser
|
||||
```
|
||||
|
||||
@@ -70,7 +70,7 @@ Create a subdirectory within jaileduser's home directory where the file storing
|
||||
|
||||
And give jaileduser only read/execute permissions for the directory (no write so they cannot create more files)
|
||||
|
||||
```
|
||||
``` bash
|
||||
mkdir /home/jaileduser/nginx
|
||||
chown jaileduser:jaileduser /home/jaileduser/nginx
|
||||
chmod 500 /home/jaileduser/nginx
|
||||
@@ -95,7 +95,7 @@ And create the appropriate files within jaileduser's home directory
|
||||
|
||||
The private key will need to be transfered and stored onto the Nginx server
|
||||
|
||||
```
|
||||
``` bash
|
||||
mkdir /home/jaileduser/.ssh
|
||||
touch /home/jaileduser/.ssh/authorized_keys
|
||||
ssh-keygen -f jailedkey
|
||||
@@ -132,7 +132,7 @@ With all of this done the preliminary steps are complete and we can place the sc
|
||||
|
||||
## Script ran on Nginx server to send public IP to nameserver:
|
||||
|
||||
```
|
||||
``` bash
|
||||
#!/bin/bash
|
||||
|
||||
#define path to private key
|
||||
@@ -162,7 +162,7 @@ local ip2=$(dig +short myip.opendns.com @resolver1.opendns.com) 2>/dev/null \
|
||||
|
||||
## Script ran on master nameserver to update DNS records:
|
||||
|
||||
```
|
||||
``` bash
|
||||
#!/bin/bash
|
||||
|
||||
homeip=/home/jaileduser/nginx/homeip
|
||||
@@ -244,7 +244,7 @@ And you don't want a giant wall of text singular log file for all bashddns actio
|
||||
|
||||
### A log rotate entry can be made as follows:
|
||||
|
||||
```
|
||||
``` bash
|
||||
touch /etc/logrotate.d/bashddns
|
||||
nano /etc/logrotate.d/bashddns
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user