I am unable to turn on File Sharing on my iMac running macOS Catalina.

I cannot get the File Sharing to switch on with my old iMac running Catalina. It has been working and I have been sharing files between it and another M1 laptop for some months. I failed to connect to the MacBook this morning so did the usual of turning off the File Share and then rebooting and then tried to switch it back on by it will not!


I have even booted up in recovery mode and reinstalled Catalina but to no avail.


Can anyone think of any reason and what I can do to get it to switch on?


Thanks


[Re-Titled By Moderator]


iMac Line (2012 and Later)

Posted on Jun 14, 2022 12:21 AM

Reply
Question marked as Top-ranking reply

Posted on Jun 17, 2022 8:50 PM

I actually found the attached thread useful by manually turning on file sharing using TERMINAL.


Enable and disable file sharing from term… - Apple Community


Here's my synopsis:


  1. Close system Preferences (If open)
  2. Open Terminal
  3. Paste: sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.AppleFileServer.plist and press [Enter]
  4. Type your computer password (Typing will not show, do it anyway) and press [Enter]
  5. Paste: sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.smbd.plist and press [Enter]
  6. Type exit and press [Enter]
  7. Once the process finishes, close the Terminal window.
  8. Open System Preferences and go to Sharing
  9. DONE!


I was having this same exact problem with my Mac Mini running Catalina 10.15.7 and this fixed it!

Now my Mac Mini shows it's shared folders on my Macbook Pro running High Sierra 10.13.6!

Similar questions

85 replies
Question marked as Top-ranking reply

Jun 17, 2022 8:50 PM in response to in_van

I actually found the attached thread useful by manually turning on file sharing using TERMINAL.


Enable and disable file sharing from term… - Apple Community


Here's my synopsis:


  1. Close system Preferences (If open)
  2. Open Terminal
  3. Paste: sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.AppleFileServer.plist and press [Enter]
  4. Type your computer password (Typing will not show, do it anyway) and press [Enter]
  5. Paste: sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.smbd.plist and press [Enter]
  6. Type exit and press [Enter]
  7. Once the process finishes, close the Terminal window.
  8. Open System Preferences and go to Sharing
  9. DONE!


I was having this same exact problem with my Mac Mini running Catalina 10.15.7 and this fixed it!

Now my Mac Mini shows it's shared folders on my Macbook Pro running High Sierra 10.13.6!

Nov 20, 2023 12:33 PM in response to Bob Hawkins

I’ve been struggling with this problem for two days. I couldn’t check the “File sharing” box either. Then I just started the smbd process with the command in the terminal

sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.smbd.plist

After that it became possible to check the box “File sharing”. I restarted the computer, Shared access remained active and now everything is working. Hope this helps.

Jun 16, 2022 4:59 AM in response to ryan_nmr

Reinstalling Catalina didn't work for me either but today I decided to smash the nut with a sledgehammer and totally erased the iMac. After doing a SuperDuper backup I booted up in Recovery modem went into Disk Utilities and erased/removed the internal volumes and then added a new one. I then installed Catalina again on that new volume. Low and behold I could then both turn on and off the File Sharing. Great, I thought, until I then ran a software update check and there was a security update for the version that I was running After updating that I found that File Sharing was still on. Brilliant, I thought, until I tried turning it off and it would not turn off.


Just to make sure and as I am retired with plenty of spare time on my hands, I repeated the whole exercise again and decided that the security update is the reason for File Sharing not working.


It's now on and will have to stay that way until they come up with a fix.


BUT.... I have 2 M1 laptops and this 2012 iMac and use the same apple ID on all machines with the documents uploaded to iCloud and available to all devices logged in with the ID. After going through the erasing etc above and setting up iMac with the same ID I cannot seem to access the same iCloud as the other devices. I have checked the log in credentials but the iCloud that the iMac sees does not have the documents that the other devices have. I even went to appleid.com and changed the password which I then had to update on all devices, including the iMac so that suggests that they are all on the same ID.


I'm in the process of restoring the SuperDuper backup so possibly the iMac may then be able to see the same iCloud but if there's something that I'm missing I'd be grateful if you could advise.


Regards



Jun 16, 2022 6:14 AM in response to Bob Hawkins

Hello Bob,


Make sure that your current user account has the correct permissions using the guidance from Set up file sharing on Mac - Apple Support. Those settings may be preventing you from making these changes or accessing the files.


If that doesn't help, check to see if this happens in another user account. Testing in another admin user account can help to isolate where this occurs. If you don't have another admin user account to test, you can set up a temporary account using the steps from Set up users, guests, and groups on Mac.


In most cases, issues that occur in one user account are related to login items. So, if you find that an issue only occurs in your user account, remove your login items and test again. Check out Remove login items to resolve startup problems on your Mac.


Have a great day!

May 22, 2024 5:31 PM in response to Bob Hawkins

Had the same issue running macOS Catalina Version 10.15.7 on a Mac mini Server (Late 2012). This happened *after* reinstalling the OS. Prior to that File Sharing had been working flawlessly for years.


Many thanks to Editor1979 for that insightful recommendation.


All that was needed to make File Sharing 'clickable' once more was Step 3:


sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.AppleFileServer.plist


Mar 17, 2024 2:59 PM in response to Bob Hawkins

Hi everyone, the solution from editor1979 only solve the problem of turn on the smbd and AFP enable share. I'm trying to share a external USB HDD from Mac Mini with MacOS Catalina to use for Time Machine, my client Mac is a Macbook Pro 16" (intel) with Sonoma.


With the editor1979 solution I get to share a disk or folder, but when I try to use to activate a Time Machine from the Macbook Pro with Sonoma with that disk appears this error: The operation couldn’t be completed. (com.apple.TimeMachine.SettingsExtension error 5.)


Searching a solution I found the problem is a security update in MacOS Catalina that change permissions on "smbd" program.


A solution for this is give permissions to smbd to read/write all complete disk:


  1. Open system Preferences
  2. Security & Privacy
  3. Privacy tab
  4. Full Disk Access
  5. Click on "+" to add an entry (if you can't click the "+" icon, make click on the padlock and authenticate with an administrator account or just type your password)
  6. Press Command + Shift + g (or Command + G , see the G is uppercase)
  7. copy or type this: /usr/sbin to go to sbin folder, click o go
  8. find and choose "smbd" file
  9. See that recent added "smbd" is checked
  10. Done! your share disk is Ok to use in Time Machine client.


I found the solution in this link thanks to VideoBeagle user: https://forums.macrumors.com/threads/cant-connect-to-mounted-usb-drives-over-network-after-catalina-upgrade.2357001/


You can apply this for the AFP (AppleFileServer) program too.


Remember that you can share APFS disk only with smbd, AFP ins't supported anymore for disks formatted with APFS.


I hope this helps.


Aug 4, 2024 9:36 PM in response to Christian Sebes1

For anyone who is unable to mount remote shared volumes after successfully authenticating with AFP, try SMB instead. Example: smb://mac-name.local or smb://user@mac-name.local/share-name . It seems that AFP is deprecated:

Starting with OS X 10.9 MavericksServer Message Block (SMB) was made the primary file sharing protocol, with the ability to run an AFP server removed later in macOS 11 Big Sur.

https://en.wikipedia.org/wiki/Apple_Filing_Protocol


If you need to run the load/unload scripts frequently, you can setup a simple AppleScript in the global Script menu.


  1. open ScriptEditor.app
  2. go to Preferences… > General > Script Menu and select Show Script menu in menu bar
  3. from the Script menu icon on the upper right menubar, choose Open Scripts Folder > Open User Scripts Folder
  4. back in ScriptEditor, select File > New
  5. enter the bolded text: do shell script "sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.smbd.plist" with administrator privileges
  6. save to /Users/your-user-name/Library/Scripts as "Start SMB" or save to Desktop and drag the file to the Scripts folder you opened in step 3


To run the script, open the Script menu in the upper right menu bar and select the Start SMB script that you created. You will be prompted to enter administrator credentials.


To hide the junk scripts, go back to Script Editor preferences and and uncheck "Show Computer scripts".


Jun 16, 2022 10:25 AM in response to faith185

faith,

I think Bob Hawkins, rye-guy, ryan_nmr and myself would like to repeat the same thing I told Dustin yesterday:


This is not the problem.


We all had perfectly working configurations until like a couple days ago. Then according to Bob's work (see his second post above), the latest security update on Catalina made the main checkbox to turn sharing on or off not work anymore. So if it's on, it cannot be turned off, and if it's off it cannot be turned on.


That's a strange issue. Can someone at Apple write a bug on Radar for this?


(In my case since that machine could actually get to BigSur I finally upgraded and things work again, but for everyone whose hardware is stuck pre BigSur this is a major issue.)

Sep 15, 2022 10:14 AM in response to Christian Sebes1

Launch Activity Monitor and search for smbd. If you don't see that, then SMB file sharing is not on. You might have to "tickle" your network to make sure the process is active. I have found that if I have not used any network services for a while smbd disappears, but if I use the network SMB service (mount a drive, move a file etc.) then it reappears. If you do that and still don't see smbd, then it is not running. Try running the SMB load command in Terminal again - if it thinks SMB is already loaded, it will tell you. Try unloading, wait several minutes, then load it again - also waiting several minutes for the process to fully start up. I learned yesterday, after hours of messing with this, that the Terminal commands are not instantaneous,

Jun 15, 2022 9:39 AM in response to Dustin_R_308

Dustin, that page does not help for this case.

The checkbox to turn on File Sharing never become checked. I have the same issue as Bob on a Catalina device, it just wont turn on.

-No error message, nothing in system.log.

-Only folder I have configured for sharing is my Public folder

-smbd has full disk access in Privacy settings


it used to work, but it doesn't anymore.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

I am unable to turn on File Sharing on my iMac running macOS Catalina.

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