I have a few accounts that shall have no password. You just type the username, and the account logs in. Now, before you get all bent out of shape "this is a terrible security hole": these accounts don't run a normal shell. Instead they run a single executable that has one function. And they are restricted so they can only log in on the console. For example, the account named "date" simply prints out the current time and date, and exits. Or the account named "halt" simply powers down the machine. In case of a power outage, it's very convenient to be able to shut down the computer very quickly, without having to fish around for the root password, or figuring out how to press "control alt delete" (*).
It is easy to set an account to not have a password. For example use the command "passwd date", and hit enter twice: done. My problem is: Even for accounts that have no password, the login program will prompt for a password. I can change the password prompt in /etc/login.conf (even specifically for that account, by using a specific login class), but I can't get rid of the user having to hit enter again.
Any known solution for that?
Footnote: Control Alt Delete is actually quite difficult to type. There are at least two "delete" keys on the keyboard, and on compact or laptop keyboards, they can be in funny places (and backspace does not actually work, only delete does, even if most backspace keys actually say "delete" on them) And Alt can be outright hard to find. For example, the keyboard I'm typing on has Command, Option, Function and Control, and no key that says "Alt". The keyboard in the next room has a windows key and a hamburger menu key on the right side (but at least one key that says "Alt" on it).
It is easy to set an account to not have a password. For example use the command "passwd date", and hit enter twice: done. My problem is: Even for accounts that have no password, the login program will prompt for a password. I can change the password prompt in /etc/login.conf (even specifically for that account, by using a specific login class), but I can't get rid of the user having to hit enter again.
Any known solution for that?
Footnote: Control Alt Delete is actually quite difficult to type. There are at least two "delete" keys on the keyboard, and on compact or laptop keyboards, they can be in funny places (and backspace does not actually work, only delete does, even if most backspace keys actually say "delete" on them) And Alt can be outright hard to find. For example, the keyboard I'm typing on has Command, Option, Function and Control, and no key that says "Alt". The keyboard in the next room has a windows key and a hamburger menu key on the right side (but at least one key that says "Alt" on it).