Is there any way to execute the 'su(switch user)' command with the password given in the same command itself like su root -p "password"
Asked
Active
Viewed 1,001 times
1 Answers
2
I am going to answer this by saying that you really do not want to do it this way, and the way su works is probably by design so that you don't do it like this.
Entering your password in cleartext to be preserved in your shell's history for anyone to see who can get read rights into your folder is really bad security practice.
Kurankat
- 1,243