LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-30-2007, 09:14 AM   #1
Robert Diggs
Member
 
Registered: Dec 2006
Location: Florida
Distribution: The ones that come in magazines and books.
Posts: 136

Rep: Reputation: 15
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
 
Old 01-30-2007, 09:53 AM   #2
Intec
LQ Newbie
 
Registered: Jan 2007
Location: Brussels
Distribution: OpenSUSE
Posts: 7

Rep: Reputation: 0
You could try to type "sudo su -" at the prompt. Next change your password with "passwd". Now "su" should work.
 
Old 01-30-2007, 10:08 AM   #3
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
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.
 
Old 01-30-2007, 10:10 AM   #4
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
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'
 
Old 01-30-2007, 10:27 AM   #5
Robert Diggs
Member
 
Registered: Dec 2006
Location: Florida
Distribution: The ones that come in magazines and books.
Posts: 136

Original Poster
Rep: Reputation: 15
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
.htaccess with Basic authentication throws MySQL error in Error Log shailesh_mishra Linux - Security 6 01-17-2007 10:15 AM
Basic authentication with .htaccess throws MySQL error in Error Log shailesh_mishra Linux - Networking 2 01-12-2007 01:16 PM
OpenLDAP Authentication error paul_mat Linux - Networking 1 07-18-2005 12:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration