Switch user without password.
In my case, i've got two users on same machine and whenever i do su - <user> is still asking password and we'll not achieve automation on this manner.
Hence the solution is
#> sudo -u <user> -i
This command will take us directly into the user without prompting us with password.
No comments:
Post a Comment