Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am maintaining an ec2 bootstrapping script for debian squeeze on github. The setup has become very minimal and I try to justify all my changes to the standard setup.

Currently I am wondering whether there would be any problem with disabling all TTYs via /etc/inittab.
People log in to an AMI via ssh anyways, which spawns its own shell.
Is there anything that can be installed on the server which expects a TTY to be present?
Would XEN have a problem with this in the long run?

p.s.: Github issue here

share|improve this question
up vote 7 down vote accepted

It's not the TTYs you would disable; it is the gettys (you can also modify udev rules to not create device files for the ttys, but they are implemented in the kernel).

If you log in only via SSH and do not log in through any of the console ttys or a serial tty ever, by all means remove the inittab rules that run a getty on them. However, I would personally recommend leaving one, for troubleshooting purposes (in case sshd doesn't work for some reason). Their load on your system resources is pretty minimal.

share|improve this answer
Aha, well that distinction makes sense. The TTYs are inaccessible on EC2 instances anyways, so I might as well remove all of them. – andsens Jul 2 '12 at 0:42

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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