AW: Cannot log in as root directly, but su works
Denis Vlasenko
vda.linux at googlemail.com
Mon Mar 12 18:13:10 UTC 2007
On Monday 12 March 2007 17:46, Martetschlaeger Stefan wrote:
> Hi all,
>
> I've finally solved the problem.
> It's been a problem with the securetty checks in login, because login assumes that
> the ttyxx is in the /dev/ directory. In fact the tty device was (due to /dev beeing
> a symlink) in /mnt/ramdisk0/dev/ttyS0 which didn't resolve to ttyS0 in the login
> applet and thus not allowing root to login.
> The fix would be to either change all entries in securetty to the mnt/ramdisk...
> directory or change the behaviour of login to assume that the tty devicefile is
> beeing held in /dev.
A few more more alternatives:
a) mount ramdist on /dev instead of having it symlinked
b) nuke /etc/securetty
--
vda
More information about the busybox
mailing list