On my ubuntu server i have a few shares that I can access from finder in the style:
successfully without having to type in a password. When I try to mount the server shares from the command line with:
mount_smbfs '//share;user:@server.domain/share' /Volumes/share
mount_smbfs: server rejected the connection: Authentication error
If i mount one of the shares from the finder all others can be mounted from the command line without this error to appear.
I searched the different stackexchange sites and found the following releated questions and links:
- Why mac smb connect fails with login from cli but works from finder and with guest account?
- SMB connections throws authentication error after upgrading Mac OS X to 10.13
- Mac OS Sierra connected to SMB share keeps forgetting permissions at the folder level
Most of these have a few thousand views and quite a few upvotes. Most interestingly I found two comments where users express the frustration about this issue not being solved in a consistent way.
On the other hands there are lots of downvotes for answers and some of the questions – it seems as this problem is very well known and some enlighted users think it is very clear what to do.
Since this issue is annoying me daily I am daring to ask the question again with the specific context of Ubuntu 16.04 LTS and Mac OS High Sierra 10.13.6.
I fear that answers of the past do not work in this context any more.
The reasons I am asking the question in the first place is that the SMB connections get “lost” over night. This is a different behavior then on my other systems. The CIFS connection between my Ubuntu machines stay stable over time while Mac OS seems to have some disconnection policy.
So my issue could either be solve by making the connection stable or re-establishing the connection automatically with a script
How can a permanent or automatically-script reconnected SMB connection between a Mac OS High Sierra 10.3.6 client and an Ubuntu/Linux SMB server achieved?