Results 1 to 3 of 3

Thread: 'Who' is using SAMBA?

  1. #1
    Join Date
    Jun 2007
    Beans
    602
    Distro
    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
    Last edited by BassKozz; February 2nd, 2009 at 04:24 PM.
    Ubuntu 12.04 64-bit - IP35-Pro | Q6600@3.3ghz(TRUE [lapped]) | G.Skill 2x2GB | MSI NX8600GT | 150GB WD Raptor ||| NAS - Ubuntu 10.04 - Intel D865GBF | P4 3.0GHz | G.Skill 4x1GB | FX5200-AGP | 3x250GB mdadm Raid5

  2. #2
    Join Date
    Sep 2007
    Beans
    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
    Last edited by JillSwift; February 2nd, 2009 at 03:35 PM.
    Jill has left these forums due to ongoing double-standards in rule enforcement.

  3. #3
    Join Date
    Jun 2007
    Beans
    602
    Distro
    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?
    Last edited by BassKozz; February 2nd, 2009 at 04:53 PM.
    Ubuntu 12.04 64-bit - IP35-Pro | Q6600@3.3ghz(TRUE [lapped]) | G.Skill 2x2GB | MSI NX8600GT | 150GB WD Raptor ||| NAS - Ubuntu 10.04 - Intel D865GBF | P4 3.0GHz | G.Skill 4x1GB | FX5200-AGP | 3x250GB mdadm Raid5

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •