AW: Cannot log in as root directly, but su works

Robin Farine robin.farine at terminus.org
Mon Mar 12 10:06:05 PDT 2007


On Mon March 12 2007 17:46, Martetschlaeger Stefan wrote:

> 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.

Ouch.

> 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.
> I've attached a patch for the latter case :)

An alternative would be to mount --bind your dev directory on /dev.

Robin




More information about the busybox mailing list