I want to write a script which runs chrome as root without getting password from the users. Users should not know the password,they also should not see the password,if they open the script (if the root password is needed to be written into script,we need to encrypt it)How can be possible that ? I checked out this one and it didn't work#!/usr/bin/expect -f right here i need to be rootchrome -P http://www.google.com.tr & sleep 4 
Being root without asking for the password in a shell script
linux;shell script