LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 03-28-2003, 12:13 PM   #1
wr3ck3d
Member
 
Registered: Dec 2002
Location: IL
Distribution: NetBSD, Slackware, Gentoo, Debian, FreeBSD
Posts: 444

Rep: Reputation: 31
single user mode ?


I have read that if you enter 'linux single' at the lilo prompt it will automatically log you in and you will be root. I tried this and it still gives me a login prompt. If I enter root, I still need a pass. The only difference is that once i do log in (with my account or root using passwords for both) it says

wr3ck3d@(none):$

I can also switch about tty's......So what am I doing wrong??? Does this not work with Slackware?? I also tried 'linux -s" and got same results.

thanks
 
Old 03-28-2003, 01:23 PM   #2
jpbarto
Senior Member
 
Registered: Mar 2003
Location: Pittsburgh, PA
Distribution: Gentoo / NetBSD
Posts: 1,251

Rep: Reputation: 45
could you just use 'telinit 1' to move the computer into single-user mode?
 
Old 03-28-2003, 02:47 PM   #3
bahamat
Member
 
Registered: Mar 2003
Distribution: Debian
Posts: 158

Rep: Reputation: 30
Newer versions of init will require the root password before passing to a shell in single user mode. Otherwise it'd be much too easy to to crack a box you had physical access to.

You can get around this by issuing init=/bin/bash at your boot prompt (doh! so much for security!).

To prevent the bash trick, in lilo.conf set all of your boot images to restricted (then you have to provide a password to alter boot params) or passworded (where you have to use a password to boot that image, and no changes allowed).

Last edited by bahamat; 03-28-2003 at 02:48 PM.
 
Old 03-28-2003, 05:46 PM   #4
wr3ck3d
Member
 
Registered: Dec 2002
Location: IL
Distribution: NetBSD, Slackware, Gentoo, Debian, FreeBSD
Posts: 444

Original Poster
Rep: Reputation: 31
So instead of 'linux single' they changed it to 'init=/bin/bash'???

I'm not worried about anyone breaking into my computer at my house.
 
Old 03-28-2003, 06:00 PM   #5
cuckoopint
Member
 
Registered: Feb 2003
Distribution: Debian
Posts: 797

Rep: Reputation: 30
Quote:
I have read that if you enter 'linux single' at the lilo prompt it will automatically log you in and you will be root. I tried this and it still gives me a login prompt. If I enter root, I still need a pass. The only difference is that once i do log in (with my account or root using passwords for both) it says
check your /etc/inittab. This file is parsed even for single user boot, and I'm guessing your single user boot is still setup to login.
For example, my inittab has a

# What to do in single-user mode.

how conventient.
; )
 
Old 03-29-2003, 09:52 AM   #6
bahamat
Member
 
Registered: Mar 2003
Distribution: Debian
Posts: 158

Rep: Reputation: 30
at the LILO prompt type "Linux init=/bin/bash"
 
  


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
single user mode while booting ravikumarG AIX 4 08-17-2005 01:57 AM
single user mode... navaladi Mandriva 2 12-26-2004 02:41 AM
Single user mode with Lilo mijohnst Linux - General 1 12-08-2004 02:08 PM
RedHat 9 SIngle-User Mode sangjin Linux - Newbie 2 08-25-2003 10:37 AM
What is single-user mode?? rbanonuevo Linux - Newbie 4 01-28-2002 12:17 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration