LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 09-28-2007, 09:19 AM   #1
rompelstilchen
LQ Newbie
 
Registered: Nov 2006
Posts: 9

Rep: Reputation: 0
Bloody ROOT login !!!


Hi,

I have been working with diff linux os for a while
something that realy bothers me is that once i change to runlevet 5 (at boot), I can't login as root with KDE, gnome or TWE.
and more than that, i can't find a way to get back to text console to change my config/init files to start back in run level 3
I never found out how to get out of that pitfall

please can someone give me the trick ?
otherwise I'll have to reinstall ROCK linux, or even worst, MS Winshit

[edit: I've stopped Grub loading to go interactive with it and I did
kernel vmlinuz_2.6.... 3 (for runlevel 3)
the i did 'boot' and had a kernel panic :-( ]

sheers
Phil

- i still can't change my mind, after all these years, linux/unix config files are the worst crap ever invented !!!! -

Last edited by rompelstilchen; 09-28-2007 at 09:21 AM.
 
Old 09-28-2007, 09:32 AM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Your feelings on text-based config files are unfortunate, for you. Many of use find that it is much more agile and fast to configure something "The Way You want it" right off in a simple file, than messing with a GUI that doesn't necessarily offer the exact syntax or options you need.

Anyways, to change runlevels, simply open a console window and type 'su', enter the root password, and then use 'init #' or 'telinit #' or '/sbin/telinit #', where in each case, # is whatever runlevel you seek.

Alternately, you can hit CTRL-ALT-Fn where Fn is a function key from 1-6 (typically) which will take you to another virtual terminal, where you can login as root and change runlevels.
 
Old 09-28-2007, 09:37 AM   #3
rompelstilchen
LQ Newbie
 
Registered: Nov 2006
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by GrapefruiTgirl View Post
Your feelings on text-based config files are unfortunate, for you. Many of use find that it is much more agile and fast to configure something "The Way You want it" right off in a simple file, than messing with a GUI that doesn't necessarily offer the exact syntax or options you need.

Anyways, to change runlevels, simply open a console window and type 'su', enter the root password, and then use 'init #' or 'telinit #' or '/sbin/telinit #', where in each case, # is whatever runlevel you seek.

Alternately, you can hit CTRL-ALT-Fn where Fn is a function key from 1-6 (typically) which will take you to another virtual terminal, where you can login as root and change runlevels.
sorry, maybe i wasn't clear enough
I got the GUI login with no way to get a text console
what do i do ?
 
Old 09-28-2007, 09:41 AM   #4
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Same thing.. While at the GUI login, hit CTRL-ALT-Fn to get a virtual terminal, and login in the console.
 
Old 09-28-2007, 09:42 AM   #5
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
HAve you hit ctrl+alt+Fn? Did it work or give an error?
 
Old 09-28-2007, 12:58 PM   #6
nkd
Member
 
Registered: Oct 2006
Location: india
Distribution: fedora 8, ubuntu 10.10
Posts: 318

Rep: Reputation: 34
Why don't you try the single user mode.
On the grub screen navigate to the menu item which shows the linux kernel -> then press 'e' -> a new list opens up, move to the second option which gives the kernel parameters -> press 'e' again to edit the line -> go to the end of the line and type single -> press Enter to return to the kernel parameter list -> now press 'b' to continue booting.
After the usual uncompressing of kernel and mounting of the fs, the loading of device drivers will be done and then init drops you to a shell prompt.
You have root privileges and now just edit the /etc/inittab file with vi the way you want to boot up.
You can even change your root passwd by simply pressing passwd root here.
After you are done making changes , just continue with normal boot by entering init runlevelNo

hope this helps
nishith
 
Old 09-28-2007, 01:49 PM   #7
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
How about telinit 1 as root?
 
Old 09-28-2007, 04:19 PM   #8
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
In KDE, IIRC, the disabling of GUI root log in is an option that you can change in the "Login Manager" screen.

Do, however, note that GUI "root" logins can be quite dangerous to the health of your system. If you really need a "root" GUI, do the "Ctrl-Alt-F[1-6]" thing, log in as "root" and then try a startx command.
 
Old 09-28-2007, 05:30 PM   #9
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Quote:
Originally Posted by PTrenholme View Post
In KDE, IIRC, the disabling of GUI root log in is an option that you can change in the "Login Manager" screen.
FWIW, you do remember correctly, in part atleast. I'm not certain it can be done from the login manager, though maybe. But I did it my editing the config file, which **might have been** a .loginrc file.
 
Old 09-29-2007, 02:25 PM   #10
coolb
Member
 
Registered: Apr 2006
Location: Cape Town, South Africa
Distribution: Gentoo 2006.1(2.6.17-gentoo-r7)
Posts: 222

Rep: Reputation: 30
screw up for x config files, then x can't start automatically and you get droped a cli login prompt

(the screwing up can be done from a "recovery" type shell)
 
  


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
Adding root privaliges to user accounts or auto login as root Val-Ent Linux - General 15 03-02-2010 04:27 PM
wrong login shell prevent root login cefs99 Linux - Security 4 05-31-2006 08:28 AM
Gnome: Cannot login as default user, sends back to login, works as root Danny-T Linux - Newbie 2 05-27-2006 03:44 AM
I have re-installed MK 9.2 but cannot login as user, login as root works. bobinglis Mandriva 2 02-22-2004 11:39 AM
can only login as root? user login doesnt work..? anyone? hacking_4_b33r Linux - General 1 02-05-2004 11:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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