View Single Post
Posts: 486 | Thanked: 251 times | Joined on Oct 2009
#97
Originally Posted by fatalsaint View Post
AFAIK: No gui password prompt program is available for the N900 and thus that specific solution would require manual work in making one. The other possibility is you set yourself a user password (leave root locked unless you have specific reason to need it), and then completely change your sudoers file to prompt for a password in order to gain root.
sudo can be configured to have a grace period with no password required after sudo with a password has been run. So, without changing any .desktop files or altering anything except a one time change to sudo configuration, a user could open a terminal session and type:
Code:
sudo pwd
and enter the user password, then take any other action that invokes sudo and not need a password. After timestamp_timeout expires without a sudo command being executed, a password is again required. The default it to always require a password. timestamp_timeout is set by /etc/sudoers. The n900 /etc/sudoers file does not have an entry present for timestamp_timeout, so that would have to be added and the NOPASSWD entries would have to be changed as well.
Originally Posted by fatalsaint View Post
However, you would then need to go through and modify every .desktop file and have it launch in a terminal window instead of directly so that your terminal will ask for the password. Not elegant, and certainly not easy... not to mention extremely likely to brick the device unless you know exactly what you're doing.
 

The Following User Says Thank You to j.s For This Useful Post: