LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   su (https://www.linuxquestions.org/questions/linux-newbie-8/su-515007/)

briemac 12-30-2006 06:01 PM

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?

stress_junkie 12-30-2006 06:25 PM

The su utility requires the root password.

The sudo utility requires the normal user account password.

briemac 12-30-2006 06:28 PM

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.

namit 12-30-2006 06:38 PM

is it ubuntu? is so just use sudo

syg00 12-30-2006 06:38 PM

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.

namit 12-30-2006 06:42 PM

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

briemac 12-30-2006 06:49 PM

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"


All times are GMT -5. The time now is 11:29 PM.