I feel confident with user-type actions in Linux, so
my 'Xmas project' was to install the smallest number
of RPMs to get a working (if limited) system to give
me some technical experience. I am using TurboLinux
6.1.
I created a blank partition, mounted it, created
directories, etc, and installed rpms using 'rpm -i
--root /mnt/mini/ <filename.rpm>. I seem to have files
that match my existing installation (well, those that
are there). I also changed LILO.
Now, if I 'cat /mnt/mini/etc/passwd', I get
'root::0:0:root:/root:/bin/bash' (which means no
password for root?). Using 'chroot /mnt/mini/ passwd
root' gives
Changing password for user root
New UNIX password: ...
Retype new UNIX password: ...
PAM_pwdb[332]: password for (root/0) changed by
((null)/0)
passwd: all authentication tokens updated
successfully
However, 'cat /mnt/mini/etc/passwd', still gives the
same line for root. There are no messages in
/var/log/messages or /mnt/mini/var/log/messages.
If I now reboot, using 'LILO boot: mini', I get a
startup and then a login request. Using root with no
password, or the password changed above fails (Login
incorrect). Ctrl-Alt-Del reboots. Using the main
system gives a /mnt/mini/var/log/message entry of
PAM_pwdb[72]: get passwd; pwdb: structure is no longer
valid
login[72]: FAILED LOGIN 1 FROM (null) FOR root,
Authentication service cannot retrieve authentication
info.
If I now reboot, using 'LILO boot: mini single', I get
a startup and a 'sh-2.03#' prompt. If I try 'passwd
root' (as above) the passwd file still stays the same.
There are no entries in /var/log/messages.
I have tried to find info, including www.google.com.
The latter shows some questions posted on the net, but
I can't find one with an answer.
Can anyone suggest where my problem lies, before I
resort to looking at the source code for pwdb? I feel
so close, I don't want to give up.
Simon
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
--------------------------------------------------------------------
http://www.lug.org.uk http://www.linuxportal.co.uk
http://www.linuxjob.co.uk http://www.linuxshop.co.uk
--------------------------------------------------------------------
This archive was generated by hypermail 2.1.3 : Sat 12 Jan 2002 - 19:13:55 GMT