![]() |
Feel unhappy about "sudo gainroot" not asking for root password?
start xterm
become root (if you don't know how, then all this doesn't apply to you anyway) make sure you have proper root password set! run command: Code:
sed -e "s/Defaults env_reset/Defaults env_reset\nDefaults targetpw/; \ run update-sudoers, check there's no warnings or errors if sudo gainroot still doesn't ask for password, it might be cached from previous entering it: sudo -k clears pw cache Tested for PR1.2 with default rootsh installed, works for me. If you bork everything, a reinstall of rootsh package should get you out of quicksand THIS IS ABOUT *ROOT* PASSWORD for root account, not about that silly Ubuntu idiocy to ask for user password to do root things this is an excerpt of http://wiki.maemo.org/User:Joerg_rw/tools If you feel this is a useful post, consider hitting the 'Thanks' button over ->there |
Re: Feel unhappy about "sudo gainroot" not asking for root password?
I guess you need to setup a password for "user" first.
passwd user in root |
Re: Feel unhappy about "sudo gainroot" not asking for root password?
Any fix for PR 1.3? It doesn't seem to be working any more. The "sed -e" complained about "unsupported command e", so I added:
Code:
Defaults targetpw Did the update and clear cache, but still, it doesn't ask for a password. |
Re: Feel unhappy about "sudo gainroot" not asking for root password?
nope, im quite happy that it DOESN'T ask me for a password
and i'd be looking for a way to disable it if it did |
Re: Feel unhappy about "sudo gainroot" not asking for root password?
OK, found it. I need to modify this:
Code:
Defaults env_keep+=GTK_MODULES |
Re: Feel unhappy about "sudo gainroot" not asking for root password?
Another possibility:
Uninstall rootsh (or block it with chmod a-x /usr/sbin/gainroot) Install an ssh-server login with ssh on your own device: ssh root@localhost password: |
Re: Feel unhappy about "sudo gainroot" not asking for root password?
Quote:
|
Re: Feel unhappy about "sudo gainroot" not asking for root password?
Quote:
|
All times are GMT. The time now is 06:00. |
vBulletin® Version 3.8.8