Panic - Re: libc5-libc6 Upgrade - Problem logging in with username in NIS

1998-01-14 Thread Sudhakar Chandrasekharan
Nils Rennebarth wrote:
 On Tue, Jan 13, 1998 at 09:26:27PM -0800, Sudhakar Chandrasekharan wrote:
  After the upgrade, I am unable to log into my machine with a username in
  YP.
  $ cat /etc/nsswitch.conf
  passwd: db files
  group:  db files
  shadow: db files
 For these three replace db files with compat and you should be done.
 
 And, yes, nsswitch.conf is the place to look for.

How should it read?  The HOWTO mentions this but does not give an
example.  Could you give me an example.

Also, I am in Panic Mode now.  I have changed some stuff in
nsswitch.conf [possibly adding nis to the passed entry or something like
that.  nsswitch.conf did not have a man page].  I got back to work this
morning and tried to log in as root and login failed.  Could not log in
with a username from NIS either.  I decided (unwisely, it seems) to
reboot.  Upon reboot the various daemons in /etc/init.d/ are started and
the machine seems (I say seems because I did not wait long enough to see
if it really does) to hang while starting postgres (under /usr/local).

As I see it, here are my options -

* Try to see if the boot sequence is really hanging by giving it enouch
time.  If it manages to proceed with the rest of the boot sequence and
gets me into the login prompt, I have to try my luck with loggin in as
root.

* If I am unable to log in as root, how do I fix what I did to
nsswitch.conf?  I was sensible enough to backup the old file before
making the changes.  I am unable to locate my emergency disk (or
whatever it is called).  Can I use the Debian 1.3 distribution's
installation boot disks, mount /dev/sdb3 as root and fix the problem and
then try rebooting with my regular custom boot disk?  How?

* Ideally, I'd prefer booting up into NT and being able to access the
ext2 partition.  I remember reading somewhere that there is a device
driver for reading / writing into an ext2 partition for NT.

Help me Obi Wan.  You are my last hope. ;-)

Sudhakar


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: Panic - Re: libc5-libc6 Upgrade - Problem logging in with username in NIS

1998-01-14 Thread Joost Kooij
On Wed, 14 Jan 1998, Sudhakar Chandrasekharan wrote:

 Also, I am in Panic Mode now. 


 * If I am unable to log in as root, how do I fix what I did to
 nsswitch.conf?  I was sensible enough to backup the old file before
 making the changes.  I am unable to locate my emergency disk (or
 whatever it is called).  Can I use the Debian 1.3 distribution's
 installation boot disks, mount /dev/sdb3 as root and fix the problem and
 then try rebooting with my regular custom boot disk?  How?

Yes, this is The Universal Way To Do It. It also explains why people
wonder Why did they call the installation bootdisk `rescue disk'?

Type at the lilo prompt linux root=/dev/where your root filesystem is
If that doesn't work, try linux emergency root=/dev/blah. Or if even
that fails, just hit enter and goto the second virtual console with alt-F2
and mount the /dev/blah on /mnt. You don't get to use emacs to edit
the fsck'ed conffiles then though.

 * Ideally, I'd prefer booting up into NT and being able to access the
 ext2 partition.  I remember reading somewhere that there is a device
 driver for reading / writing into an ext2 partition for NT.

AFAIK it's still rather beta and read-only.

Good luck,


Joost


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: Panic - Re: libc5-libc6 Upgrade - Problem logging in with username in NIS

1998-01-14 Thread Nils Rennebarth
On Wed, Jan 14, 1998 at 09:18:55AM -0800, Sudhakar Chandrasekharan wrote:
 Nils Rennebarth wrote:
   passwd: db files
   group:  db files
   shadow: db files
  For these three replace db files with compat and you should be done.
 How should it read?  The HOWTO mentions this but does not give an
 example.  Could you give me an example.
I tried to be clear but... anyway, my /etc/nsswitch.conf looks like this:

#---cut here to damage your monitor--
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
#

passwd: compat
group:  compat
shadow: compat

hosts:  files dns
networks:   files dns

protocols:  db files
services:   db files
ethers: db files
rpc:db files

netgroup:   nis db files
#

As for documentation try the command
  info libc
then look at the section
* Name Service Switch

(You need the debian package libc6-doc for this. Yes, this is not obvious.)

Nils

--
*-*
| Quotes from the net:  L Linus Torvalds, W Winfried Truemper   |
| Lthis is the special easter release of linux, more mundanely called 1.3.84 |
| WUmh, oh. What do you mean by special easter release?. Will it quit  |
* Wworking today and rise on easter? *


pgpANOqJqG8Al.pgp
Description: PGP signature


Re: Panic - Re: libc5-libc6 Upgrade - Problem logging in with username in NIS

1998-01-14 Thread Miquel van Smoorenburg
In article [EMAIL PROTECTED],
Nils Rennebarth [EMAIL PROTECTED] wrote:
As for documentation try the command
  info libc
then look at the section
* Name Service Switch

Well you could also just read the /usr/doc/nis/nis.debian.howto.gz
file which explains everything in detail.

Mike.
-- 
 Miquel van Smoorenburg |  The dyslexic, agnostic, insomniac lay in his bed
[EMAIL PROTECTED]  |  awake all night wondering if there is a doG


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: Panic - Re: libc5-libc6 Upgrade - Problem logging in with username in NIS

1998-01-14 Thread Sudhakar Chandrasekharan
Nils Rennebarth wrote:
 I tried to be clear but... anyway, my /etc/nsswitch.conf looks like this:
 
 #---cut here to damage your monitor--
 # /etc/nsswitch.conf
 #
 # Example configuration of GNU Name Service Switch functionality.
 #
 
 passwd: compat
 group:  compat
 shadow: compat
 
 hosts:  files dns
 networks:   files dns
 
 protocols:  db files
 services:   db files
 ethers: db files
 rpc:db files
 
 netgroup:   nis db files
 #

Doh!  Rereading what you had written, it makes sense.  What does compat
give me as opposed to db files nis?  I don't know if this is documented
in the info files.

 (You need the debian package libc6-doc for this. Yes, this is not obvious.)

Oooow!  That hurt. ;-)


Thanks again for all the folks who helped.  I think hamm is quite
stable.  If you are contemplating an upgrade but have held back because
of stability concerns, I suggest that you read the mini-HOWTO, grab the
upgrade script and don't screw up (like I did).

S.
-- 
Programming in X Windows is like trying to find the square root of
 pi using roman numerals
Sudhakar C13n   (650) 937-2354 (O)
International Websites Engineer (650) 940-1896 (H)
 http://people.netscape.com/thaths/


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .