getty: setsid: Operation not permitted on busybox v1.20.2

Denys Vlasenko vda.linux at googlemail.com
Wed Aug 15 14:22:29 UTC 2012


On Wed, Aug 15, 2012 at 10:00 AM, Priebe, Sebastian
<Sebastian.Priebe at cadcon.de> wrote:
> Hello,
>
> I get " getty: setsid: Operation not permitted" if calling "getty 921600 tty0".

Please find this place in getty.c:

                pid = getpid();
                if (getsid(0) != pid)
                        bb_perror_msg_and_die("setsid");


and modify it to print this:

bb_perror_msg_and_die("setsid fails: pid %d ppid %d sid %d", pid,
getppid(), getsid(0));

> I want to call getty from init to provide a login.

Please post your iniitab and .config file


More information about the busybox mailing list