LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-20-2010, 04:35 PM   #1
Edmond B
LQ Newbie
 
Registered: Oct 2005
Posts: 12

Rep: Reputation: 0
Can't 'su' in Ubuntu 9.4 Terminal.


I just recently installed Ubuntu 9.4 and had it working just fine. Now I need to use su in a terminal to remove an anti virus package I had installed. I am prompted for 'password' but I don't remember it and every one that I think may be correct results in 'Authentication failure'.

I have searched the forum and read quite a bit of info that makes me think I will have to reinstall and start from scratch again.

Is there any way to recover the password I assigned, or will I have to do a new install?

Thanks,

Edmond B
 
Old 08-20-2010, 04:45 PM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
Hi,

Try: sudo su -

If I remember correctly, you can't su to root in Ubuntu (default that is). There are ways to make it possible to just use su (or su -), but Ubuntu isn't set up with that in mind.

Hope this helps.
 
Old 08-20-2010, 04:48 PM   #3
crts
Senior Member
 
Registered: Jan 2010
Posts: 1,606

Rep: Reputation: 448Reputation: 448Reputation: 448Reputation: 448Reputation: 448
Hi,

alternatively you can also
Code:
sudo -i # root privileges and root's .bash_profile will be read (if it exists)
sudo -s # root privileges but current users shell variables will be kept
sudo -i is my personal favorite.
 
1 members found this post helpful.
Old 08-20-2010, 05:04 PM   #4
Edmond B
LQ Newbie
 
Registered: Oct 2005
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks! I didn't expect such a rapid response!

sudo -i appears to be just what I need.

Best regards to all,

Edmond B

Last edited by Edmond B; 08-20-2010 at 05:09 PM.
 
Old 08-20-2010, 05:16 PM   #5
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
You're welcome

BTW:
sudo -i and sudo su - do the same thing
sudo -s adn sudo su also have the same result.
 
1 members found this post helpful.
  


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
[SOLVED] control my ubuntu pc from my ubuntu netbook using only terminal instead of vnc mrgreaper Linux - Newbie 12 04-25-2010 11:15 PM
Ubuntu terminal look like linux mint terminal? caa1980 Ubuntu 6 08-13-2009 01:16 PM
Ubuntu 8.04 Terminal - Can you make the terminal window transparent with a wallpaper? bparkerson04 Linux - Newbie 6 02-17-2009 06:12 PM
Unable to use 'su' lali.p Slackware 5 05-06-2007 08:27 AM
What's the difference between 'su' and 'su -' rickh Linux - Newbie 2 09-10-2005 01:48 PM


All times are GMT -5. The time now is 12:10 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