SlackwareThis 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Slackware 11.0; Kubuntu 6.06; OpenBSD 4.0; OS X 10.4.10
Posts: 345
Rep:
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?
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.....
Distribution: Slackware 11.0; Kubuntu 6.06; OpenBSD 4.0; OS X 10.4.10
Posts: 345
Original Poster
Rep:
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?
Distribution: Slackware 11.0; Kubuntu 6.06; OpenBSD 4.0; OS X 10.4.10
Posts: 345
Original Poster
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.