Advertisement
oquidave

send password in bash

Nov 21st, 2012
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.30 KB | None | 0 0
  1. #testing getting password inputs from the user and sending it to progs
  2. echo "enter root password"
  3. read root_pwd
  4. #dmesg $root_pwd
  5. sudo /sbin/ifconfig
  6. #send the password automatically, without prompted in the CLI...but how?
  7.  
  8. //how do i automatically send the password when the shell prompts for it?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement