Ever need to create a shell script and use the sudo command? here is how you do it:

read $passwd

echo $passwd | sudo -S touch test

Leave a Reply