LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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-22-2009, 11:22 PM   #1
constancebwn
LQ Newbie
 
Registered: Aug 2009
Posts: 8

Rep: Reputation: 0
Exclamation how do i activate root?


I was told to login using my root, but from where i am at i can't open gedit and allow my root to be used. if that makes any since.
 
Old 08-22-2009, 11:30 PM   #2
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
What distro are you using? and what are you trying to use root for? If you are trying from say xterm or anyother terminal it would be
Code:
su -
then put in roots password.

If you are using Ubuntu then you would just use sudo instead.
 
Old 08-22-2009, 11:37 PM   #3
constancebwn
LQ Newbie
 
Registered: Aug 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Exclamation

Quote:
Originally Posted by jstephens84 View Post
What distro are you using? and what are you trying to use root for? If you are trying from say xterm or anyother terminal it would be
Code:
su -
then put in roots password.

If you are using Ubuntu then you would just use sudo instead.

something went wrong with my login, saying that my seccion lasted only 10 secounds and that something was installed wrong. but it won't let me log into my name, or my root? what do i need to do about fixing this without loosing everything on my computer by re-installing ubuntu?
 
Old 08-22-2009, 11:43 PM   #4
rm -rf *
LQ Newbie
 
Registered: Nov 2008
Distribution: Slackware 12.1, Arch.
Posts: 8

Rep: Reputation: 1
You would want to switch to a virtual terminal and fix it from the command line, ctrl+alt F2 to get to a terminal, log in fix whatever error occured, then reboot, or restart xorg.
 
Old 08-22-2009, 11:47 PM   #5
constancebwn
LQ Newbie
 
Registered: Aug 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by rm -rf * View Post
You would want to switch to a virtual terminal and fix it from the command line, ctrl+alt F2 to get to a terminal, log in fix whatever error occured, then reboot, or restart xorg.
how do i know what error to correct? or where to even start... ugg.... i wish i hadn't even tried to update the stupid thing, this never would have happened.
 
Old 08-22-2009, 11:49 PM   #6
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
It isn't clear exactly what the problem is, or what you need to do about it. Please do the following:
Quote:
1. Log in to a text session:
Hold down the <Ctl-Alt-F2> keys. This should give you a text-mode login.

2. Log in as your normal username (*not* root).

3. Try typing "su - root". See if this works.
If not, please:

4. Write down the exact error message, and try typing: "sudo".
If this doesn't work either, please write down the exact error message.

5. Try to remember the exact error message you were getting in the first place.

6. Post back here to LQ
 
Old 08-22-2009, 11:50 PM   #7
rm -rf *
LQ Newbie
 
Registered: Nov 2008
Distribution: Slackware 12.1, Arch.
Posts: 8

Rep: Reputation: 1
I'd assume since gnome is crashing
Code:
cat /var/logs/Xorg.0.log |grep EE
 
Old 08-22-2009, 11:53 PM   #8
constancebwn
LQ Newbie
 
Registered: Aug 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by paulsm4 View Post
It isn't clear exactly what the problem is, or what you need to do about it. Please do the following:

okay this is what the error message says when i boot up the computer. it comes up to my login screen an says
" your session only lasted more then 10 secounds. if you have not logged out, this could mean that there is some installation pronblem or that you may be out of diskspace. try logging in with one of the failsafe scessions to see it you can fix this problem"
 
Old 08-23-2009, 12:01 AM   #9
rm -rf *
LQ Newbie
 
Registered: Nov 2008
Distribution: Slackware 12.1, Arch.
Posts: 8

Rep: Reputation: 1
Well to eliminate one possibility you can log in via a virtual terminal right? If so
Code:
df -Th
To check disk space. Then I would look through the xorg log to check for errors.
 
Old 08-23-2009, 01:04 AM   #10
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Ah - things are becoming a bit clearer.

Your *Linux* is probably OK ... but there seems to be something wrong with X Windows and/or your desktop.

Possibly permissions, possibly configuration.

Please look here:
http://www.linuxquestions.org/questi...nds...-386010/

Please post back your exact version of Ubuntu, and any other details. For example:

Quote:
df -Th
<= Are any filesystems nearing 100% full (probably not)
Quote:
cat /var/logs/Xorg.0.log |grep EE|less
<= What are the first few errors X Windows is giving you (if any)?
Quote:
chmod 1777 /tmp
<= Do this as "root" from your terminal session, and try restarting Ubuntu again

Last edited by paulsm4; 08-23-2009 at 01:08 AM.
 
Old 08-23-2009, 01:28 AM   #11
WillingToLikeLinux
Member
 
Registered: Sep 2008
Posts: 90

Rep: Reputation: 16
Here's something curious to think about: how do you log off from the terminal after puting su - and your password?
 
Old 08-23-2009, 08:06 PM   #12
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,362

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
The logout cmd is

exit


too easy
 
Old 08-23-2009, 10:32 PM   #13
windtalker10
Member
 
Registered: Nov 2007
Location: Kentucky
Distribution: Slackware13.1
Posts: 214

Rep: Reputation: 38
Quote:
Originally Posted by WillingToLikeLinux View Post
Here's something curious to think about: how do you log off from the terminal after puting su - and your password?
1.] exit - as was already stated

or

2.] reboot [if you're root]

or

3.] halt [if you're root]
 
  


Reply



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
how to activate the KDE mehdiee Linux - Newbie 3 08-18-2009 05:23 AM
Can't activate my vg funkyflash Linux - Server 1 04-29-2009 12:42 PM
I can't activate (i'mean activate) my wireless card Mardrus Linux - Newbie 5 05-04-2008 06:35 AM
eth0 will not activate reichhorn Linux - Networking 16 05-14-2004 01:04 AM
root files: create as root:root or root:wheel? pcass Linux - Security 1 02-07-2004 04:14 PM

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

All times are GMT -5. The time now is 07: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
Open Source Consulting | Domain Registration