LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-23-2005, 05:20 PM   #1
hussar
Member
 
Registered: Oct 2003
Location: Heidelberg, Germany
Distribution: Slackware 11.0; Kubuntu 6.06; OpenBSD 4.0; OS X 10.4.10
Posts: 345

Rep: Reputation: 30
Unhappy Accidentally removed shadow package


OK, I've done something fairly stupid. I was checking what packages were installed on my machine with slapt-get when I noticed that in addition to the shadow package from slack -current I also had the shadow package from an old install of dropline gnome installed. So, I told slapt-get to remove shadow.

Well, slapt-get removed the slack -current version of shadow first, but I didn't notice it until the removal was underway. Since I hadn't yet removed the dropline version of shadow, the one I really wanted to remove, I told slapt-get to remove shadow again, which it dutifully did.

Ahem, now I can't reinstall the shadow package from slack -current, because when I removed shadow, it took su with it. In fact, I can't log in at all anymore, because I need shadow to do it.

So, I am thinking that the only way out of this is to reboot the machine using my 10.2 CD and reinstall the shadow package from CD. Can I do that? And how?
 
Old 12-23-2005, 11:55 PM   #2
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 47
Quote:
Originally Posted by hussar

So, I am thinking that the only way out of this is to reboot the machine using my 10.2 CD and reinstall the shadow package from CD. Can I do that? And how?
yes you can.....boot your system up, mount the CD, find the DIR the shadow package is in and use the Slackware package tool feature..AS ROOT DO.....
Code:
installpkg shadow<version>.tgz
 
Old 12-24-2005, 01:45 AM   #3
hussar
Member
 
Registered: Oct 2003
Location: Heidelberg, Germany
Distribution: Slackware 11.0; Kubuntu 6.06; OpenBSD 4.0; OS X 10.4.10
Posts: 345

Original Poster
Rep: Reputation: 30
The shadow package includes /bin/login, so I will need to boot from the CD. Do I enter the boot option root=hda5 to get the CD to use my system as its root filesystem? If I do that, won't it be looking for /bin/login in the filesystem I just deleted it from?
 
Old 12-24-2005, 06:31 AM   #4
hussar
Member
 
Registered: Oct 2003
Location: Heidelberg, Germany
Distribution: Slackware 11.0; Kubuntu 6.06; OpenBSD 4.0; OS X 10.4.10
Posts: 345

Original Poster
Rep: Reputation: 30
Well, that went much easier than I had expected.

I booted from CD1 and did not enter any boot parameters. When the login prompt came up, I logged in as root, and used the following commands to mount the CD and the partition on my hard drive that contains my system's root filesystem:

mount -t iso9660 /dev/hdc /cdrom
mount -t reiserfs /dev/hda5 /mnt

Then I started pkgtool and selected the option to install from another directory. I navigated to /cdrom/slackware/a. As each of the packages was presented for install, I said no to each of the packages until I came to the shadow package. I said yes to an install of shadow, then quit pkgtool and rebooted. It worked like a charm, although I had to reset my user password for some reason. Could also be that I was just entering it incorrectly and resetting it seemed the easier way to go, since I could log in as root.

Thanks for your help and Merry Christmas!

Last edited by hussar; 12-24-2005 at 06:32 AM.
 
  


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
accidentally removed /dev/cdrom verbose Linux - General 18 10-26-2005 03:44 PM
I accidentally removed the netstat command ! markraem Solaris / OpenSolaris 6 10-03-2005 10:18 AM
'Accidentally' removed XFree86-libs, how can I bring back the desktop? freddan Fedora 3 03-22-2004 08:56 AM
newbie - removed partition accidentally kristalchimera Debian 6 07-12-2003 11:36 PM
I accidentally removed lilo from my bootsector. Grafbak Linux - Newbie 2 06-20-2003 03:22 PM


All times are GMT -5. The time now is 05:42 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