Jump to content
RubberSeoul

SMB/CIFS share from Linux

Recommended Posts

Does anyone have any idea how to connect to a SMB/CIFS shared folder requiring credentials, from a Linux host?

 

I believe wnetaddconnection2 can be used for this purpose from Windows host, but I have been unable to determine how to from Linux.

Any help appreciated.

 

Share this post


Link to post

In the past I have encountered some issues with the classic mount scheme, especially in WiFi environments, where a temporarily lost connection could lead to a permanently (until next reboot) lost mount. I have found autofs to be a perfect solution for this and also a good way to reduce network traffic. Here is a small explanation: https://documentation.suse.com/sles/15-SP2/html/SLES-all/cha-autofs.html. And after looking into this I found newer versions of systemd are capable of the same thing, just read here: https://anteru.net/blog/2019/automatic-mounts-using-systemd/.

Share this post


Link to post

Thanks guys. Was hoping to set it up in code, but gonna go with Brian's suggestion of just mounting in Linux. 
Cheers.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×