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 12-30-2006, 07:01 PM   #1
briemac
LQ Newbie
 
Registered: Dec 2006
Posts: 14

Rep: Reputation: 0
su


when I type in su and it asks for my password, the correct password still does not let me access root. Even when I don't set a password to root and then just type "<Enter>" it says incorrect password. I am running the latest version of Ubuntu. I know the password is correct. Is there another command besides "su" for getting to root?
 
Old 12-30-2006, 07:25 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
The su utility requires the root password.

The sudo utility requires the normal user account password.
 
Old 12-30-2006, 07:28 PM   #3
briemac
LQ Newbie
 
Registered: Dec 2006
Posts: 14

Original Poster
Rep: Reputation: 0
yeah but I have to get to my root in order to install new programs like MATLAB, which I am trying to do. However, it doesn't recognize my password as correct even tho I am 100% sure it is.
 
Old 12-30-2006, 07:38 PM   #4
namit
Member
 
Registered: Aug 2005
Distribution: Debian
Posts: 355

Rep: Reputation: 30
is it ubuntu? is so just use sudo

Last edited by namit; 12-30-2006 at 07:41 PM.
 
Old 12-30-2006, 07:38 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,843

Rep: Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823
Ubuntu doesn't use "su" - as suggeted, "sudo" is considered the way to do things. However I have had issues with install scripts that may start other shells and need tobe root. There is probably a (sanctioned) way around this using sudo, but I just use "sudo su", then run the script as root.
Try that.
 
Old 12-30-2006, 07:42 PM   #6
namit
Member
 
Registered: Aug 2005
Distribution: Debian
Posts: 355

Rep: Reputation: 30
or what6 you do i the following

sudo su
passwd
type new password
now su will work with password you just installed or you can use sudu -s i think that will set you in a root shell
 
Old 12-30-2006, 07:49 PM   #7
briemac
LQ Newbie
 
Registered: Dec 2006
Posts: 14

Original Poster
Rep: Reputation: 0
thx i think that may have helped if any of u kno anything about programming, shoot on over to the programming forum and see if u can answer to my post "bash: g++ command not found"
 
  


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




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