LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Unbuntu - SU Authentication error (https://www.linuxquestions.org/questions/linux-newbie-8/unbuntu-su-authentication-error-524061/)

Robert Diggs 01-30-2007 09:14 AM

Unbuntu - SU Authentication error
 
Hey Gang,

As the title states, I cannot get the SU command to work. I know for fact that the password is correct, however I don't think that is the problem. I'm not sure what is though. I'm running Ubuntu 6.10. Any help is much appreciated.

Regards,

Brandon

Intec 01-30-2007 09:53 AM

You could try to type "sudo su -" at the prompt. Next change your password with "passwd". Now "su" should work.

raskin 01-30-2007 10:08 AM

What password do you enter? In Ubuntu there can be no way to login into root account (and no root password), so try 'sudo -s' with your password.

matthewg42 01-30-2007 10:10 AM

Ubuntu doesn't set a root user account password (youo can't log in as root through the normal login process). Your first user account will be in the group adm and/or admin, and can use sudo. If you need an interactive shell from the root user, use
Code:

sudo bash
If you need to execute a specific command as root, use
Code:

sudo command ...
The biggest down-side I find with this setup is that using sudo with re-direction doesn't work as one might hope because the shell evaluates the suso, then tries to re-direct the results in the original [user priv] shell. This is usually OK, but when you want to re-direct to a file that onoly root can modify, it's a problem. You can get around it like this:
Code:

sudo bash -c 'echo "only root can write here" > /onlyroot'

Robert Diggs 01-30-2007 10:27 AM

Sorry,

Let me be more specific, but I do believe my question was answered. I was attempting to screw around with the menu.lst and grub configuration file. In Suse, you need to be in the terminal and have SU permissions... hence the reason for the SU command. I figured the same applied in Ubuntu. Then I realized that Ubuntu provided gedit, it's own text editor. Normally, in Suse, I'd use nano. For instance: nano fstab.conf to edit the fstab file.

So, in a way, I just answered my own question and Matt answered my question to get SU permissions in terminal.

Thanks a bunch,

Brandon


All times are GMT -5. The time now is 12:21 PM.