I’m trying to connect to my Documents folder on a networked 2018 i5 Mac Mini 32GB RAM from an M4 Pro Mini with 64GB RAM via the command line using the following command:
mount_smbfs //[email protected]/Macintosh%20HD/Users/ptolemy/Documents" /System/Volumes/Data/mnt/Dionysos
(I have created the mount point on the M4 Mini)
I get the following errors after typing in the password:
mount_smbfs: server rejected the connection: Authentication error
or
mount_smbfs: mount error: //[email protected]/Macintosh%20HD/Users/ptolemy/Documents: Operation not permitted
Google and Grok have suggested changing the password special characters to their URL encoded equivalents. I even converted the entire password to percent encoding at one time. But no success.
File Sharing and Remote Login are turned on the remote machine. I am able to access the same drive via Finder with no problem. I can also SSH into the same computer.
When I turned on SMB sharing…for Windows I got the “Operation not permitted” error for the first time.
I want to write a shell script to attach the remote folder and then mount a dmg file as a local volume on the M4.
I don’t know what to try next. I would be most grateful for any help.
$ mount_smbfs "//[email protected]/Macintosh%20HD/Users/ptolemy" /System/Volumes/Data/mnt/Dionysos
Password for Dionysos.local:
mount_smbfs: server rejected the connection: Authentication error**
mount_smbfs "//[email protected]/Macintosh%20HD/Users/Shared" /System/Volumes/Data/mnt/Dionysos
Password for Dionysos.local:
mount_smbfs: server rejected the connection: Authentication error
I tried the following:
ptolemy@Zeus ~ % mount -t smbfs //[email protected] /System/Volumes/Data/mnt/Dionysos
Password for Dionysos.local:
mount_smbfs: server rejected the connection: Authentication error
mount: /System/Volumes/Data/mnt/Dionysos failed with 77
Any idea what 77 means?
ptolemy@Zeus ~ % ptolemy@Zeus ~ % ls -ld /System/Volumes/Data/mnt{,/Dionysos}
drwxr-xr-x 3 root wheel 96 23 Jan 19:01 /System/Volumes/Data/mnt
drwxr-xr-x@ 2 root wheel 64 23 Jan 19:01 /System/Volumes/Data/mnt/Dionysos
This is my latest attempt at solving this problem:
-
I have moved the server address from my Documents folder to
Dionysos.local/Macintosh%20HD/System/Volumes/Data/Shared/and made it read/write for everybody. -
I made
/System/Volumes/Data/mnt/Dionysoson the local M4 also read/write everybody. -
In File Sharing on the server system settings, I added the path to the new location
Alas same outcome:
mount_smbfs: server rejected the connection: Authentication error
- On Grok’s advice I tried this:
“…Under “Windows File Sharing,” select the account “ptolemy” and enter its password when prompted. This stores the password securely for SMB access.”
After doing that, I now get the following error message:
mount_smbfs: mount error: //Dionysos.local/Macintosh%20HD/System/Volumes/Data/Shared: Operation not permitted
I’m at my wits end.
Thanks @nohillside. Ran the command as suggested:
ptolemy@Zeus ~ % xattr -l /System/Volumes/Data/mnt/Dionysos
com.apple.provenance:
Don’t understand the output. Shouldn’t there be more attributes?
Also I have tracked down the logs on the M4 Zeus and have copied all 1800 lines containing smbfs to a text file. Apologies, I don’t see a way to upload a file. Cheers.