Ssh – getty start from command line

gettysshterminal

I have a line in my inittab like the following:

# Put a getty on the serial port
ttyS0::respawn:/sbin/getty -L ttyS0 115200 vt100 # GENERIC_SERIAL

If I try to perform a similar operation from an session command line (this time towards a usb-serial adapter I have):

/sbin/getty -L ttyUSB0 115200 vt100

I receive the following response:

getty: setsid: Operation not permitted

Is i possible to launch the process from my session and have a serial be presented on the usb-serial adapter? Why does this have to occur in inittab?

Best Answer

I solved that problem running :

su root -c "getty /dev/ttyXX"

I am running busybox 1.23.1 on an ARM platform.

Related Question