Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: Drew on August 21, 2002, 06:45:37 PM

Title: view active users/ open files?
Post by: Drew on August 21, 2002, 06:45:37 PM
Is there a way to "see" how many active users are logged into the SME "domain" and which users they are?  What files they have open on the server?  Thanks.
Title: Re: view active users/ open files?
Post by: Drew on August 22, 2002, 07:26:24 PM
Okay...so this is either a really dumb question or a tough one with no answer.  Ideas/thoughts?  Thanks.
Title: Re: view active users/ open files?
Post by: Scott Smith on August 22, 2002, 07:51:26 PM
Define what you mean by "logged into the SME domain".

Are you talking about the NT domain, or just using the server in general? If you mean the NT domain, you'll probably want to start looking at the samba docs. I'm sure there is probably a way to see who is using the samba service(s), shares mounted, etc.

If you mean using the server in general, well, nobody really logs in to the server (except root and admin) so you're probably talking about monitoring the use of the various services -- which means checking the log files for mail (qmail, fetchmail, imp) and web (apache, squid) and ftp (proftpd).

You might also want to check for root/admin logins via ssh or telnet. The "who" command would be helpful there, as would "ps" and "top". There is also the pam module that could be generating useful info. These places are especially applicable if you have tweaked the system to allow normal users to have shell logins.

As to open files, on other *nix systems I use the "lsof" utility. You can find lsof on rpmfind.
Title: Re: view active users/ open files?
Post by: Charlie Brady on August 22, 2002, 09:43:42 PM
Scott Smith wrote:

> As to open files, on other *nix systems I use the "lsof"
> utility. You can find lsof on rpmfind.

It's standard in 5.5.

Charlie
Title: Re: view active users/ open files?
Post by: Scott Smith on August 22, 2002, 09:50:53 PM
Charlie Brady wrote:

> Scott Smith wrote:
>
> > As to open files, on other *nix systems I use the "lsof"
> > utility. You can find lsof on rpmfind.
>
> It's standard in 5.5.

Ah, well, there you have it. I'm still on 5.1.2 except for one test system that is running 5.6 alpha. I think we'll be skipping 5.5 altogether.
Title: Re: view active users/ open files?
Post by: Jerry Moss on December 21, 2002, 08:37:57 PM
For attatched SMB clients, there are several commands you can use:

findsmb will show you all the Windows clients on your network.

smbstatus will show all the attatched clients and locked files.

No reason the output from the many smb suite of commands couldn't be converted to html and viewed from an IBay with a browser.

Jerry