Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

"there is a user sharing this computer", who?

This is driving me nuts. I have a MacMini (10.7.4) shutting down each night at 11 PM and restarting at 6 AM. Occasionally (and every day this week), I see the message, "there is a user sharing this computer" when it cannot shut down. Is there a way I can find out which computer it is? I am on a home LAN with three Macs and one PC. I picked up the AFPStatus app but it doesn't help. At the moment, it shows "File Sharing (enabled)" but no IP address of an attached computer. (It has done so on occasion, but not today.)


I have File Sharing enabled but limited to certain accounts. (I mention this because Internet research on this mostly says, 'turn File Sharing off".) In Sharing control panel > File Sharing > Options, I see "number of users connected: 1".


I have an Apple TV in the living room for the TV, connected via Ethernet. Occasionally, I watch iTunes TV shows from this computer. iTunes is not running this morning and Apple TV is sleeping. So, it shouldn't be the sharing device.


There has to be some way to determine which computer is connected for sharing to this Mac. Any suggestions?

Mac mini, Mac OS X (10.7.4)

Posted on Jul 31, 2012 4:49 PM

Reply
Question marked as Best reply

Posted on Aug 1, 2012 9:38 PM

Since you found that useful and gave me points to hit 3,000, here is another tip for advanced OSX users. Open Applescript Editor>Preferences and enable Script Menu in the Menubar. Bring Terminal to the front and click the script menu icon and select the top item "Open Scripts Folder" then "Open Terminal Scripts Folder".

User uploaded file


Notice that a new folder will be created for Terminal scripts, which pops open empty. You can do this for any application. This menu is contextual, meaning it changes with whatever application is frontmost. Put an Applescript in this folder containing text like


tell application "Terminal"

if not (exists window 1) then do script ""

do script "netstat -na | grep 548" in front window

end tell

Call the script "LAN AFP users.scpt" and put it in that folder. Now you have a convenient way to run the command whenever Terminal is in front. You can clone the script with whatever commands you want, and even make subfolders for a very thorough menu. I have a "Network" submenu containing 31 Applescripts. You can even put text files in the menu. Great Mac feature!


-- Gnarlie

9 replies
Question marked as Best reply

Aug 1, 2012 9:38 PM in response to Paul Corr1

Since you found that useful and gave me points to hit 3,000, here is another tip for advanced OSX users. Open Applescript Editor>Preferences and enable Script Menu in the Menubar. Bring Terminal to the front and click the script menu icon and select the top item "Open Scripts Folder" then "Open Terminal Scripts Folder".

User uploaded file


Notice that a new folder will be created for Terminal scripts, which pops open empty. You can do this for any application. This menu is contextual, meaning it changes with whatever application is frontmost. Put an Applescript in this folder containing text like


tell application "Terminal"

if not (exists window 1) then do script ""

do script "netstat -na | grep 548" in front window

end tell

Call the script "LAN AFP users.scpt" and put it in that folder. Now you have a convenient way to run the command whenever Terminal is in front. You can clone the script with whatever commands you want, and even make subfolders for a very thorough menu. I have a "Network" submenu containing 31 Applescripts. You can even put text files in the menu. Great Mac feature!


-- Gnarlie

Jul 31, 2012 7:22 PM in response to Frank Caggiano

AFPStatus showed File Sharing (enabled). It did not show an IP address while the Sharing control panel showed 1 connection under File Sharing > Options. I see I have both AFP and SMB enabled in that window.


The simple fix is uncheck File Sharing in the Sharing control panel. That throws everyone off. Re-enabling I then see "0 users connected" in that window.


If I walk to another Mac and connect to this Mac, I show 1 user connected on this Mac. AFPStatus shows it also. If I eject the drive connection on the other Mac using the sidebar, returning to this Mac shows 0 users connected after a few moments. I also hear AFPStatus dinging away with the changes.


So, things seem to be working well now. AFPStatus shows the IP when the other Mac is connected, etc.


By the way, I seem to remember--probably prior to OS X--that one could disconnect a user from a file sharing monitor window. That facility seems to be gone.


I'm not sure why sometimes it works as expected and other times the remote user stays connected somehow. This Mac was not on that Mac's desktop as a drive at the time. (I have show network drives enabled in Finder prefs.)

Aug 1, 2012 8:16 PM in response to Gnarlodious

Much appreciated! There always seems to be a command-line string that can get you what you want. This, along with AFPStatus after activating logging, will go a long way to troubleshooting more quickly. I have a list of the MAC hardware addresses of our various devices and following the 'netstat' string with 'arp -a' gives me a list to find out who's who. Thanks again.

"there is a user sharing this computer", who?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.