I need to restrict users so that they cannot output sound from built-in speakers. They should plug their headphones to hear any sound. They should be able to control headphone volume level, but not built-in speakers.
I need a command-line solution for automation purposes.
Is this possible (on Ubuntu 12.04)?