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

Problem connecting to MacBook from Ubuntu linux over router-network

Hi!


On How to share files between Ubuntu and OSX? I found these apparently easy instructions on how to connect to my Mac from an Ubuntu PC:


"In mac OS, go to system preferences>sharing and enable "Personal File Sharing"


In Ubuntu open DashHome and open "Files" folder. (or however you know how to get to the files folder.)


In the sidebar, choose "Browse Network"


As long as the two machines are on the same network, your mac should

be in there as a directory that you can mount within Ubuntu."


On Ubuntu 20.04 I open Files (also called Nautilus) -> Other Locations -> I choose "MacBook Pro ..." under Networks. Then a window pops up asking for Username, Domain, Password. But no matter whether I use name and password for the Mac or Ubuntu it doesn't work. And what is "Domain"? I tried "Staff" (and "WORKGROUP"). Nothing works.


PS: The Mac is a MacBook Pro (13-inch, Mid 2012) running MacOS Catalina Ver. 10.15.7. It seems to be using SMB for networking.


Thank you.

MacBook Pro 13″, macOS 10.15

Posted on Apr 12, 2021 7:49 AM

Reply
Question marked as Best reply

Posted on Apr 15, 2021 5:42 AM

Well... first it didn't work:


xxx:~$ sudo  mount -v  -t  cifs  //macbook-pro-henrik.local/henrik  /mnt/macbook  -o  user="Henrik"
[sudo] password for henrik: 
Couldn't chdir to /mnt/macbook: No such file or directory
xxx:~$


But this solved it:


xxx:~$ cd /mnt
xxx:/mnt$ sudo mkdir macbook
xxx:/mnt$ sudo  mount -v  -t  cifs  //macbook-pro-henrik.local/henrik  /mnt/macbook  -o  user="Henrik"
Password for Henrik@//macbook-pro-henrik.local/henrik:  ***************      
mount.cifs kernel mount options: ip=192.168.1.227,unc=\\macbook-pro-henrik.local\henrik,user=Henrik,pass=********
xxx:/mnt$ 



Similar questions

20 replies

Apr 17, 2021 10:16 AM in response to henrik-dk

I'll have to let @Grant handle the macOS File Sharing specifics as I have rarely used it myself. Over a year ago I did File Sharing from macOS 10.15 Catalina and customized the sharing preferences a bit, but I only made changes within the File Sharing System Preferences pane. When I disabled File Sharing I encountered local permissions issues where I could not modify my own files in the folder that had been shared (this is all on the Mac that had been hosting the SMB server). I had never encountered this issue when sharing files from macOS previously. It took me a little bit of trial & error to identify and resolve the issue part of which I think involved deleting my customizations from the File Sharing System Preferences pane even though File Sharing was turned off. It isn't always just a simple answer with macOS. The lesson here is you may need to reset both the File Sharing preferences and even the permissions on your files/folders and start over with sharing again.


It doesn't help that Apple went with their own SMB implementation a while back so I have no knowledge of their newer lower level working of SMB on macOS. I'm barely familiar with configuring SMB shares on Linux as it is.


Hopefully @Grant will be able to provide you the necessary guidance.

Problem connecting to MacBook from Ubuntu linux over router-network

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