Hi! While working under andLinux on a bash script that has to sudo some stuff, I arrived at the following line.. this line seems to provide root access but doesn't require a valid password:
echo | sudo -S cat /etc/shadow >/dev/tty
Can anyone explain why this happens?
Without the 'echo |' or the '>/dev/tty' this doesn't work and requests the password (as it should). I've also tried on another box (Fedora) and it didn't allow root access.
Thanks!