Cannot log in as root directly, but su works
Luciano Miguel Ferreira Rocha
strange at nsk.no-ip.org
Mon Mar 12 10:28:56 PDT 2007
On Mon, Mar 12, 2007 at 05:46:40PM +0100, 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.
Or, instead of using a symlink, mount --bind /mnt/ramdisk0/dev /dev
--
lfr
0/0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://busybox.net/lists/busybox/attachments/20070312/42fbc922/attachment.pgp
More information about the busybox
mailing list