Re: console login fails
On Fri, Dec 19, 2003 at 09:29:46AM -0600, Kent West wrote:
>
> Can you login as a different user? As root?
No. (I can login to X, or via ssh though).
> Are any of your partitions mounted read-only?
/dev/hda10 on / type ext3 (rw,errors=remount-ro)
> Have you fsck'd your partitions lately?
fsck has been reporting them clean. However
e2fsck.ext3 -c /dev/hda10
from Knoppix 3.2 reported that the fs had been modified, but gave
little information. I'm sorry I've lost the output, but it didn't
look strange to me. It hasn't fixed the problem (but see below).
> What are the permissions on './bin/login'?
-rw-rw-rw- 1 root root 0 Oct 9 09:36 /bin/login
I think I see the problem here. It's empty. :-} So getty is
timing out.
However if I try to move this file it gives a permission denied:
root:/bin# mv login login-tmp
mv: cannot move `login' to `login-tmp': Operation not permitted
root:~# chmod 644 /bin/login
chmod: changing permissions of `/bin/login': Operation not permitted
root:~# rm /bin/login
remove write-protected regular empty file `/bin/login'? n
I can copy it, and move other files in the same directory.
It is presumably this problem that is preventing it's upgrade.
I suppose I could try dropping another /bin/login on top of it,
or removing it, but I'm quite curious now. However, I don't know
enough about filesystems to know what has happened.
root:~# stat /bin/login
File: `/bin/login'
Size: 0 Blocks: 0 IO Block: 4096 Regular File
Device: 30ah/778d Inode: 17894 Links: 1
Access: (0666/-rw-rw-rw-) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2003-10-09 09:36:03.000000000 +1000
Modify: 2003-10-09 09:36:03.000000000 +1000
Change: 2003-10-09 09:36:03.000000000 +1000
Nothing else is playing up, the system seems fine apart from this.
Thanks very much for your advice.
Patrick Lesslie
Reply to: