linux - Run scipt like sudo with Gksudo -
I'm new in linux I'm trying to mount and umount. ISO with nano script I put the script /home/user/.gnome2/nemo-scripts/ . My problem is, with gksudo I run su command like only 1. How do I run this script? #! / Bin / bash gksudo -k / bin / echo "got r00t?" BNAME = $ (basename "$ NEMO_SCRIPT_SELECTED_FILE_PATHS") sudo mkdir "/ Media / $ BNAME" --info --title "ISO Mounter" zenity if sudo is ISO9660 $ Income Tax - o loop mount --text "$ BNAME e $ NEMO_SCRIPT_SELECTED_FILE_PATHS" NEMO_SCRIPT_SELECTED_FILE_PATHS "/ Media / $ BNAME" if zenity --question --title "ISO Mounter" --text "$ BNAME successfully mounted. Open Volume?" Then the Nemo / Media / $ BNAME --no- the rest of the desktop fi exit 0 sudo rmdir "/ media / $ bname" zenity --error --title "ISO mounter" --text "$ can not be mounted BNAME! " There are a couple of ways to do this in your script above, you...