Re: [netatalk-admins] Managing netatalk


Subject: Re: [netatalk-admins] Managing netatalk
From: Wes Brown (wes@prozac.eeap.cwru.edu)
Date: Thu Mar 12 1998 - 08:36:16 EST


> On Thu, 12 Mar 1998, Jochen Haeberle wrote:
[snip]
> > BTW: Is there a way to know which and how many users are using the shared
> > volumes on my Linux box?
>
> The afpd processes will run as the connected users - one per user, plus
> one master running as root.
>
> Hope this helps...
> --
> fsck -f -b 8193 /dev/cortex

There is a perl script called nu that I saw at
http://thehamptons.com/anders/netatalk/

The text just above the first full horizontal line on that page:
Want to know who's logged on a netatalk server? Try nu.

#!/usr/bin/perl
# nu - by Anders Brownworth anders@thehamptons.com
#
# shows netatalk users logged on
#
# usage: nu
#
# I'm sure I'll get some options in there at some point!

@users = `ps aucx | grep afpd`;

print "Netatalk users:\n---------------\n";
foreach $user (@users)
{
  $user =~ /(\S+)/;
  $n = `grep $1 /etc/passwd`;
  ($a, $b, $c, $d, $name) = split (/:/, $n);
  print "$name\n" unless ($name eq "root");
}

Wes
---
Wes Brown
ewb4@po.cwru.edu wes@prozac.cwru.edu
http://prozac.cwru.edu/wes/About.me.html
KB8TGR



This archive was generated by hypermail 2b28 : Sat Dec 18 1999 - 16:31:31 EST