smbstatus is what you're looking for. At a friendly bash prompt near you:

<-------- sample output -------->
# smbstatus

Samba version 2.2.6
Service      uid      gid      pid     machine
----------------------------------------------
mp3$         pete   users    9851  muse    (172.27.50.121) Sat Nov 30
10:42:26 2002
www$         chrish   users    9854   gge    (172.27.50.116) Sat Nov 30
10:42:26 2002
mp3$         kate     users    10904   lappy    (172.27.50.163) Sat Nov 30
10:20:52 2002
files$       kate     users    10904   lappy    (172.27.50.163) Sat Nov 30
10:20:52 2002
files$       chrish   users    10952   chris    (172.27.50.106) Sat Nov 30
10:42:26 2002
mp3$         chrish   users    10952   chris    (172.27.50.106) Sat Nov 30
10:42:26 2002


Locked files:
Pid    DenyMode   R/W        Oplock           Name
--------------------------------------------------
10952  DENY_NONE  RDWR       NONE
/data/files/mail/chrish/Folders.dbx   Sat Nov 30 10:58:07 2002
10952  DENY_NONE  WRONLY     EXCLUSIVE+BATCH
/data/files/mail/chrish/cleanup.log   Sat Nov 30 10:58:38 2002
10952  DENY_NONE  RDWR       NONE
/data/files/mail/chrish/Offline.dbx   Sat Nov 30 10:58:08 2002
10952  DENY_NONE  RDWR       EXCLUSIVE+BATCH  /data/files/mail/chrish/main
IMAP - CLUG.dbx   Sat Nov 30 11:06:50 2002
10904  DENY_NONE  RDONLY     EXCLUSIVE+BATCH
/mp3/more/Disk59/Misc/Taken.mp3   Sat Nov 30 11:10:55 2002

Share mode memory usage (bytes):
   1047152(99%) free + 1200(0%) used + 224(0%) overhead = 1048576(100%)
total

<--------- end sample output -------->

The output can get quite long and messy, grep is your friend..

Win98se is pretty stable by itself, so unless you're running junk apps it
should be OK in therms of lock-ups.

If you're worried about client support problems, install tight-vnc on the
client PC's, and use ssh tunnels via the server (which I assume has a net
connection if you're remotely admin'ing it) to remote control the clients
from home/remote..  Very good admin tool, and doesn't take much setup.

Cheers, Chris.


----- Original Message -----
From: "Andrew J Sands" <[EMAIL PROTECTED]>
To: "CLUG" <[EMAIL PROTECTED]>
Sent: Saturday, November 30, 2002 10:28 AM
Subject: Users attached to server running SAMBA as PDC??


>
> How dee...
>
> Is there a way to tell either/or how many or which users (ie client
> machines) are attached to a Linux RedHat server running SAMBA configured
as
> a PDC with roaming profiles??
>
> As I admin this machine remotely most of the time, I've wanted to try the
> odd thing but have been concerned about client lock-up (they're
Windows98SE
> boxes...complete with all associated problems.) Convincing site owner to
try
> a Linux workstation BUT as a Marine Engineer with a time limited
> fuse.....its a slow process.
>
> "Firing solution loaded, Captain" :-)
>
> Andrew Sands
>

Reply via email to