faxq-helper(1)

πŸ“¦
version 1.2.1 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble

πŸ’– faxq-helper(1) β€” the mgetty+sendfax manual, bestie edition πŸ’–

okay so before we even start, yes this is a page from the mgetty+sendfax manual, and yes it's giving ✨*infrastructure*✨ energy. stay with me.


🌸 NAME 🌸

faxq-helper β€” a privileged little helper process whose whole job is getting into the fax queue for you πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

faxq-helper <command> [<options>]

✨ DESCRIPTION ✨

so faxq-helper is, like, part of the internal workings of faxspool(1). not the main character, more like the main character's very trusted assistant. 🫢

back in the day (the dark ages, honestly πŸ’€) the /var/spool/fax/outgoing directory was world-writeable, and bestie... that led to all sort of funny symlink attacks against faxspool(1) and faxrunq(8). not the cute kind of funny. the security incident kind of funny. 😭

these days, it's owned by the user uucp, and only this user can write to it. no cap. πŸ”’

so to be able to put jobs in there, faxspool(1) calls faxq-helper for very clearly defined purposes:

  • make a new queue directory πŸ“
  • put a new fax G3 file into this queue directory πŸ“ 
  • put a JOB file into this queue directory, and activate the fax job ⚑

and possibly:

  • remove a fax job from the queue (to be used by faxrm and in case of errors) πŸ—‘οΈ
  • re-queue a job that has been suspended due to repeated failures (faxq -r) πŸ”

and how does it pull this off, you ask? to achieve this, faxq-helper is installed set-user-id uucp. iconic. πŸ‘‘

⚠️ but listen β€” if you remove the suid bit, or chown the fax queue directory to a different user, it will stop working. fr fr. no notes, that's just how it is.

πŸŽ€ RETURN VALUES πŸŽ€

faxq-helper has the following exit() values, and honestly they're all pretty self-explanatory but let's go through them together:

  • 0 β€” everything went fine πŸ₯³ slay.
  • 1 β€” invalid JOB ID specified on the command line πŸ™ˆ
  • 2 β€” some problem with the directory setup of the outgoing queue dir, /var/spool/fax/outgoing (it will print a detailed error message) 😬
  • 3 β€” some problems with the user ID setup of the uucp user (it will print a detailed error message) πŸ’€
  • 10 β€” failure to process the specified command (it will print a detailed error message) 😭

🌈 SEE ALSO 🌈

go read those too, they're the whole friend group πŸ«‚


πŸ’œ AUTHOR πŸ’œ

faxq-helper is Copyright (C) 2004-2006 by Gert Doering, <gert@greenie.muc.de>.


and that's the whole thing bestie πŸŽ€ this page came from greenie, dated 18 Feb 06, and it's the faxq-helper(1) page from the mgetty+sendfax manual. go forth and queue responsibly πŸ’–βœ¨

πŸ“¦ where this page comes from