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?

  • Apparently this error has something do with the fact that I am using busybox, though I am still not sure how to resolve the problem... – dtmland Apr 17 '15 at 21:51
up vote 8 down vote accepted

I solved that problem running :

su root -c "getty /dev/ttyXX"

I am running busybox 1.23.1 on an ARM platform.

  • From what I can gather, I believe my system has some sort of problem. I was able to perform the command on other systems using the same adapters/cables and the getty works just fine. – dtmland Jan 15 '16 at 15:10
  • For reference, I had to add the force local line parameter to my command: su root -c "getty -L 115200 ttyUSB0" – dtmland Jan 15 '16 at 15:11

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.