RADWHO(1)

πŸ“¦
version 3.2.10 Β· 4 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, centos-stream 9, fedora 43, fedora 44, opensuse-leap 16.0

πŸ’… radwho β€” FreeRADIUS Daemon

okay so bestie, welcome to radwho(1), the little utility that lets you peek at who's online rn ✨


🌸 NAME

radwho β€” show online users 🫢


✨ SYNOPSIS

radwho [-c] [-d raddb_directory] [-F radutmp_file] [-i] [-n] [-N
nas_ip_address] [-p] [-P nas_port] [-r] [-R] [-s] [-S] [-u user] [-U
user] [-Z]

πŸ¦‹ DESCRIPTION

so the FreeRADIUS server can be configured to keep an active session database in a file called radutmp β€” like, a whole little guest list of who's currently connected πŸ’– and this utility radwho shows you the content of that session database. that's it, that's the vibe. main character energy for session data, periodt.


πŸŽ€ OPTIONS

  • -c β€” shows caller ID (if it's available) instead of the full name. iykyk πŸ“ž
  • -d raddb_directory β€” the directory that contains the RADIUS configuration files. defaults to /etc/raddb. πŸ—‚οΈ
  • -F radutmp_file β€” the file that contains the radutmp file. if you specify this, then -d is not necessary. one or the other, bestie, you got options πŸ’…
  • -i β€” shows the session ID instead of the full name. πŸ†”
  • -n β€” normally radwho looks up the username in the systems password file, and shows the full username as well. the -n flag prevents this. no lookups, no extra name, we stay private πŸ™ˆ
  • -N nas_ip_address β€” show only those entries which match the given NAS IP address. filter slay πŸ”₯
  • -p β€” adds an extra column for the port type β€” I for ISDN, A for Analog. iconic little column ngl πŸ“Ÿ
  • -P nas_port β€” show only those entries which match the given NAS port. πŸšͺ
  • -r β€” outputs all data in raw format β€” no headers, no formatting, fields are comma-separated. just the raw truth fr fr πŸ“„
  • -R β€” output all data in RADIUS attribute format. all fields are printed. every single one, we're not skipping anything πŸ‘‘
  • -s β€” show full name. πŸ’–
  • -S β€” hide shell users. doesn't show the entries for users that do not have a SLIP or PPP session. bye to the shell-only girlies πŸ‘‹
  • -u user β€” show only those entries which match the given username (case insensitive). lowercase girlie friendly πŸ“
  • -U user β€” show only those entries which match the given username (case sensitive). exact match energy, capital letters matter bestie ⭐
  • -Z β€” when combined with -R, prints out the contents of an Accounting-Request packet which can be passed to radclient, in order to "zap" that user's session from radutmp. ⚑ literal zap

πŸ’« the examples (they ate, no cap)

for example,

$ radwho -ZRN 10.0.0.1 | radclient -f - radius.example.net acct testing123

will result in all an Accounting-Request packet being sent to the RADIUS server, which tells the server that the NAS rebooted. i.e. it "zaps" all of the users on that NAS. πŸ”₯ boom, everyone's off the guest list

to "zap" one user, specify NAS, username, and NAS port:

$ radwho -ZRN 10.0.0.1 -u user -P 10 | radclient -f - radius.example.net acct testing123

other combinations are also possible. ok go off and experiment, you've got this 🧚


🌈 SEE ALSO

radiusd(8), radclient(1), radiusd.conf(5).


πŸ’œ AUTHOR

Miquel van Smoorenburg, miquels@cistron.nl.


and that's the whole page bestie πŸŽ€ β€” footer tea: this is from RADWHO(1), FreeRADIUS Daemon, dated 17 Feb 2013. mwah, go check who's online πŸ’‹

πŸ“¦ where this page comes from