RPLAY.HOSTS(5)

πŸŽ€ rplay.hosts β€” the manual page, but make it cute

okay so bestie, this is RPLAY.HOSTS(5), from the File Formats Manual section, and it's literally the guest list for your rplay setup. let's get into it πŸ’–


✨ NAME ✨

rplay.hosts β€” the rplay host authentication database. it's the bouncer at the door, fr fr. 🫢


🌸 SYNOPSIS 🌸

/usr/local/etc/rplay.hosts

πŸ’… DESCRIPTION πŸ’…

so the rplay.hosts file is basically a list of hosts plus their access permissions, and rplayd uses it to validate incoming connections. it's the vibe check before anyone gets in. ✨

every single line looks like this:

hostname[:permission]

where β€”

  • hostname β€” the name of a remote host, or a host's IP address. you can use wildcards inside IP addresses to match multiple hosts at once, and the wildcard character is *. 🌈
  • permission β€” an optional field, and it can contain any combination of these characters:
    • r β€” the host can read sounds. πŸ‘€
    • w β€” the host can write sounds. ✍️
    • x β€” the host can play, stop, pause, and continue sounds. this is normally called execute permission. ▢️
    • m β€” the host can monitor the audio stream written by rplayd to the audio device. 🎧

and if you don't specify any permissions at all? "rx" permissions get used. that's the default, no cap. πŸ’«


🌟 EXAMPLE 🌟

#
# All hosts have read access:
#
*:r

#
# Trusted hosts:
#
nice-guy.sdsu.edu:rwx
friend.sdsu.edu:rwx
amigo.sdsu.edu:rwx
130.191.224.224:rwx

#
# Hosts which can read and execute:
#
foo.bar.com:rx
130.190.*:rx
146.244.234.*:rx
using.default.perms.edu

#
# Hosts which can monitor the audio stream
#
nsa.sdsu.edu:m

not the using.default.perms.edu just rawdogging it with no permissions specified 😭 iconic behaviour honestly, that's how you get the default "rx".


πŸ¦‹ FILES πŸ¦‹

  • /usr/local/etc/rplay.hosts

πŸ’œ SEE ALSO πŸ’œ

  • rplayd(1)

πŸ’€ BUGS πŸ’€

okay listen, this part matters, don't skip it:

  • the permissions for an "*" entry apply to all matching hosts. so it's giving blanket permission, whether you meant it or not. πŸ™ˆ
  • the order of this file does not matter. like, at all. rearrange it, alphabetise it, whatever β€” it changes nothing.
  • specific hosts can have access disabled with entries like:
bad.guy.edu:
  • however β€” and this is the important part β€” any matching "*" entries will still apply. so you can't just block someone by leaving them blank if a wildcard already said yes. the wildcard wins. periodt. πŸ”₯
lowkey that last one trips people up every single time, so read it twice bestie πŸ’–

that's the whole page!! this was RPLAY.HOSTS(5) from the File Formats Manual, and the source/version line at the bottom says RPLAY.HOSTS(5) dated 12/21/97 β€” so yeah, a certified vintage classic, we stan a legacy manpage πŸ‘‘πŸ’