dimag0g
Very Active Member
Smart Sudo is a new tool I'm working on. It helps you to configure your system so actions usually requiring a password entry could be executed without entering it.
I have tested it quite extensively, but before you try it, you must know how to recover from broken sudo config. Basically, if you haven't set your root password and have no clear idea about sudo config files, you might have to reflash your pandora in order to recover. You've been warned.
Now, a couple of examples:
Wakeup alarm:
- Download Wakeup alarm PND from the repo and run it
- Note that a password is needed to program the timer
- Run Smart sudo, and install "echosu" on your system
(echosu script enables passwordless hardware access)
- Rerun Wakeup Alarm. Now it should work without password
Swap files:
- Download Swap files PND from the repo and run it
- Note that a password is needed to enable/disable swap
(commands "swapon" and "swapoff" are concerned)
- Run Smart sudo and add "swapon" and "swapoff" to sudoers
- Now Swap tools could run without password. However,
it doesn't know you added "swapon" and "swapoff" to
sudoers, so it keeps asking for a password anyway.
- Run Smart sudo and install smart gksudo script
(it checks if password is really needed before asking)
- Rerun Swap tools. Now it should work without password
Upgrade Pandora OS:
- go to main menu -> System -> Upgrade pandora OS
- note that a password is needed to run upgrade script
- Run Smart Sudo and add "opkg" to sudoers
- make sure smart gksudo script is installed
(same reason as for Swap tools)
- Rerun Upgrade script. Now it should work without password
I have tested it quite extensively, but before you try it, you must know how to recover from broken sudo config. Basically, if you haven't set your root password and have no clear idea about sudo config files, you might have to reflash your pandora in order to recover. You've been warned.
Now, a couple of examples:
Wakeup alarm:
- Download Wakeup alarm PND from the repo and run it
- Note that a password is needed to program the timer
- Run Smart sudo, and install "echosu" on your system
(echosu script enables passwordless hardware access)
- Rerun Wakeup Alarm. Now it should work without password
Swap files:
- Download Swap files PND from the repo and run it
- Note that a password is needed to enable/disable swap
(commands "swapon" and "swapoff" are concerned)
- Run Smart sudo and add "swapon" and "swapoff" to sudoers
- Now Swap tools could run without password. However,
it doesn't know you added "swapon" and "swapoff" to
sudoers, so it keeps asking for a password anyway.
- Run Smart sudo and install smart gksudo script
(it checks if password is really needed before asking)
- Rerun Swap tools. Now it should work without password
Upgrade Pandora OS:
- go to main menu -> System -> Upgrade pandora OS
- note that a password is needed to run upgrade script
- Run Smart Sudo and add "opkg" to sudoers
- make sure smart gksudo script is installed
(same reason as for Swap tools)
- Rerun Upgrade script. Now it should work without password
Last edited by a moderator: