Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    Becoming root not working

    Reply
    polyesterangst | # 1 | 2006-09-19, 18:13 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    rattis | # 2 | 2006-09-19, 18:21 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks

     
    polyesterangst | # 3 | 2007-01-20, 19:41 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Rocketman | # 4 | 2007-01-20, 20:24 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    penguinbait | # 5 | 2007-01-20, 20:29 | Report

    sudo gainroot

    right???

    Edit | Forward | Quote | Quick Reply | Thanks

     
    polyesterangst | # 6 | 2007-01-20, 20:50 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    penguinbait | # 7 | 2007-01-20, 21:10 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to penguinbait For This Useful Post:
    promethh

     
    polyesterangst | # 8 | 2007-01-20, 21:24 | Report

    "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

    Edit | Forward | Quote | Quick Reply | Thanks

     
    penguinbait | # 9 | 2007-01-20, 22:59 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks

     
    mwiktowy | # 10 | 2007-01-20, 23:57 | Report

    Originally Posted by polyesterangst View Post
    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
vBulletin® Version 3.8.8
Normal Logout