Hi everyone, Probably a dumb one too, but simply I cannot put my finger on what command to use in order to see who's locally logged on; let me be more accurate in my description: we run win98 PC all accessing shares on the linux boxes via samba. Several users & shares. When I use finger or who to see who's logged on I only get to see who's logged on directly through ssh or telnet, but can't see who's on through samba. If anyone could help then I'd be glad... of course. Thanx in advance D Jones -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 1924 bytes Desc: not available Url : http://lists.samba.org/archive/samba/attachments/20021011/20496e9b/winmail.bin
smbstatus should do the trick. shows you who's connected to which shares at least, and if you have auto mapping of the user's home directory at login time set up, then you can also know who is logged in. :) Nathan Dylan Jones wrote:> Hi everyone, > > Probably a dumb one too, but simply I cannot put my finger on what command > to use in order to see who's locally logged on; let me be more accurate in > my description: > we run win98 PC all accessing shares on the linux boxes via samba. Several > users & shares. When I use finger or who to see who's logged on I only get > to see who's logged on directly through ssh or telnet, but can't see who's > on through samba. > > If anyone could help then I'd be glad... of course. > > Thanx in advance > > D Jones >
On Fri, 11 Oct 2002 09:57 pm, Dylan Jones wrote:> we run win98 PC all accessing shares on the linux boxes via samba. Several > users & shares. When I use finger or who to see who's logged on I only get > to see who's logged on directly through ssh or telnet, but can't see who's > on through samba.smbstatus is probably what you're after. -- Regards, Deryk Robosson Robosson Business Services 22 Flemington Street Albany, WA 6330 ABN: 56 728 377 499 Phone: +61 4 0842 9835 Email: deryk@0x0a.com
[Samba] who's onsmbstatus Shaolin - IT Systems WB Ltd. .: http://www.security-forums.com :. ----- Original Message ----- From: Dylan Jones To: samba@lists.samba.org Sent: Friday, October 11, 2002 2:57 PM Subject: [Samba] who's on Hi everyone, Probably a dumb one too, but simply I cannot put my finger on what command to use in order to see who's locally logged on; let me be more accurate in my description: we run win98 PC all accessing shares on the linux boxes via samba. Several users & shares. When I use finger or who to see who's logged on I only get to see who's logged on directly through ssh or telnet, but can't see who's on through samba. If anyone could help then I'd be glad... of course. Thanx in advance D Jones -------------- next part -------------- HTML attachment scrubbed and removed
On Fri, Oct 11, 2002 at 03:57:46PM +0200, Dylan Jones wrote:> Hi everyone, > > Probably a dumb one too, but simply I cannot put my finger on what command > to use in order to see who's locally logged on; let me be more accurate in > my description: > we run win98 PC all accessing shares on the linux boxes via samba. Several > users & shares. When I use finger or who to see who's logged on I only get > to see who's logged on directly through ssh or telnet, but can't see who's > on through samba.This bash commandline will give you a list of sambalogons: (smbstatus -S | grep -v "^Samba\|^Service\|^-\|^$" | \ while read SHARE USR GRP PID MACH IP ABR MONTH DAY TIME YEAR; \ do echo $USR; \ done;) | uniq If you use a configurable fingerdaemon, than you are able to solve your problem. Take a search on freshmeat with the keyword "finger". I konw there a configurable finger daemons.. Frank. -- Frank Matthie? fm+samba@Microdata-pos.de
Dylan Jones wrote:> > Hi everyone, > > Probably a dumb one too, but simply I cannot put my finger on what command > to use in order to see who's locally logged on; let me be more accurate in > my description: > we run win98 PC all accessing shares on the linux boxes via samba. Several > users & shares. When I use finger or who to see who's logged on I only get > to see who's logged on directly through ssh or telnet, but can't see who's > on through samba. > > If anyone could help then I'd be glad... of course.While smbstatus is the 'quick' answer, the --with-utmp code (also needs 'utmp =yes' in smb.conf makes the actual 'finger' and 'w' programs work, rather than scripted replacements. Andrew Bartlett -- Andrew Bartlett abartlet@pcug.org.au Manager, Authentication Subsystems, Samba Team abartlet@samba.org Student Network Administrator, Hawker College abartlet@hawkerc.net http://samba.org http://build.samba.org http://hawkerc.net
Will compiling with --with-utmp allow you to see users on your network through 'w' and finger? I am not especially new to samba, been running it for a good 3 years of solid performance, but I never played with much else in besides LDAP and Cups support. what does --with-utmp actually do? -Peter>While smbstatus is the 'quick' answer, the --with-utmp code (also needs >'utmp =yes' in smb.conf makes the actual 'finger' and 'w' programs work, >rather than scripted replacements. > >Andrew Bartlett