maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Troubleshooting (https://talk.maemo.org/forumdisplay.php?f=6)
-   -   Becoming root not working (https://talk.maemo.org/showthread.php?t=3109)

polyesterangst 2006-09-19 18:13

Becoming root not working
 
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 2006-09-19 18:21

Quote:

Originally Posted by polyesterangst
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 2007-01-20 19:41

Re: Becoming root not working
 
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 2007-01-20 20:24

Re: Becoming root not working
 
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 2007-01-20 20:29

Re: Becoming root not working
 
sudo gainroot

right???

polyesterangst 2007-01-20 20:50

Re: Becoming root not working
 
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 2007-01-20 21:10

Re: Becoming root not working
 
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 2007-01-20 21:24

Re: Becoming root not working
 
"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 2007-01-20 22:59

Re: Becoming root not working
 
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 2007-01-20 23:57

Re: Becoming root not working
 
Quote:

Originally Posted by polyesterangst (Post 30791)
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.


All times are GMT. The time now is 16:44.

vBulletin® Version 3.8.8