Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 09-30-2004, 03:48 PM   #1
LQ Newbie
Registered: Sep 2004
Posts: 15

Rep: Reputation: 0
How to log in as root user

I need to log in as root user to edit a file and i can't. If i go to switch user and do it in a new session all it does is open up YaST. So I can't get into KDE as a root user, how do i do this. (i am using SuSE by the way.
Old 09-30-2004, 03:53 PM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911
You open up a console (xterm, terminal, konsole ... )
and type

su -<enter>
followed by roots password.

Old 09-30-2004, 04:12 PM   #3
Registered: Sep 2004
Location: Barcelona
Distribution: Debian, FreeBSD, Gentoo
Posts: 586

Rep: Reputation: 30
or when you're using an X loader type root as username and your password in the password section. The gdm has to be configured to allow the root to log in, dont know about other x loaders.
Old 09-30-2004, 05:12 PM   #4
Registered: Sep 2004
Location: CT,USA
Distribution: Kubuntu 7.10
Posts: 53

Rep: Reputation: 15
sometimes u need to just restart the comp after u do wut tink said and it ussualy coms up + if u try to access yast it will prompt for root pass y dont u just put in there?
Old 09-30-2004, 05:35 PM   #5
Registered: Jul 2003
Location: Clinging to my guns and religion.
Posts: 683

Rep: Reputation: 63
And just because SuSE is lame you may need to use 'sux -' instead of just 'su -'.
(sorry still scratching my head as to why they even need sux)


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
Can not log in as root user backpacker Linux - Newbie 3 06-10-2005 04:21 AM
Cant only log in as root after user log-in. ADJenkins Linux - General 2 11-17-2004 05:18 PM
Log Out root Then Log In As Other User xtremcoder Linux - General 4 10-05-2004 12:01 AM
Root user can't log in Phaethar Linux - General 3 05-04-2004 11:05 AM
Can't log in as user, only as root trentk Linux - Newbie 5 02-28-2002 09:27 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:41 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration