linux - how to switch to root user without entering password in bash script on RedHat -


i want switch root user in bash script on redhat specifying password in code rather entering it.

any highly appreciated.

thanks

it's not idea store passwords in plain text in script. can use visudo edit sudoers file , allow users run command using sudo without using password.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -