Skip to main content
3 of 6
added 120 characters in body

As I see in this script. It is just checking if sudo is enabled, that is it..

true just returns true.

So in this case they needed to run any command with sudo, if true inside sudo are returning true, them sudo is enabled.

The other commands does not need to ask sudo password, because your authentication sucessfully in first time.

the 'echo password ok' demonstrate that too. the shell script will not ask the password anymore.