LinuxQuestions.org
Visit Jeremy's Blog.
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 12-12-2005, 10:50 PM   #1
345am
LQ Newbie
 
Registered: Dec 2005
Location: columbus ohio US
Distribution: zenwalk (almost)
Posts: 13

Rep: Reputation: 0
zenwalk-username/pswd confusion


#1 - i know next to nothing about linux.

trying to deal with the ebay seller, but this may be faster.
bought a used 750mhz cpu on ebay ($25) with linux loaded
as a learning toy.

it has "zenwalk" loaded & boots up to username screen.
ebay seller is having trouble finding username/pswd.

any way to bypass/clear/reset username/psswd?
 
Old 12-12-2005, 11:09 PM   #2
liamoboyle
Member
 
Registered: Mar 2004
Location: Wellington, New Zealand
Distribution: Debian
Posts: 127

Rep: Reputation: 15
What boot manager is installed? There are two ways around this, and it depends how tightly the system has been secured.

The basic idea is to pass the init=/bin/sh parameter to the kernel before it is booted - this boots up in a single user mode, to a root prompt. You can then use passwd to change the root password (and any others that you like).

If you're using grub, this has a much more detailed set of instructions at the following link. It talks about libranet, but the idea is the same for all distributions.

http://forum.libranet.com/viewtopic....33bf7269b3f768

If you're using lilo, this link should help you instead - http://www.linuxgazette.com/node/4181

If the system is locked down so that you can't edit the boot parameters w/out a password, you'll need to use a boot disk to get around it. Post again if that's the case and I'll give you a hand.
 
Old 12-12-2005, 11:10 PM   #3
liamoboyle
Member
 
Registered: Mar 2004
Location: Wellington, New Zealand
Distribution: Debian
Posts: 127

Rep: Reputation: 15
Oh, if no boot menu shows up while you're booting, you're probably using lilo and hitting the shift button as you boot up should get you to the menu
 
Old 12-12-2005, 11:47 PM   #4
345am
LQ Newbie
 
Registered: Dec 2005
Location: columbus ohio US
Distribution: zenwalk (almost)
Posts: 13

Original Poster
Rep: Reputation: 0
thank you for your reply.
i do see a "Lilo" fly by on bootup. however, holding "shift" on bootup doesn't get me anywhere different than not holding shift. just to the username screen.
?
 
Old 12-13-2005, 12:54 AM   #5
liamoboyle
Member
 
Registered: Mar 2004
Location: Wellington, New Zealand
Distribution: Debian
Posts: 127

Rep: Reputation: 15
I suspect you need to hit it when lilo shows up on screen; holding it down beforehand won't work.
 
Old 12-13-2005, 10:49 AM   #6
345am
LQ Newbie
 
Registered: Dec 2005
Location: columbus ohio US
Distribution: zenwalk (almost)
Posts: 13

Original Poster
Rep: Reputation: 0
lilo flies by way too fast to hit "shift" in time. slackplanet says to start with Smart Boot Manager . ?
 
Old 12-13-2005, 03:41 PM   #7
liamoboyle
Member
 
Registered: Mar 2004
Location: Wellington, New Zealand
Distribution: Debian
Posts: 127

Rep: Reputation: 15
My apologies, it's been a while since using lilo - you need to hit the tab key, not the shift. If you just sit there tapping it pretty quickly as the boot goes along, you're bound to hit it while lilo is up.
 
Old 12-14-2005, 05:59 PM   #8
345am
LQ Newbie
 
Registered: Dec 2005
Location: columbus ohio US
Distribution: zenwalk (almost)
Posts: 13

Original Poster
Rep: Reputation: 0
thanks liamoboyle for your suggestions.
[tab] key on lilo/zenwalk load gets to command line

Zenwalk
boot:

nothing i can do there gets me anywhere except statement saying
"no such image [Tab] shows a list"
which [tab] does not. [tab] just reitterates the "Zenwalk/boot:" command line
and of course the command "zenwalk" continues boot & loads zenwalk.

box BIOS is set to:
boot drive 1 floppy
boot drive 2 CD-ROM
boot drive 3 HDD0

ebay seller is sending me burned cd-rom of zenwalk 1.3
safe to say that cd itself will boot to load zenwalk?

frustrating.
but in a way good, as i'm learning linux more from the ground, up.
 
Old 12-14-2005, 06:48 PM   #9
liamoboyle
Member
 
Registered: Mar 2004
Location: Wellington, New Zealand
Distribution: Debian
Posts: 127

Rep: Reputation: 15
Yeah, there can be a steep learning curve. Tab is showing you the list - it's just that there is only one kernel there to boot, the zenwalk one. Where you get the boot: prompt try entering something like this -

boot: zenwalk init=/bin/sh

With a little luck, this will get you in - the links above should tell you what to do from there. Something along the lines of (off the top of my head)

mout -o remount,rw /
passwd

If you're getting a bootable CD, you might as well have a look around and consider what distribution you want to go with and just install that. I personally use Debian, but it isn't traditionally known as being very user friendly, although with the modern Gnome/KDE setup, you can do most configuration with GUI tools if that's the way you want it.
 
Old 12-14-2005, 07:10 PM   #10
345am
LQ Newbie
 
Registered: Dec 2005
Location: columbus ohio US
Distribution: zenwalk (almost)
Posts: 13

Original Poster
Rep: Reputation: 0
interesting. i tried
boot: zenwalk init=/bin/sh
and zenwalk appeared to load as the "zenwalk" command or [enter] alone would do.
boot up script now stops at
sh-3.00#
and every command tried yields
"command not found"
?
 
Old 12-15-2005, 02:40 AM   #11
liamoboyle
Member
 
Registered: Mar 2004
Location: Wellington, New Zealand
Distribution: Debian
Posts: 127

Rep: Reputation: 15
OK, we're making progress - you're logged in as root, but without the necessary environment variables set up. Can you show me the output of

echo $PATH

and

/sbin/mount

and we can progress
 
Old 12-15-2005, 08:58 AM   #12
345am
LQ Newbie
 
Registered: Dec 2005
Location: columbus ohio US
Distribution: zenwalk (almost)
Posts: 13

Original Poster
Rep: Reputation: 0
both of:
echo $PATH

and

/sbin/mount

give "No such image. [Tab] shows a list"
?
 
Old 12-15-2005, 09:07 AM   #13
345am
LQ Newbie
 
Registered: Dec 2005
Location: columbus ohio US
Distribution: zenwalk (almost)
Posts: 13

Original Poster
Rep: Reputation: 0
oops!
forgot to say, mistakenly tried previous from "boot:" command line.
moving on with "zenwalk init=/bin/sh" command to "sh-3.00#" command line shows,

"echo $PATH" gives /usr/gnu/bin:/usr/local/bin:/bin:/usr/bin:.

comes back to "sh-3.00#"

/sbin/mount command yields

/dev/hda1 on / type reiser4 (rw,noatime)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)

and returns to "sh-3.00#" command line.

thanks for your patience.

dave r
 
Old 12-15-2005, 09:14 AM   #14
345am
LQ Newbie
 
Registered: Dec 2005
Location: columbus ohio US
Distribution: zenwalk (almost)
Posts: 13

Original Poster
Rep: Reputation: 0
further "dir" command at sh-3.00# gives
bin boot dev etc home lib mnt opt proc root sbin sys tmp usr var

which seems normal eh
 
Old 12-15-2005, 02:25 PM   #15
liamoboyle
Member
 
Registered: Mar 2004
Location: Wellington, New Zealand
Distribution: Debian
Posts: 127

Rep: Reputation: 15
ok, what you want to do at the sh-3.00# prompt is

export PATH=$PATH:/sbin/:/usr/sbin/
mount -o remount,rw /
passwd

That should hopefully let you change the root password!
 
  


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
Zenwalk, anyone using this daily? Fritz_Monroe Slackware 16 12-18-2005 11:55 AM
Vector or Zenwalk? Erik_the_Red Slackware 12 09-06-2005 12:19 AM
Zenwalk Opinions flebber Linux - Software 3 08-27-2005 12:49 AM
Slackware 10.1 setup freezes when selecting root pswd Add1Sun Slackware 3 04-10-2005 08:57 AM
Mandrake Linux Root Pswd/Login HELP ElZora Linux - Security 5 12-26-2002 02:47 PM


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