LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-31-2008, 12:58 AM   #1
wheelman
LQ Newbie
 
Registered: Jul 2008
Posts: 8

Rep: Reputation: 0
Slackware login problems


Hello i just acquired a Adm k6 with Slackware 11 installed , BTU iam not able to log-in . I don't have a user name or lo-gin or password ,any ideas I was going reinstall something else but i cant get it boot from the CD .wtf
 
Old 07-31-2008, 01:25 AM   #2
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
You need to get in runlevel 1 first. Assuming that your box uses Lilo (the standard bootloader for Slackware):

Quote:
It can be entered when the system boots by giving the word "single" or "emergency" on the kernel command line. This can be done at the LILO prompt after pressing the <TAB> key and entering your selection with the word "single" after it. The kernel sends the command line to the init program and it doesn't use the default run level. The kernel command line entry is dependent on how you boot the system.
Entering single user mode is necessary when a damaged filesystem needs repaired. You can run the program fsck to check the filesystem when the damaged partition is not mounted or running.
Source:
http://www.comptechdoc.org/os/linux/...ux_uglilo.html

Hopefully the previous owner has left you a second or so to press <tab>

After that you can search LQ and find how to reset passwords (I think you can fix it by modifying /etc/passwd but I'm not 100% sure).

The CD player issue does not have to do with Slackware. Did you set the BIOS to boot from CD first? Are you sure it's not broken (try in other machine)? Are you sure the CDs that you used are OK (tested in other system)?

Last edited by Wim Sturkenboom; 07-31-2008 at 01:29 AM. Reason: Added ref to /etc/passwd
 
Old 07-31-2008, 02:20 AM   #3
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL
Distribution: Funtoo
Posts: 6,926

Rep: Reputation: 128Reputation: 128
When you get in as root, enter "passwd" and set a new one.
 
Old 07-31-2008, 05:10 AM   #4
storkus
Member
 
Registered: Jun 2008
Location: Phoenix, Arizona, USA
Distribution: Slackware
Posts: 326

Rep: Reputation: 49
For x86 Linux installations, there's an easy way if the drive isn't encrypted: just boot up on a live CD and mount the partition /etc is located in. Edit /etc/passwd and /etc/shadow to remove the root passwords, reboot, and you should be good to go.

If everything IS encrypted, though, you're screwed. (AFAIK, anyway.)

BTW, Slackware 11 is outdated. If you can, once you save all the relevant info, you really should upgrade it to 12.1. Also, a bunch of vulnerabilities were announced in July, which is past the release date of 12.1, so make sure to get all the patches as well (I need to do this myself yet). Because there are so many changes, you should seriously consider I clean install (all of my Slackware upgrades are clean installs after saving necessary stuff in /etc and perhaps elsewhere).

Mike
 
Old 07-31-2008, 05:15 AM   #5
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
Quote:
Originally Posted by storkus View Post
For x86 Linux installations, there's an easy way if the drive isn't encrypted: just boot up on a live CD and mount the partition /etc is located in. Edit /etc/passwd and /etc/shadow to remove the root passwords, reboot, and you should be good to go.
wheelman is having trouble booting from CD
 
Old 07-31-2008, 06:23 AM   #6
storkus
Member
 
Registered: Jun 2008
Location: Phoenix, Arizona, USA
Distribution: Slackware
Posts: 326

Rep: Reputation: 49
Sigh, that's the 2nd time I've missed something like that in as many days. But it's 3:20am here at the moment, so forgive me.

Not being able to boot from the CD not necessarily a major problem. In that case, if you have another machine that IS working and is running Linux (whether on hard drive or live CD), pull the drive from the broken machine and put it in the other machine in place of its hard drive, then boot up and do what I suggested before. As I said, as long as the drive isn't encrypted this is just as easy to do (except for moving the drive back and forth).

If you don't have another computer, though, I think you may be SOL.

Mike
 
Old 07-31-2008, 09:37 AM   #7
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
Quote:
Originally Posted by storkus View Post
BTW, Slackware 11 is outdated.
Slackware 11.0 is not necessarily outdated. It's still being maintained and security patches are still being released. Patrick Volkerding doesn't kill off support like some other distributions, I still see patches come across dating back to 8.0 still at times.

It was only about 5 or 6 months ago I upgraded my own servers from 10.1 to 11.0. Unless you want the bleeding edge packages and enhancements, 11.0 is still fairly new.

Last edited by trickykid; 07-31-2008 at 09:38 AM.
 
Old 07-31-2008, 03:03 PM   #8
wheelman
LQ Newbie
 
Registered: Jul 2008
Posts: 8

Original Poster
Rep: Reputation: 0
i give up

I emailed the guy who I bought it from (20.00$)he said login root and slackeware@11# didnt work .I am new at this ,only one install under my belt which was for my mother inlaw went fine ,the latest ubuntu I have only had imacs but was very impressed . any way thanks for the advice. THE WHEELMAN
 
Old 07-31-2008, 03:38 PM   #9
smoked kipper
Member
 
Registered: May 2008
Location: UK
Distribution: Slackware,Slamd64
Posts: 81

Rep: Reputation: 15
But single user mode still requires the root password does it not?

If you can add command line arguments at the LILO prompt (i.e. LILO is not "restricted"), it is simple, add init=/bin/sh to the command line and it will boot you straight to a shell. remount / read-write, change the root password, remount read-only, and exec /sbin/init.

Thus, at LILO prompt (assuming kernel is called "linux"):

Code:
linux init=/bin/sh
and once you have a shell,

Code:
remount -o remount,rw /
passwd
remount -o remount,ro /
exec /sbin/init
No need to reboot.
 
Old 07-31-2008, 04:12 PM   #10
wheelman
LQ Newbie
 
Registered: Jul 2008
Posts: 8

Original Poster
Rep: Reputation: 0
I Still Dont Get It

Thanks For Your Help
 
Old 07-31-2008, 07:15 PM   #11
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL
Distribution: Funtoo
Posts: 6,926

Rep: Reputation: 128Reputation: 128
wheelman,

Can you now boot with a CD? Did you check the BIOS settings?

If so, since you don't need any data previously stored on the
computer, boot with Slackware-12.1 and do a fresh install. And ...

Read the documents on the install CD first.
 
Old 07-31-2008, 10:29 PM   #12
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
Normally when a PC boots up you get a few seconds to get into the BIOS, normally by pressing a specific key. Normally it'll tell you which one.
For example, on my system the msg is at the bottom of the screen and tells me to use the DEL key to get into the BIOS.
If you can't see a msg anywhere, try DEL, ESC, any of the F keys, or google your HW/BIOS name.
 
Old 08-02-2008, 12:10 PM   #13
wheelman
LQ Newbie
 
Registered: Jul 2008
Posts: 8

Original Poster
Rep: Reputation: 0
what to do when i get to

root@slackware11:#11
 
Old 08-03-2008, 08:28 PM   #14
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL
Distribution: Funtoo
Posts: 6,926

Rep: Reputation: 128Reputation: 128
How did you get to that prompt?
 
Old 08-04-2008, 12:51 AM   #15
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
If that is after getting into runlevel 1 and you want to reset the password, see post #3 by Bruce.

If that's after a normal boot and login, create a user (e.g. wheelman) with the adduser command so you do not always have to work as root. And check /etc/passwd for existing (non-system) users (with uid>1000) and disable them with the passwd command (-l option) or remove them completely (command userdel and the -r option).

And next it depends on what you want but it's basically try and learn (including asking questions here if you have problems). There is a Slackbook as well that you can find on the Slackware site.

Note:
If you decide to hook it up to the internet, I suggest that you do a fresh install as you don't know what the previous owner has left (it might be a spam machine or some nice utilities might have been installed to log keystrokes for banking etc).
 
  


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
Slackware 12 can't login driton Slackware 10 07-19-2007 09:31 AM
Login problems with X.org 6.9.0 with kdm, on Slackware 10.2 komunitae Linux - Software 1 01-17-2006 08:50 PM
Login Screen and Login Photo problems? host Linux - Software 0 02-21-2005 07:56 AM
KDE login problems for users on Slackware 9.1 fishbulb Slackware 1 11-26-2003 04:51 AM
SLackware 9.0 login problems shenlong Slackware 11 04-05-2003 10:07 AM


All times are GMT -5. The time now is 04:14 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration