1

I am trying to mount a directory (dir3). However, on the windows machine the directory /server/dir1 is already a file shared folder, but I don't have permission to it. I have been given the read permissions to //server/dir1/dir2/dir3. An example of the command I am running and the response that I am getting are given below.

~# mount -vt cifs //server/dir1/dir2/dir3 /mount/directory -o credentials=/file/credentials
mount.cifs kernel mount options: ip=10.10.10.10,unc=\\server\dir2,credential=/file/credentials,ver=1,user=user,domain=sbts,prefixpath=dir2/dir3,pass=********
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

From my Mac I am able to use the same credentials to connect to //server/dir1/dir2/dir3, so I'm assuming there is something wrong with my "mount -t cifs" command and not my credentials.

My guess is that the mount command, in splitting the //server/dir1/dir2/dir3 line into unc=\\server\dir1 and prefixpath=dir2/dir3, is causing the transaction to try and test for permissions against \\server\dir1 and not //server/dir1/dir2/dir3.

Is there any way to keep the mount -t cifs command from splitting //server/dir1/dir2/dir3 into unc=\\server\dir1 and prefixpath=dir2/dir3? Or this there some other way to fix my problem?

Your Answer

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

Browse other questions tagged or ask your own question.