LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 02-24-2012, 09:16 AM   #1
megaloman
LQ Newbie
 
Registered: Jan 2008
Posts: 7

Rep: Reputation: 0
Question How do I log on as root?


Hello everyone,

I'm newbie to Linux.

I tried to login as root in order to install a modem driver. I'm pretty sure that I typed the correct password for the root account, but it just couldn't let me login.

I thought I forgot the password but I didn't.
I've tried this with Ubuntu and now Fedora, both didn't let me login as root.
This is my own PC and I installed the Linux by myself.

Do I miss something?

Thanks in advance!

Last edited by megaloman; 02-24-2012 at 09:18 AM.
 
Old 02-24-2012, 09:18 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
We don't know if you missed something, as you've not shown us what you did. On either box, when logged in as a normal user, open a terminal and run "sudo -i" and enter your USER password, and you'll probably be logged in as root. Otherwise, run "su -" and enter the root password again.
 
Old 02-24-2012, 09:22 AM   #3
cascade9
Senior Member
 
Registered: Mar 2011
Location: Brisneyland
Distribution: Debian, aptosid
Posts: 3,753

Rep: Reputation: 934Reputation: 934Reputation: 934Reputation: 934Reputation: 934Reputation: 934Reputation: 934Reputation: 934
With ubuntu, unless you have changed stuff you cant login as root. The /root account is locked in ubuntu by defualt.
 
Old 02-24-2012, 09:23 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
/root ??

You can log in as root, just indirectly.
 
Old 02-24-2012, 09:24 AM   #5
megaloman
LQ Newbie
 
Registered: Jan 2008
Posts: 7

Original Poster
Rep: Reputation: 0
I had not logged in yet.
It's the opening screen with login options: my own name and "other".
 
Old 02-24-2012, 09:25 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
As above, log in as a normal user and open a terminal. You should NEVER log into XWindows as root, there is never any need to.
 
Old 02-24-2012, 09:27 AM   #7
megaloman
LQ Newbie
 
Registered: Jan 2008
Posts: 7

Original Poster
Rep: Reputation: 0
I see, I thought it's like Windows' Administrator account.
Thanks, I'll try logging in as normal user account and using 'sudo' instead.
 
Old 02-24-2012, 09:28 AM   #8
cascade9
Senior Member
 
Registered: Mar 2011
Location: Brisneyland
Distribution: Debian, aptosid
Posts: 3,753

Rep: Reputation: 934Reputation: 934Reputation: 934Reputation: 934Reputation: 934Reputation: 934Reputation: 934Reputation: 934
Quote:
Originally Posted by acid_kewpie View Post
/root ??

You can log in as root, just indirectly.
Is that in reply to my post above yours (post #3)?

BTw, I agree, you shouldnt ever have to login to 'X' as root, even if your distro allows it.
 
Old 02-24-2012, 09:29 AM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
Well, it is, and I never log into my win 7 machine as Administrator, i right click and run as, and that's the closest thing you'll find on windows to sudo. Running sudo -i is the same as running cmd as Administrator. Sort of.

---------- Post added 24-02-12 at 03:29 PM ----------

Quote:
Originally Posted by cascade9 View Post
Is that in reply to my post above yours (post #3)?

BTw, I agree, you shouldnt ever have to login to 'X' as root, even if your distro allows it.
Yes, you seem to have confused the /root directory and the root account. Hardly matters actually. I appear to be in a petty mood.
 
Old 02-24-2012, 09:57 AM   #10
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,508

Rep: Reputation: 2102Reputation: 2102Reputation: 2102Reputation: 2102Reputation: 2102Reputation: 2102Reputation: 2102Reputation: 2102Reputation: 2102Reputation: 2102Reputation: 2102
Unless you've added your user to the sudoer file in Fedora, you won't be able to use sudo.

In Ubuntu:
log in as user
open terminal
sudo <command>
enter user's password

In Fedora:
log in as user
open terminal
su -
enter root's password
<command>
 
1 members found this post helpful.
Old 02-24-2012, 09:59 AM   #11
cascade9
Senior Member
 
Registered: Mar 2011
Location: Brisneyland
Distribution: Debian, aptosid
Posts: 3,753

Rep: Reputation: 934Reputation: 934Reputation: 934Reputation: 934Reputation: 934Reputation: 934Reputation: 934Reputation: 934
Yeah, that was a silly mistake. But only a / mistake, you still cant login as root to ubuntu, the account is locked. Sudo isn't root, it just gives the privileges of root.

Pretty much as petty as picking on a /, maybe its going around?
 
Old 02-24-2012, 01:25 PM   #12
ricstirato
Member
 
Registered: Jan 2004
Location: Gießen, Germany
Distribution: Xubuntu 12.04, Mythbuntu, Ubuntu Server 12.04
Posts: 174

Rep: Reputation: 24
"sudo su -" is root ...

edit: on Ubuntu, for example
 
Old 02-24-2012, 01:41 PM   #13
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
Quote:
Originally Posted by ricstirato View Post
"sudo su -" is root ...

edit: on Ubuntu, for example
no no no. sudo -i.
 
Old 02-24-2012, 03:32 PM   #14
ricstirato
Member
 
Registered: Jan 2004
Location: Gießen, Germany
Distribution: Xubuntu 12.04, Mythbuntu, Ubuntu Server 12.04
Posts: 174

Rep: Reputation: 24
Quote:
Originally Posted by acid_kewpie View Post
no no no. sudo -i.
I'm not aware of differences (except for the hard effort of typing 2 more characters of course )
 
Old 02-24-2012, 03:48 PM   #15
snowpine
Senior Member
 
Registered: Feb 2009
Posts: 4,193

Rep: Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182
According to the official documentation at https://help.ubuntu.com/community/RootSudo

sudo -i is similar to sudo su -

and

sudo -s is similar to sudo su

More discussion here: http://ubuntuforums.org/showpost.php...26&postcount=4
 
  


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] Some application installation questions: log in as root or log in as 'user' & do 'su' Robert.Thompson Slackware 9 02-25-2011 08:19 AM
Fedora 12 cannot log in as root, cannot su nor log into bash Neo-New Fedora 7 06-24-2010 12:48 PM
NFS Root setup - can't log in as root after CHMOD ? gallwapa Linux - General 1 04-02-2007 04:31 AM
Cant only log in as root after user log-in. ADJenkins Linux - General 2 11-17-2004 04:18 PM
Log on as Root, or switch to Root, in MDK 9.1 - KDE 3.1.0 snorky Mandriva 3 09-01-2003 12:07 PM

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

All times are GMT -5. The time now is 04:00 AM.

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