Skip to content

scootgreet

scootgreet is a greeter for greetd, the login manager. Today it ships one command, scootgreet login, which logs a user in through greetd with no screen and no keyboard: every PAM prompt is answered from stdin or a file descriptor. It is for agents and VM test harnesses that need a real login, not for people at a console.

The graphical login screen is not built yet. Until it is, the login screen is ReGreet; see The login screen.

  • Talks to greetd over $GREETD_SOCK, so it runs as greetd’s greeter: set it as greetd’s default_session.command.
  • Answers password, OTP and any other prompts with the next line of input, in order. Answers are never accepted on the command line.
  • Retries after a wrong answer with the next lines of input, waiting longer after each refusal, up to three attempts by default.
  • Exits 0 once greetd has accepted the session; greetd starts it as soon as scootgreet exits.

Setup, flags, exit statuses and fixes are in scootgreet login.

scootgreet is in this repository’s workspace and is not packaged yet. Build it with cargo build --release -p scootgreet; the binary is target/release/scootgreet.