例如这个脚本:
cat switch_to_root.sh
sudo -i
#here i want somehow that the script will get as parameter my root password and use it in login.
例如这个脚本:
cat switch_to_root.sh
sudo -i
#here i want somehow that the script will get as parameter my root password and use it in login.