Y
Hacker News
new
|
ask
|
show
|
jobs
by
microwavecamera
2549 days ago
Cool guide but I'd change one thing:
echo mynewuser:mynewpassword | sudo chpasswd
If you set the password using echo like this it will log the plaintext password in the current user's .bash_history file.
1 comments
dekhn
2549 days ago
depending on the bash version, prepending a space will cause the command to not be logged.
link