I do not know to do. I have around 50 logados users and would like to know the names of who are logados at the moment. I thank any aid. Diego.
Have you tried "smbstatus"? -----Original Message----- From: Diego S. Soares [mailto:diegosoares@yahoo.com.br] Sent: Thursday, 13 March, 2003 12:35 PM To: samba@lists.samba.org Subject: [Samba] how to view users logged in samba server?? Importance: High I do not know to do. I have around 50 logados users and would like to know the names of who are logados at the moment. I thank any aid. Diego. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
smbstatus -b gives all logged users... Diego S. Soares schrieb:> I do not know to do. > > I have around 50 logados users and would like to know the names of who are logados at the moment. > > I thank any aid. > > Diego.
Ulrich Kohlhase
2003-Mar-14 03:01 UTC
[Samba] Re: how to view users logged in samba server??
Diego, An alternative approach is to compile Samba form source with the configure option "--with-utmp" or use a precompiled package, which has utmp support enabled. The command "who | grep smb | cut -f 1 -d ' ' | uniq" will then list users with connections to Samba shares (who is part of GNUs sh-utils and should be included in all Linux distributions). Good luck, Uli