Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > OSX File Sharing question

OSX File Sharing question
Thread Tools
driven
Addicted to MacNN
Join Date: May 2001
Location: Atlanta, GA
Status: Offline
Reply With Quote
Dec 27, 2008, 12:10 PM
 
I am sharing my Leopard hard disks with some Windows PCs (SMB). How can I tell if there are any active connections?

On Windows I can use the NET SESSIONS command. What is the OSX equivalent? (Either via the GUI or command line?)

I just want to check if anyone is doing anything before a reboot. :-)
- MacBook Air M2 16GB / 512GB
- MacBook Pro 16" i9 2.4Ghz 32GB / 1TB
- MacBook Pro 15" i7 2.9Ghz 16GB / 512GB
- iMac i5 3.2Ghz 1TB
- G4 Cube 500Mhz / Shelf display unit / Museum display
     
Cold Warrior
Moderator
Join Date: Jan 2001
Location: Polwaristan
Status: Offline
Reply With Quote
Dec 27, 2008, 12:22 PM
 
This is for connected users:
https://wiki.phys.ethz.ch/readme/man...onnected_users

#3 shows the command for connected shares

Basically smbstatus -b or smbstatus -S for users and shares, respectively.
     
driven  (op)
Addicted to MacNN
Join Date: May 2001
Location: Atlanta, GA
Status: Offline
Reply With Quote
Dec 27, 2008, 12:42 PM
 
Brilliant! THANK YOU!
- MacBook Air M2 16GB / 512GB
- MacBook Pro 16" i9 2.4Ghz 32GB / 1TB
- MacBook Pro 15" i7 2.9Ghz 16GB / 512GB
- iMac i5 3.2Ghz 1TB
- G4 Cube 500Mhz / Shelf display unit / Museum display
     
Cospefogo
Fresh-Faced Recruit
Join Date: Oct 2007
Location: Brazil
Status: Offline
Reply With Quote
Jan 5, 2009, 12:45 PM
 
Nice topic...
My turn:

I have 2 Macs and a external 500GB HDD plugged to one of them.
Sometimes I also connect my Xbox 1 (through SMB) to this HDD using the Mac
who has the drive plugged to it as a bridge. Everything works fine, but
sometimes, even after I have shut down the Xbox, my Mac Mini says it can't
eject the HDD because it is still in use.

Is there a way to KILL the all the SMB connections and shares
via terminal? I don't like to FORCE a device removal by turning the
HDD off without disconnecting.

Sorry for my poor english!
Cospefogo.
     
   
 
Forum Links
Forum 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
Top
Privacy Policy
All times are GMT -4. The time now is 08:40 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,