Slackware This Forum is for the discussion of Slackware Linux.
|
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
03-28-2003, 12:13 PM
|
#1
|
|
Member
Registered: Dec 2002
Location: IL
Distribution: NetBSD, Slackware, Gentoo, Debian, FreeBSD
Posts: 444
Rep:
|
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
|
|
|
|
03-28-2003, 01:23 PM
|
#2
|
|
Senior Member
Registered: Mar 2003
Location: Pittsburgh, PA
Distribution: Gentoo / NetBSD
Posts: 1,251
Rep:
|
could you just use 'telinit 1' to move the computer into single-user mode?
|
|
|
|
03-28-2003, 02:47 PM
|
#3
|
|
Member
Registered: Mar 2003
Distribution: Debian
Posts: 158
Rep:
|
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.
|
|
|
|
03-28-2003, 05:46 PM
|
#4
|
|
Member
Registered: Dec 2002
Location: IL
Distribution: NetBSD, Slackware, Gentoo, Debian, FreeBSD
Posts: 444
Original Poster
Rep:
|
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.
|
|
|
|
03-28-2003, 06:00 PM
|
#5
|
|
Member
Registered: Feb 2003
Distribution: Debian
Posts: 797
Rep:
|
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.
; )
|
|
|
|
03-29-2003, 09:52 AM
|
#6
|
|
Member
Registered: Mar 2003
Distribution: Debian
Posts: 158
Rep:
|
at the LILO prompt type "Linux init=/bin/bash"
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:44 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|