Ubuntu can't mount windows share











up vote
2
down vote

favorite












I want to access by termin a Windows share so on my Ubuntu 14.04 system I executed the following command:



sudo mount.cifs -o username=dana //192.168.1.4/Users  /mnt/


After entering the sudo password and the windwos user password I got these error




mount error(13): Permission denied Refer to the mount.cifs(8) manual
page (e.g. man mount.cifs)











share|improve this question


























    up vote
    2
    down vote

    favorite












    I want to access by termin a Windows share so on my Ubuntu 14.04 system I executed the following command:



    sudo mount.cifs -o username=dana //192.168.1.4/Users  /mnt/


    After entering the sudo password and the windwos user password I got these error




    mount error(13): Permission denied Refer to the mount.cifs(8) manual
    page (e.g. man mount.cifs)











    share|improve this question
























      up vote
      2
      down vote

      favorite









      up vote
      2
      down vote

      favorite











      I want to access by termin a Windows share so on my Ubuntu 14.04 system I executed the following command:



      sudo mount.cifs -o username=dana //192.168.1.4/Users  /mnt/


      After entering the sudo password and the windwos user password I got these error




      mount error(13): Permission denied Refer to the mount.cifs(8) manual
      page (e.g. man mount.cifs)











      share|improve this question













      I want to access by termin a Windows share so on my Ubuntu 14.04 system I executed the following command:



      sudo mount.cifs -o username=dana //192.168.1.4/Users  /mnt/


      After entering the sudo password and the windwos user password I got these error




      mount error(13): Permission denied Refer to the mount.cifs(8) manual
      page (e.g. man mount.cifs)








      linux windows ubuntu mount shared-folders






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jun 29 '14 at 13:21









      Dan

      3719




      3719






















          4 Answers
          4






          active

          oldest

          votes

















          up vote
          1
          down vote













          Make sure your account has permissions to mount. Use smbclient to try to access the drive - the smbclient command will give much more meaningful error messages why you cannot mount.



          For example:



          smbclient \machinenamefoldername -U [username] [password]


          If it works, you will get an smb prompt like:



          smb>


          If not, you will get an error, such as NT_LOGON_FAILUIRE (password wrong) or if the login works but you do not have access on that folder, it will give you that error (which I can't recall off the top of my head)



          Check here for info on smbclient and smbclient syntax:
          Mounting Windows Shares On Linux Using Samba/CIFS/SMBFS






          share|improve this answer






























            up vote
            0
            down vote













            mount(8) - Linux man page



            Return Codes
            mount has the following return codes (the bits can be ORed):
            0: success
            1: incorrect invocation or permissions
            2: system error (out of memory, cannot fork, no more loop devices)
            4: internal mount bug
            8: user interrupt
            16: problems writing or locking /etc/mtab
            32: mount failure
            64: some mount succeeded


            This suggest that you have generated 3 errors:




            1. user interrupt

            2. internal mount bug

            3. incorrect invocation or permissions






            share|improve this answer




























              up vote
              0
              down vote













              First thing always check if user has access to share and not only permissions to folder also use domain option and use -v to check debug messages.






              share|improve this answer




























                up vote
                0
                down vote













                use this for mounting Windows share to your local Linux machine:



                sudo apt-get install cifs-utils
                sudo mount -t cifs //hostname.your.windows.machine.hostname/Your_Share /home/user/shares/hostname/ -o vers=3.0,username=user,domain=hostname,uid=1000


                Hope it's help.






                share|improve this answer





















                  Your Answer








                  StackExchange.ready(function() {
                  var channelOptions = {
                  tags: "".split(" "),
                  id: "3"
                  };
                  initTagRenderer("".split(" "), "".split(" "), channelOptions);

                  StackExchange.using("externalEditor", function() {
                  // Have to fire editor after snippets, if snippets enabled
                  if (StackExchange.settings.snippets.snippetsEnabled) {
                  StackExchange.using("snippets", function() {
                  createEditor();
                  });
                  }
                  else {
                  createEditor();
                  }
                  });

                  function createEditor() {
                  StackExchange.prepareEditor({
                  heartbeatType: 'answer',
                  convertImagesToLinks: true,
                  noModals: true,
                  showLowRepImageUploadWarning: true,
                  reputationToPostImages: 10,
                  bindNavPrevention: true,
                  postfix: "",
                  imageUploader: {
                  brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                  contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                  allowUrls: true
                  },
                  onDemand: true,
                  discardSelector: ".discard-answer"
                  ,immediatelyShowMarkdownHelp:true
                  });


                  }
                  });














                  draft saved

                  draft discarded


















                  StackExchange.ready(
                  function () {
                  StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f774753%2fubuntu-cant-mount-windows-share%23new-answer', 'question_page');
                  }
                  );

                  Post as a guest















                  Required, but never shown

























                  4 Answers
                  4






                  active

                  oldest

                  votes








                  4 Answers
                  4






                  active

                  oldest

                  votes









                  active

                  oldest

                  votes






                  active

                  oldest

                  votes








                  up vote
                  1
                  down vote













                  Make sure your account has permissions to mount. Use smbclient to try to access the drive - the smbclient command will give much more meaningful error messages why you cannot mount.



                  For example:



                  smbclient \machinenamefoldername -U [username] [password]


                  If it works, you will get an smb prompt like:



                  smb>


                  If not, you will get an error, such as NT_LOGON_FAILUIRE (password wrong) or if the login works but you do not have access on that folder, it will give you that error (which I can't recall off the top of my head)



                  Check here for info on smbclient and smbclient syntax:
                  Mounting Windows Shares On Linux Using Samba/CIFS/SMBFS






                  share|improve this answer



























                    up vote
                    1
                    down vote













                    Make sure your account has permissions to mount. Use smbclient to try to access the drive - the smbclient command will give much more meaningful error messages why you cannot mount.



                    For example:



                    smbclient \machinenamefoldername -U [username] [password]


                    If it works, you will get an smb prompt like:



                    smb>


                    If not, you will get an error, such as NT_LOGON_FAILUIRE (password wrong) or if the login works but you do not have access on that folder, it will give you that error (which I can't recall off the top of my head)



                    Check here for info on smbclient and smbclient syntax:
                    Mounting Windows Shares On Linux Using Samba/CIFS/SMBFS






                    share|improve this answer

























                      up vote
                      1
                      down vote










                      up vote
                      1
                      down vote









                      Make sure your account has permissions to mount. Use smbclient to try to access the drive - the smbclient command will give much more meaningful error messages why you cannot mount.



                      For example:



                      smbclient \machinenamefoldername -U [username] [password]


                      If it works, you will get an smb prompt like:



                      smb>


                      If not, you will get an error, such as NT_LOGON_FAILUIRE (password wrong) or if the login works but you do not have access on that folder, it will give you that error (which I can't recall off the top of my head)



                      Check here for info on smbclient and smbclient syntax:
                      Mounting Windows Shares On Linux Using Samba/CIFS/SMBFS






                      share|improve this answer














                      Make sure your account has permissions to mount. Use smbclient to try to access the drive - the smbclient command will give much more meaningful error messages why you cannot mount.



                      For example:



                      smbclient \machinenamefoldername -U [username] [password]


                      If it works, you will get an smb prompt like:



                      smb>


                      If not, you will get an error, such as NT_LOGON_FAILUIRE (password wrong) or if the login works but you do not have access on that folder, it will give you that error (which I can't recall off the top of my head)



                      Check here for info on smbclient and smbclient syntax:
                      Mounting Windows Shares On Linux Using Samba/CIFS/SMBFS







                      share|improve this answer














                      share|improve this answer



                      share|improve this answer








                      edited Nov 21 '16 at 7:01









                      3498DB

                      15.6k114762




                      15.6k114762










                      answered Jul 1 '14 at 17:21









                      ben

                      1585




                      1585
























                          up vote
                          0
                          down vote













                          mount(8) - Linux man page



                          Return Codes
                          mount has the following return codes (the bits can be ORed):
                          0: success
                          1: incorrect invocation or permissions
                          2: system error (out of memory, cannot fork, no more loop devices)
                          4: internal mount bug
                          8: user interrupt
                          16: problems writing or locking /etc/mtab
                          32: mount failure
                          64: some mount succeeded


                          This suggest that you have generated 3 errors:




                          1. user interrupt

                          2. internal mount bug

                          3. incorrect invocation or permissions






                          share|improve this answer

























                            up vote
                            0
                            down vote













                            mount(8) - Linux man page



                            Return Codes
                            mount has the following return codes (the bits can be ORed):
                            0: success
                            1: incorrect invocation or permissions
                            2: system error (out of memory, cannot fork, no more loop devices)
                            4: internal mount bug
                            8: user interrupt
                            16: problems writing or locking /etc/mtab
                            32: mount failure
                            64: some mount succeeded


                            This suggest that you have generated 3 errors:




                            1. user interrupt

                            2. internal mount bug

                            3. incorrect invocation or permissions






                            share|improve this answer























                              up vote
                              0
                              down vote










                              up vote
                              0
                              down vote









                              mount(8) - Linux man page



                              Return Codes
                              mount has the following return codes (the bits can be ORed):
                              0: success
                              1: incorrect invocation or permissions
                              2: system error (out of memory, cannot fork, no more loop devices)
                              4: internal mount bug
                              8: user interrupt
                              16: problems writing or locking /etc/mtab
                              32: mount failure
                              64: some mount succeeded


                              This suggest that you have generated 3 errors:




                              1. user interrupt

                              2. internal mount bug

                              3. incorrect invocation or permissions






                              share|improve this answer












                              mount(8) - Linux man page



                              Return Codes
                              mount has the following return codes (the bits can be ORed):
                              0: success
                              1: incorrect invocation or permissions
                              2: system error (out of memory, cannot fork, no more loop devices)
                              4: internal mount bug
                              8: user interrupt
                              16: problems writing or locking /etc/mtab
                              32: mount failure
                              64: some mount succeeded


                              This suggest that you have generated 3 errors:




                              1. user interrupt

                              2. internal mount bug

                              3. incorrect invocation or permissions







                              share|improve this answer












                              share|improve this answer



                              share|improve this answer










                              answered Jun 29 '14 at 13:55









                              LDC3

                              2,0121915




                              2,0121915






















                                  up vote
                                  0
                                  down vote













                                  First thing always check if user has access to share and not only permissions to folder also use domain option and use -v to check debug messages.






                                  share|improve this answer

























                                    up vote
                                    0
                                    down vote













                                    First thing always check if user has access to share and not only permissions to folder also use domain option and use -v to check debug messages.






                                    share|improve this answer























                                      up vote
                                      0
                                      down vote










                                      up vote
                                      0
                                      down vote









                                      First thing always check if user has access to share and not only permissions to folder also use domain option and use -v to check debug messages.






                                      share|improve this answer












                                      First thing always check if user has access to share and not only permissions to folder also use domain option and use -v to check debug messages.







                                      share|improve this answer












                                      share|improve this answer



                                      share|improve this answer










                                      answered Jun 14 '16 at 8:41









                                      synchris

                                      485




                                      485






















                                          up vote
                                          0
                                          down vote













                                          use this for mounting Windows share to your local Linux machine:



                                          sudo apt-get install cifs-utils
                                          sudo mount -t cifs //hostname.your.windows.machine.hostname/Your_Share /home/user/shares/hostname/ -o vers=3.0,username=user,domain=hostname,uid=1000


                                          Hope it's help.






                                          share|improve this answer

























                                            up vote
                                            0
                                            down vote













                                            use this for mounting Windows share to your local Linux machine:



                                            sudo apt-get install cifs-utils
                                            sudo mount -t cifs //hostname.your.windows.machine.hostname/Your_Share /home/user/shares/hostname/ -o vers=3.0,username=user,domain=hostname,uid=1000


                                            Hope it's help.






                                            share|improve this answer























                                              up vote
                                              0
                                              down vote










                                              up vote
                                              0
                                              down vote









                                              use this for mounting Windows share to your local Linux machine:



                                              sudo apt-get install cifs-utils
                                              sudo mount -t cifs //hostname.your.windows.machine.hostname/Your_Share /home/user/shares/hostname/ -o vers=3.0,username=user,domain=hostname,uid=1000


                                              Hope it's help.






                                              share|improve this answer












                                              use this for mounting Windows share to your local Linux machine:



                                              sudo apt-get install cifs-utils
                                              sudo mount -t cifs //hostname.your.windows.machine.hostname/Your_Share /home/user/shares/hostname/ -o vers=3.0,username=user,domain=hostname,uid=1000


                                              Hope it's help.







                                              share|improve this answer












                                              share|improve this answer



                                              share|improve this answer










                                              answered Jun 24 '17 at 7:24









                                              Vitalii Nesterenko

                                              1




                                              1






























                                                  draft saved

                                                  draft discarded




















































                                                  Thanks for contributing an answer to Super User!


                                                  • Please be sure to answer the question. Provide details and share your research!

                                                  But avoid



                                                  • Asking for help, clarification, or responding to other answers.

                                                  • Making statements based on opinion; back them up with references or personal experience.


                                                  To learn more, see our tips on writing great answers.





                                                  Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                                                  Please pay close attention to the following guidance:


                                                  • Please be sure to answer the question. Provide details and share your research!

                                                  But avoid



                                                  • Asking for help, clarification, or responding to other answers.

                                                  • Making statements based on opinion; back them up with references or personal experience.


                                                  To learn more, see our tips on writing great answers.




                                                  draft saved


                                                  draft discarded














                                                  StackExchange.ready(
                                                  function () {
                                                  StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f774753%2fubuntu-cant-mount-windows-share%23new-answer', 'question_page');
                                                  }
                                                  );

                                                  Post as a guest















                                                  Required, but never shown





















































                                                  Required, but never shown














                                                  Required, but never shown












                                                  Required, but never shown







                                                  Required, but never shown

































                                                  Required, but never shown














                                                  Required, but never shown












                                                  Required, but never shown







                                                  Required, but never shown







                                                  Popular posts from this blog

                                                  flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

                                                  Mangá

                                                   ⁒  ․,‪⁊‑⁙ ⁖, ⁇‒※‌, †,⁖‗‌⁝    ‾‸⁘,‖⁔⁣,⁂‾
”‑,‥–,‬ ,⁀‹⁋‴⁑ ‒ ,‴⁋”‼ ⁨,‷⁔„ ‰′,‐‚ ‥‡‎“‷⁃⁨⁅⁣,⁔
⁇‘⁔⁡⁏⁌⁡‿‶‏⁨ ⁣⁕⁖⁨⁩⁥‽⁀  ‴‬⁜‟ ⁃‣‧⁕‮ …‍⁨‴ ⁩,⁚⁖‫ ,‵ ⁀,‮⁝‣‣ ⁑  ⁂– ․, ‾‽ ‏⁁“⁗‸ ‾… ‹‡⁌⁎‸‘ ‡⁏⁌‪ ‵⁛ ‎⁨ ―⁦⁤⁄⁕