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

Denys Vlasenko vda.linux at googlemail.com
Thu Aug 16 13:33:25 UTC 2012


On Thu, Aug 16, 2012 at 8:01 AM, Priebe, Sebastian
<Sebastian.Priebe at cadcon.de> wrote:
>>and modify it to print this:
>>
>>bb_perror_msg_and_die("setsid fails: pid %d ppid %d sid %d", pid, getppid(), getsid(0));
>
> getty: setsid fails: pid 1100 ppid 1092 sid 1092: Operation not permitted
>
>>> I want to call getty from init to provide a login.
>>
>>Please post your iniitab and .config file
>
> Inittab:
> ::shutdown:/bin/umount -a -r
> ::restart:/sbin/init
> ::respawn:/bin/cttyhack /bin/sh
> ::sysinit:/etc/init.d/rcS
> ::respawn:/sbin/getty tty0

I am surprised that parent PID is 1092.
When you run getty from init, parent PID should be 1.
Did you run getty from init for this test?
It looks like you ran getty from a shell.

-- 
vda


More information about the busybox mailing list