-----Ursprüngliche Nachricht-----
Von: Johannes Stezenbach [mailto:[email protected]]
Gesendet: Donnerstag, 16. August 2012 15:39
An: Denys Vlasenko
Cc: Priebe, Sebastian; [email protected]
Betreff: Re: getty: setsid: Operation not permitted on busybox v1.20.2

>On Thu, Aug 16, 2012 at 03:33:25PM +0200, Denys Vlasenko wrote:
>> On Thu, Aug 16, 2012 at 8:01 AM, Priebe, Sebastian
>> <[email protected]> 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.

Yes, I ran the test from a shell.
If I boot my system with the inittab above, getty is started again and again...
So I ran the test from a shell.
>>
>Besides the ppid issue, does the cttyhack screw things up for getty?

I don't know much about the cttyhack...
I didn't create that inittab. But I have to change it, to provide a login shell.
In the past there was only root on that system and no login.
>
>
>Johannes
>

---------------------------------------------------------------------------
 +++ Willkommen bei CADCON auf der ILA Berlin Air Show +++
  11.-16.09.2012, ExpoCenter Airport, Halle 2, Stand 2204
---------------------------------------------------------------------------

CADCON
Ingenieurgesellschaft mbH & Co. KG
Geschaeftsfuehrer: Robert Bauer, Andreas Gundel
Sitz der Gesellschaft: 86368 Gersthofen
Registergericht: Amtsgericht Augsburg HRA 14521

_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to