Timeline for Mounting a Samba share from the command line doesn't work unless you're root on the Mac. No problem if mounting a true Windows share
Current License: CC BY-SA 4.0
11 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 26, 2022 at 6:48 | comment | added | Seamus | @ThrowAwayAccount: Here are 2 references that may help: 1, 2. NOTE #2 uses NFS mounts instead of SMB. | |
Nov 26, 2022 at 6:45 | comment | added | Seamus |
@ThrowAwayAccount: As the politicians say, "I feel your pain". This is a perennially frustrating experience, IMHO the result of two organizations with the poorest documentation in the industry: Apple and Synology! Since posting this answer I have found what seems to be a more consistent method of mounting my SMB drives - using Apple's automount feature. One potentially important caveat: I use Catalina & Mojave. As is de rigueur for Apple documentation is either non-existent or impossible to find.
|
|
Nov 25, 2022 at 11:11 | comment | added | Throw Away Account |
I was issued a new Mac by my employer, with mount_smbfs 5.0.0 installed. I'm getting exactly the same behavior. But I've also enabled SMBFS on a real Windows machine. mount_smbfs works fine when mounting the Windows share. It only fails when connecting to Samba.
|
|
Aug 12, 2022 at 22:51 | comment | added | Throw Away Account | No. It failed in one way, then started failing in another way. | |
Aug 4, 2022 at 22:31 | comment | added | Seamus | @ThrowAwayAccount: Are you saying it worked for a time, and then quit working? | |
Aug 4, 2022 at 21:03 | comment | added | Throw Away Account |
Today the behavior has reverted to what I described in the original question: "File exists" if the mount point exists, and "No such file or directory" if it doesn't. No error if I run the same command as root, but then the mount is root-owned and I have no access from my unprivileged user. It doesn't matter if I use the IP address or the hostname, and it also doesn't matter if I include the password in the URL or allow mount_smbfs to prompt for it.
|
|
Jul 31, 2022 at 8:05 | comment | added | Seamus | @ThrowAwayAccount: My system (Catalina) also uses mount_smbfs: version 3.4.4. Your error message suggests that it can't resolve your hostname (host?? :). You should try to use its IP address instead of the hostname. I've edited my answer to include some troubleshooting options - keep me posted. | |
Jul 31, 2022 at 8:04 | history | edited | Seamus | CC BY-SA 4.0 |
add troubleshooting steps
|
Jul 31, 2022 at 6:51 | comment | added | Throw Away Account |
I wonder if getting a newer version of mount_smbfs would help. It's apparently open-source, but I can't get Google to show me where I can download the complete build tree.
|
|
Jul 31, 2022 at 6:51 | comment | added | Throw Away Account |
You're doing the same thing I'm doing, the only difference being it works on your system and it doesn't work on mine. nsmb.conf is absent on my system also. There's one other difference: You're putting the password directly in the URL, while I'm letting mount_smbfs prompt me for it. I get the error mount_smbfs: URL parsing failed, please correct the URL and try again: Invalid argument if I try putting the password in the URL. I just realized that mount_smbfs has its own version number: 3.4.4 on my system.
|
|
Jul 31, 2022 at 6:30 | history | answered | Seamus | CC BY-SA 4.0 |