Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Main Support Categories > Networking & Wireless
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Networking & Wireless
Having problems getting connected to the internet or getting your wireless card to work? Ask here.

 
Thread Tools Display Modes
Old February 2nd, 2009   #1
BassKozz
Dipped in Ubuntu
 
BassKozz's Avatar
 
Join Date: Jun 2007
Beans: 600
Ubuntu 9.10 Karmic Koala
[SOLVED] 'Who' is using SAMBA?

Is there a command that will let you find out who is accessing a samba share?
Similar to the 'who' command to find out who is logged onto a machine, but instead for SAMBA shares. Does a command like this exist?

Really my goal is to work this into a script that will shutdown my server at night so long as NO ONE is using the share.
TiA,
-BassKozz
__________________
Ubuntu 9.10 64-bit - IP35-Pro | Q6600@3.3ghz(TRUE [lapped]) | G.Skill 2x2GB | MSI NX8600GT | 150GB WD Raptor ||| NAS - Ubuntu 9.04 - Intel D865GBF | P4 3.0GHz | G.Skill 4x1GB | FX5200-AGP | 3x250GB mdadm Raid5 | 200GB OS

Last edited by BassKozz; February 2nd, 2009 at 11:24 AM..
BassKozz is offline   Reply With Quote
Old February 2nd, 2009   #2
JillSwift
Way Too Much Ubuntu
 
JillSwift's Avatar
 
Join Date: Sep 2007
My beans are hidden!
Re: 'Who' is using SAMBA?

smbstatus will do that.

_________edit _____________________
Just found out Samba also has a"net" command.
"net status shares parseable" looks just about perfect for your needs
__________________
Jill has left these forums due to ongoing double-standards in rule enforcement.

Last edited by JillSwift; February 2nd, 2009 at 10:35 AM..
JillSwift is offline   Reply With Quote
Old February 2nd, 2009   #3
BassKozz
Dipped in Ubuntu
 
BassKozz's Avatar
 
Join Date: Jun 2007
Beans: 600
Ubuntu 9.10 Karmic Koala
Re: 'Who' is using SAMBA?

Quote:
Originally Posted by JillSwift View Post
smbstatus will do that.

_________edit _____________________
Just found out Samba also has a"net" command.
"net status shares parseable" looks just about perfect for your needs
Thanks Jill
Follow-up: Need help creating an advanced shutdown script for powersaving?
__________________
Ubuntu 9.10 64-bit - IP35-Pro | Q6600@3.3ghz(TRUE [lapped]) | G.Skill 2x2GB | MSI NX8600GT | 150GB WD Raptor ||| NAS - Ubuntu 9.04 - Intel D865GBF | P4 3.0GHz | G.Skill 4x1GB | FX5200-AGP | 3x250GB mdadm Raid5 | 200GB OS

Last edited by BassKozz; February 2nd, 2009 at 11:53 AM..
BassKozz is offline   Reply With Quote

Bookmarks

Tags
crontab, samba, shutdown

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:02 AM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry