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 > Mac OS X > OSX File Sharing question

OSX File Sharing question
Thread Tools
Addicted to MacNN
Join Date: May 2001
Location: Atlanta, GA
Status: Offline
Reply With Quote
Dec 27, 2008, 10:10 AM
 
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. :-)
- iMac 3.2Ghz 1TB - MacBook Pro 15" Core i7 2.3Ghz / 256SSD (Work laptop)
- PowerMac G5 - Dual 2.0 Ghz, 3GB, Soundsticks!,
- Lenovo Thinkpad T510 (also a work laptop), Win 7 Enterprise, 8GB, 320GB HDD
     
Moderator
Join Date: Dec 2000
Location: Polwaristan
Status: Offline
Reply With Quote
Dec 27, 2008, 10:22 AM
 
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, 10:42 AM
 
Brilliant! THANK YOU!
- iMac 3.2Ghz 1TB - MacBook Pro 15" Core i7 2.3Ghz / 256SSD (Work laptop)
- PowerMac G5 - Dual 2.0 Ghz, 3GB, Soundsticks!,
- Lenovo Thinkpad T510 (also a work laptop), Win 7 Enterprise, 8GB, 320GB HDD
     
Fresh-Faced Recruit
Join Date: Oct 2007
Location: Brazil
Status: Offline
Reply With Quote
Jan 5, 2009, 10:45 AM
 
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.
     
   
Thread Tools
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 01:50 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2