LinuxQuestions.org
Visit Jeremy's Blog.
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, 10: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, 10: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, 11:08 AM   #3
raskin
Senior Member
 
Registered: Sep 2005
Location: Russia
Distribution: NixOS (http://nixos.org)
Posts: 1,899

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

Rep: Reputation: 63
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, 11: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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 11:15 AM
Basic authentication with .htaccess throws MySQL error in Error Log shailesh_mishra Linux - Networking 2 01-12-2007 02:16 PM
OpenLDAP Authentication error paul_mat Linux - Networking 1 07-18-2005 01:48 AM


All times are GMT -5. The time now is 10:31 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration