yeti yeti@tilde.institute wrote:
On Thu, 2022-06-30 at 22:02 +0000, rdh@tilde.institute wrote:
First, use w(1) to see who is currently logged in, and get some idea of what they're up to.
w(1) doesn't list all users.
Same with the users(1) command. Seems to depend on user's home directory permissions:
$ users deejoe gamliel kneezle meta4
$ ls -l /home |egrep 'deejoe|meta4|yeti|ariel' drwxr-xr-x 13 deejoe tilde 1024 Jul 5 20:59 deejoe drwx--x--x 18 meta4 tilde 1024 Mar 18 17:34 meta4 drwx-----x 18 yeti tilde 1024 Jul 9 02:01 yeti drwx------ 13 ariel tilde 1024 Jul 5 23:02 ariel
This seems to grap all active users: $ ps -a -o ruser |sort -u |egrep -v '^RUSER|^root' |fmt altalada andinus ang anshupat ariel asp balou barwar deejoe fro games gamliel gbmor grizzly kneezle meta4 meuk nix optimant pcaetano phoebos r1k rdh rjc sarmonsi yeti