cifs mounting all files as root ownerTemporary R+W CIFS share for non-root accounts?How to mount writable samba shares?Slow login when CIFS mounts are unavailableMounting network share with CIFS stopped working on 17.10cifs changed behaviourHow to specify a password when mounting a smb share with gio?CIFS mounts and Kerberos - permissions on access or best practiceusing cifs and cannot paste to folder or change ownershipHow does one mount UNC root? (SMB / CIFS)Ubuntu 18.04 LTS : Mount CIFS On Boot

Is HostGator storing my password in plaintext?

What to do with wrong results in talks?

Your magic is very sketchy

Opposite of a diet

How can I get through very long and very dry, but also very useful technical documents when learning a new tool?

Is it correct to write "is not focus on"?

Is there a good way to store credentials outside of a password manager?

Valid Badminton Score?

Can I Retrieve Email Addresses from BCC?

Everything Bob says is false. How does he get people to trust him?

How can a jailer prevent the Forge Cleric's Artisan's Blessing from being used?

Cynical novel that describes an America ruled by the media, arms manufacturers, and ethnic figureheads

How could Frankenstein get the parts for his _second_ creature?

What will be the benefits of Brexit?

Go Pregnant or Go Home

How can I replace every global instance of "x[2]" with "x_2"

Implement the Thanos sorting algorithm

Have I saved too much for retirement so far?

Is a roofing delivery truck likely to crack my driveway slab?

Generic lambda vs generic function give different behaviour

Failed to fetch jessie backports repository

Are there any comparative studies done between Ashtavakra Gita and Buddhim?

The baby cries all morning

Was Spock the First Vulcan in Starfleet?



cifs mounting all files as root owner


Temporary R+W CIFS share for non-root accounts?How to mount writable samba shares?Slow login when CIFS mounts are unavailableMounting network share with CIFS stopped working on 17.10cifs changed behaviourHow to specify a password when mounting a smb share with gio?CIFS mounts and Kerberos - permissions on access or best practiceusing cifs and cannot paste to folder or change ownershipHow does one mount UNC root? (SMB / CIFS)Ubuntu 18.04 LTS : Mount CIFS On Boot













3















I am trying to access a win7 machine that has sharing enabled on a folder. When I mount it on linux it lists all files as -rwxr-xr-x 1 root root



If i sudo i can copy files back and forth but its read only if I dont.



sudo chown [standard_user] *
on the mounted share does nothing.



This mounts the share as read only (all files are root)
sudo mount -t cifs "//myipaddress/myshare" /home/myuser/mymount/ -o username=myusername,password=mypassword,rw



On the win7 box I have myuser and everyone as 'full control'



how do I mount this share so that I dont have to be root to delete/move files?










share|improve this question


























    3















    I am trying to access a win7 machine that has sharing enabled on a folder. When I mount it on linux it lists all files as -rwxr-xr-x 1 root root



    If i sudo i can copy files back and forth but its read only if I dont.



    sudo chown [standard_user] *
    on the mounted share does nothing.



    This mounts the share as read only (all files are root)
    sudo mount -t cifs "//myipaddress/myshare" /home/myuser/mymount/ -o username=myusername,password=mypassword,rw



    On the win7 box I have myuser and everyone as 'full control'



    how do I mount this share so that I dont have to be root to delete/move files?










    share|improve this question
























      3












      3








      3


      2






      I am trying to access a win7 machine that has sharing enabled on a folder. When I mount it on linux it lists all files as -rwxr-xr-x 1 root root



      If i sudo i can copy files back and forth but its read only if I dont.



      sudo chown [standard_user] *
      on the mounted share does nothing.



      This mounts the share as read only (all files are root)
      sudo mount -t cifs "//myipaddress/myshare" /home/myuser/mymount/ -o username=myusername,password=mypassword,rw



      On the win7 box I have myuser and everyone as 'full control'



      how do I mount this share so that I dont have to be root to delete/move files?










      share|improve this question














      I am trying to access a win7 machine that has sharing enabled on a folder. When I mount it on linux it lists all files as -rwxr-xr-x 1 root root



      If i sudo i can copy files back and forth but its read only if I dont.



      sudo chown [standard_user] *
      on the mounted share does nothing.



      This mounts the share as read only (all files are root)
      sudo mount -t cifs "//myipaddress/myshare" /home/myuser/mymount/ -o username=myusername,password=mypassword,rw



      On the win7 box I have myuser and everyone as 'full control'



      how do I mount this share so that I dont have to be root to delete/move files?







      cifs






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 7 '17 at 17:04









      flashc5flashc5

      1814




      1814




















          3 Answers
          3






          active

          oldest

          votes


















          1














          Try the following. Works fine for me.



          sudo mount -t cifs -o vers=1.0,username=myuser,pass=mypass "//myipaddress/myshare" /home/myuser/mymount/





          share|improve this answer






























            8














            mount -t cifs "//myipaddress/myshare" /home/myuser/mymount/ -o username=myusername,password=mypassword,uid=myusername,gid=users





            share|improve this answer























            • If an answer helps you, accept it by clicking on the small grey tick/check beneath the number on the left hand side of the answer @flashc5 , once you have enough reputation you can upvote too. All this information is in the tour, reading it will also get you your first badge woo-hoo!

              – Arronical
              Mar 7 '17 at 17:16











            • i alsways do, it makes you wait so many minutes before you can mark it as the answer

              – flashc5
              Mar 7 '17 at 17:25











            • This worked, but all the files created through the mount are now -rwxrwxrwx. Is there a way to change this?

              – Rogier Lommers
              Sep 10 '18 at 18:34











            • @RogierLommes I do not think that this is possible on a per file basis (as MS file systems do not support linux file permissions).

              – Bruni
              Sep 11 '18 at 6:27


















            0














            You have to make sure the mounting target is owned by the user/group first.



            sudo chown myusername:mygroupname /mymount/





            share|improve this answer








            New contributor




            ImMartian is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.



















              Your Answer








              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "89"
              ;
              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',
              autoActivateHeartbeat: false,
              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%2faskubuntu.com%2fquestions%2f890579%2fcifs-mounting-all-files-as-root-owner%23new-answer', 'question_page');

              );

              Post as a guest















              Required, but never shown

























              3 Answers
              3






              active

              oldest

              votes








              3 Answers
              3






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              1














              Try the following. Works fine for me.



              sudo mount -t cifs -o vers=1.0,username=myuser,pass=mypass "//myipaddress/myshare" /home/myuser/mymount/





              share|improve this answer



























                1














                Try the following. Works fine for me.



                sudo mount -t cifs -o vers=1.0,username=myuser,pass=mypass "//myipaddress/myshare" /home/myuser/mymount/





                share|improve this answer

























                  1












                  1








                  1







                  Try the following. Works fine for me.



                  sudo mount -t cifs -o vers=1.0,username=myuser,pass=mypass "//myipaddress/myshare" /home/myuser/mymount/





                  share|improve this answer













                  Try the following. Works fine for me.



                  sudo mount -t cifs -o vers=1.0,username=myuser,pass=mypass "//myipaddress/myshare" /home/myuser/mymount/






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Oct 29 '17 at 22:26









                  matson kepsonmatson kepson

                  1262




                  1262























                      8














                      mount -t cifs "//myipaddress/myshare" /home/myuser/mymount/ -o username=myusername,password=mypassword,uid=myusername,gid=users





                      share|improve this answer























                      • If an answer helps you, accept it by clicking on the small grey tick/check beneath the number on the left hand side of the answer @flashc5 , once you have enough reputation you can upvote too. All this information is in the tour, reading it will also get you your first badge woo-hoo!

                        – Arronical
                        Mar 7 '17 at 17:16











                      • i alsways do, it makes you wait so many minutes before you can mark it as the answer

                        – flashc5
                        Mar 7 '17 at 17:25











                      • This worked, but all the files created through the mount are now -rwxrwxrwx. Is there a way to change this?

                        – Rogier Lommers
                        Sep 10 '18 at 18:34











                      • @RogierLommes I do not think that this is possible on a per file basis (as MS file systems do not support linux file permissions).

                        – Bruni
                        Sep 11 '18 at 6:27















                      8














                      mount -t cifs "//myipaddress/myshare" /home/myuser/mymount/ -o username=myusername,password=mypassword,uid=myusername,gid=users





                      share|improve this answer























                      • If an answer helps you, accept it by clicking on the small grey tick/check beneath the number on the left hand side of the answer @flashc5 , once you have enough reputation you can upvote too. All this information is in the tour, reading it will also get you your first badge woo-hoo!

                        – Arronical
                        Mar 7 '17 at 17:16











                      • i alsways do, it makes you wait so many minutes before you can mark it as the answer

                        – flashc5
                        Mar 7 '17 at 17:25











                      • This worked, but all the files created through the mount are now -rwxrwxrwx. Is there a way to change this?

                        – Rogier Lommers
                        Sep 10 '18 at 18:34











                      • @RogierLommes I do not think that this is possible on a per file basis (as MS file systems do not support linux file permissions).

                        – Bruni
                        Sep 11 '18 at 6:27













                      8












                      8








                      8







                      mount -t cifs "//myipaddress/myshare" /home/myuser/mymount/ -o username=myusername,password=mypassword,uid=myusername,gid=users





                      share|improve this answer













                      mount -t cifs "//myipaddress/myshare" /home/myuser/mymount/ -o username=myusername,password=mypassword,uid=myusername,gid=users






                      share|improve this answer












                      share|improve this answer



                      share|improve this answer










                      answered Mar 7 '17 at 17:07









                      BruniBruni

                      5,17042556




                      5,17042556












                      • If an answer helps you, accept it by clicking on the small grey tick/check beneath the number on the left hand side of the answer @flashc5 , once you have enough reputation you can upvote too. All this information is in the tour, reading it will also get you your first badge woo-hoo!

                        – Arronical
                        Mar 7 '17 at 17:16











                      • i alsways do, it makes you wait so many minutes before you can mark it as the answer

                        – flashc5
                        Mar 7 '17 at 17:25











                      • This worked, but all the files created through the mount are now -rwxrwxrwx. Is there a way to change this?

                        – Rogier Lommers
                        Sep 10 '18 at 18:34











                      • @RogierLommes I do not think that this is possible on a per file basis (as MS file systems do not support linux file permissions).

                        – Bruni
                        Sep 11 '18 at 6:27

















                      • If an answer helps you, accept it by clicking on the small grey tick/check beneath the number on the left hand side of the answer @flashc5 , once you have enough reputation you can upvote too. All this information is in the tour, reading it will also get you your first badge woo-hoo!

                        – Arronical
                        Mar 7 '17 at 17:16











                      • i alsways do, it makes you wait so many minutes before you can mark it as the answer

                        – flashc5
                        Mar 7 '17 at 17:25











                      • This worked, but all the files created through the mount are now -rwxrwxrwx. Is there a way to change this?

                        – Rogier Lommers
                        Sep 10 '18 at 18:34











                      • @RogierLommes I do not think that this is possible on a per file basis (as MS file systems do not support linux file permissions).

                        – Bruni
                        Sep 11 '18 at 6:27
















                      If an answer helps you, accept it by clicking on the small grey tick/check beneath the number on the left hand side of the answer @flashc5 , once you have enough reputation you can upvote too. All this information is in the tour, reading it will also get you your first badge woo-hoo!

                      – Arronical
                      Mar 7 '17 at 17:16





                      If an answer helps you, accept it by clicking on the small grey tick/check beneath the number on the left hand side of the answer @flashc5 , once you have enough reputation you can upvote too. All this information is in the tour, reading it will also get you your first badge woo-hoo!

                      – Arronical
                      Mar 7 '17 at 17:16













                      i alsways do, it makes you wait so many minutes before you can mark it as the answer

                      – flashc5
                      Mar 7 '17 at 17:25





                      i alsways do, it makes you wait so many minutes before you can mark it as the answer

                      – flashc5
                      Mar 7 '17 at 17:25













                      This worked, but all the files created through the mount are now -rwxrwxrwx. Is there a way to change this?

                      – Rogier Lommers
                      Sep 10 '18 at 18:34





                      This worked, but all the files created through the mount are now -rwxrwxrwx. Is there a way to change this?

                      – Rogier Lommers
                      Sep 10 '18 at 18:34













                      @RogierLommes I do not think that this is possible on a per file basis (as MS file systems do not support linux file permissions).

                      – Bruni
                      Sep 11 '18 at 6:27





                      @RogierLommes I do not think that this is possible on a per file basis (as MS file systems do not support linux file permissions).

                      – Bruni
                      Sep 11 '18 at 6:27











                      0














                      You have to make sure the mounting target is owned by the user/group first.



                      sudo chown myusername:mygroupname /mymount/





                      share|improve this answer








                      New contributor




                      ImMartian is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                      Check out our Code of Conduct.
























                        0














                        You have to make sure the mounting target is owned by the user/group first.



                        sudo chown myusername:mygroupname /mymount/





                        share|improve this answer








                        New contributor




                        ImMartian is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                        Check out our Code of Conduct.






















                          0












                          0








                          0







                          You have to make sure the mounting target is owned by the user/group first.



                          sudo chown myusername:mygroupname /mymount/





                          share|improve this answer








                          New contributor




                          ImMartian is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.










                          You have to make sure the mounting target is owned by the user/group first.



                          sudo chown myusername:mygroupname /mymount/






                          share|improve this answer








                          New contributor




                          ImMartian is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.









                          share|improve this answer



                          share|improve this answer






                          New contributor




                          ImMartian is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.









                          answered 1 hour ago









                          ImMartianImMartian

                          1




                          1




                          New contributor




                          ImMartian is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.





                          New contributor





                          ImMartian is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.






                          ImMartian is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.



























                              draft saved

                              draft discarded
















































                              Thanks for contributing an answer to Ask Ubuntu!


                              • 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%2faskubuntu.com%2fquestions%2f890579%2fcifs-mounting-all-files-as-root-owner%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

                              Möglingen Índice Localización Historia Demografía Referencias Enlaces externos Menú de navegación48°53′18″N 9°07′45″E / 48.888333333333, 9.129166666666748°53′18″N 9°07′45″E / 48.888333333333, 9.1291666666667Sitio web oficial Mapa de Möglingen«Gemeinden in Deutschland nach Fläche, Bevölkerung und Postleitzahl am 30.09.2016»Möglingen

                              Virtualbox - Configuration error: Querying “UUID” failed (VERR_CFGM_VALUE_NOT_FOUND)“VERR_SUPLIB_WORLD_WRITABLE” error when trying to installing OS in virtualboxVirtual Box Kernel errorFailed to open a seesion for the virtual machineFailed to open a session for the virtual machineUbuntu 14.04 LTS Virtualbox errorcan't use VM VirtualBoxusing virtualboxI can't run Linux-64 Bit on VirtualBoxUnable to insert the virtual optical disk (VBoxguestaddition) in virtual machine for ubuntu server in win 10VirtuaBox in Ubuntu 18.04 Issues with Win10.ISO Installation

                              Antonio De Lisio Carrera Referencias Menú de navegación«Caracas: evolución relacional multipleja»«Cuando los gobiernos subestiman a las localidades: L a Iniciativa para la Integración de la Infraestructura Regional Suramericana (IIRSA) en la frontera Colombo-Venezolana»«Maestría en Planificación Integral del Ambiente»«La Metrópoli Caraqueña: Expansión Simplificadora o Articulación Diversificante»«La Metrópoli Caraqueña: Expansión Simplificadora o Articulación Diversificante»«Conózcanos»«Caracas: evolución relacional multipleja»«La Metrópoli Caraqueña: Expansión Simplificadora o Articulación Diversificante»