PDA

View Full Version : Becoming root not working


polyesterangst
09-19-2006, 02:13 PM
I have used the application installer to load becomeroot.

I tried using $ sudo su -, and it prompts for password, which I hit enter at to get back to the $. If I enter anything else it is wrong password, and when I hit enter, it says 1 wrong password entered.

I was reading that I should be # if I am root, so what is wrong?

Can someone enlighten me on how to actually become root through the already installed application manager path. I have heard of others doing this an it worked, or am I mislead and need to use the SSH way to gain root.

Thanks.

rattis
09-19-2006, 02:21 PM
I have used the application installer to load becomeroot.

I tried using $ sudo su -, and it prompts for password, which I hit enter at to get back to the $. If I enter anything else it is wrong password, and when I hit enter, it says 1 wrong password entered.

I was reading that I should be # if I am root, so what is wrong?

Can someone enlighten me on how to actually become root through the already installed application manager path. I have heard of others doing this an it worked, or am I mislead and need to use the SSH way to gain root.

Thanks.

Uninstall the application and reinstall it. This will make sure that it installed properly. When you install it, it won't as you for a password when you type sudo su -

Thats my milage, I don't know if you'll get the same

polyesterangst
01-20-2007, 02:41 PM
This may seems silly, but I updated my OS to the scirocco version and now after installing all my applications I tried to become root. I have installed through the application manager a few times, but everytime I try sudo su -, it prompts for a password.

Does anyone have any way to help me on this, since I would like to get my hamachi back up and running, and need root access for tuncfg command.

Thanks,

Polyester

Rocketman
01-20-2007, 03:24 PM
There is a new version of becomeroot out, version 0.1-2, which does not seem to be working on my n800. It installs, but typing sudo su - results in a password request. I recommend uninstalling it and installing 0.1-1 if you can find it, as it works fine for me.

penguinbait
01-20-2007, 03:29 PM
sudo gainroot

right???

polyesterangst
01-20-2007, 03:50 PM
sudo gainroot only gives you a shell of root, since you are not in the main directory, but rather the user directory. So it doesn't do the same.

penguinbait
01-20-2007, 04:10 PM
Ok
sudo gainroot

vi /etc/sudoers

add this to the bottom

user ALL = (ALL) NOPASSWD: ALL

open new term,

run

sudo su -


not sure why its not working, but that will fix it

polyesterangst
01-20-2007, 04:24 PM
"add this to the bottom"
user ALL = (ALL) NOPASSWD: ALL

do you mean to do it as the last line item? And after I enter it, what do I do to have it accept it before closing xterm.

Thanks,

polyester

penguinbait
01-20-2007, 05:59 PM
type
sudo gainroot

type
cp /etc/sudoers /etc/sudoers.backup

type
echo "user ALL = (ALL) NOPASSWD: ALL" >> /etc/sudoers

open new tab inside xterm

type
sudo su -

You are now root

mwiktowy
01-20-2007, 06:57 PM
sudo gainroot only gives you a shell of root, since you are not in the main directory, but rather the user directory. So it doesn't do the same.

'sudo gainroot' (once you've installed the becomeroot package or enabled the R&D mode) is like 'su' without the '-' ; You gain root privileges but don't load the profile of root.

You can likely just 'su -' once you've gainroot'ed if you really need those environment variables set. If you want to login as root with 'su -' or via ssh (once you've installed an sshd), set the root password with passwd.

However, that is generally discouraged since logging on as an unprivilaged user and then exscalating your privilage when needed is better than just diving in and doing everything as root. Not having a root password forces you to do things the "right" way.