Mount a windows share into Linux - failed No such file or directory although accessible in windows file explorer

I tried to mount a windows share into the Linux server by using the following command:

mount -t cifs -v -o username=myname,password=mypassword // /my/local/path

Then it failed with error: mount error (2): No such file or directory

Also, I tried to mount other paths:

// - mount error(13) Permission Denied
// - mount error(13) Permission Denied
// - success

I highly suspect that first 2 paths are not allowed to access by me as the admin added some restriction on them.

Also, I can confirm that the path I want to access is existing as I can see it in Windows File Explorer.

Any ideas why? really appreciated


More Failed Attempts:

  1. -o username=name,password=pass,domain=mydomain,vers=1.0: Mount error: Server abruptly closed the connection.
  2. -o username=name,password=pass,domain=mydomain with vers=2.0 or 2.1 or 3.0: failed with mount error (2) No such file or directory
0

1 Answer

Solved by adding “List Folder” permission to // and //.

So does it mean the folder cannot be mounted and considered as not existing if the user does not have any permission to its parent folders?

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like