Autofs 770 mount point permission












1















In /etc/auto.sshfs I write this:



-fstype=fuse,uid=worker,gid=workers,rw,allow_other [etc other options]


Then it correctly sets the mount point permissions to worker:workers when it mounts automatically. The problem is there is allow_other there, so other users can write into the mount point too. If I remove allow_other then worker cannot write to the mount point, even though the permissions are shown as worker:workers in the file system. How can I set the permissions to worker:workers with permissions 770?










share|improve this question























  • i am also trying to lock this down, and am getting very tired of autofs entirely, as a result. might have to try systemd's approach

    – infinite-etcetera
    Sep 11 '16 at 19:33


















1















In /etc/auto.sshfs I write this:



-fstype=fuse,uid=worker,gid=workers,rw,allow_other [etc other options]


Then it correctly sets the mount point permissions to worker:workers when it mounts automatically. The problem is there is allow_other there, so other users can write into the mount point too. If I remove allow_other then worker cannot write to the mount point, even though the permissions are shown as worker:workers in the file system. How can I set the permissions to worker:workers with permissions 770?










share|improve this question























  • i am also trying to lock this down, and am getting very tired of autofs entirely, as a result. might have to try systemd's approach

    – infinite-etcetera
    Sep 11 '16 at 19:33
















1












1








1








In /etc/auto.sshfs I write this:



-fstype=fuse,uid=worker,gid=workers,rw,allow_other [etc other options]


Then it correctly sets the mount point permissions to worker:workers when it mounts automatically. The problem is there is allow_other there, so other users can write into the mount point too. If I remove allow_other then worker cannot write to the mount point, even though the permissions are shown as worker:workers in the file system. How can I set the permissions to worker:workers with permissions 770?










share|improve this question














In /etc/auto.sshfs I write this:



-fstype=fuse,uid=worker,gid=workers,rw,allow_other [etc other options]


Then it correctly sets the mount point permissions to worker:workers when it mounts automatically. The problem is there is allow_other there, so other users can write into the mount point too. If I remove allow_other then worker cannot write to the mount point, even though the permissions are shown as worker:workers in the file system. How can I set the permissions to worker:workers with permissions 770?







automount fuse autofs






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Dec 29 '15 at 14:15







user487107




















  • i am also trying to lock this down, and am getting very tired of autofs entirely, as a result. might have to try systemd's approach

    – infinite-etcetera
    Sep 11 '16 at 19:33





















  • i am also trying to lock this down, and am getting very tired of autofs entirely, as a result. might have to try systemd's approach

    – infinite-etcetera
    Sep 11 '16 at 19:33



















i am also trying to lock this down, and am getting very tired of autofs entirely, as a result. might have to try systemd's approach

– infinite-etcetera
Sep 11 '16 at 19:33







i am also trying to lock this down, and am getting very tired of autofs entirely, as a result. might have to try systemd's approach

– infinite-etcetera
Sep 11 '16 at 19:33












2 Answers
2






active

oldest

votes


















0














Have you tried using file_mode and dir_mode option?



-fstype=fuse,uid=worker,gid=workers,file_mode=0660,dir_mode=0770 ://server/share






share|improve this answer































    0














    after losing time to the trial-and-error, inflexible syntax of autofs, the simple answer is: uninstall it.



    there is a new, succinct systemd auto-mount option which can be used with fstab which allows you to use all the standardized mount permission options, and it looks like this:



      x-systemd.automount


    an example of it in an fstab line:



      /dev/sdd1   /mnt/hitachi-one     auto     noauto,x-systemd.automount     0 2


    the noauto option will mean it will not attempt to be mounted at boot, as with older software autofs.



    after adding a new x-systemd.automount line to fstab you then need to run:



      sudo systemctl daemon-reload


    and then both, or one, of the following:



      sudo systemctl restart remote-fs.target
    sudo systemctl restart local-fs.target


    for more infomation about it:



    https://wiki.archlinux.org/index.php/Fstab#Automount_with_systemd






    share|improve this answer


























    • no i haven't designed a font before, i just use source code pro alot. the example utilizes systemd which is core software that is a part of almost all linux distributions nowadays, and is very likely made by completely different developers, though they clearly copied some features from autofs - perhaps they are trying to replace it, as systemd already replaces some other older core linux software. i just wanted to write something up about it, as i didn't feel i could find what i was looking for, online, for a long while

      – infinite-etcetera
      Sep 13 '16 at 17:12











    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',
    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%2fsuperuser.com%2fquestions%2f1019304%2fautofs-770-mount-point-permission%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown
























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Have you tried using file_mode and dir_mode option?



    -fstype=fuse,uid=worker,gid=workers,file_mode=0660,dir_mode=0770 ://server/share






    share|improve this answer




























      0














      Have you tried using file_mode and dir_mode option?



      -fstype=fuse,uid=worker,gid=workers,file_mode=0660,dir_mode=0770 ://server/share






      share|improve this answer


























        0












        0








        0







        Have you tried using file_mode and dir_mode option?



        -fstype=fuse,uid=worker,gid=workers,file_mode=0660,dir_mode=0770 ://server/share






        share|improve this answer













        Have you tried using file_mode and dir_mode option?



        -fstype=fuse,uid=worker,gid=workers,file_mode=0660,dir_mode=0770 ://server/share







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Sep 19 '16 at 15:02









        Wen Te HsiaWen Te Hsia

        11




        11

























            0














            after losing time to the trial-and-error, inflexible syntax of autofs, the simple answer is: uninstall it.



            there is a new, succinct systemd auto-mount option which can be used with fstab which allows you to use all the standardized mount permission options, and it looks like this:



              x-systemd.automount


            an example of it in an fstab line:



              /dev/sdd1   /mnt/hitachi-one     auto     noauto,x-systemd.automount     0 2


            the noauto option will mean it will not attempt to be mounted at boot, as with older software autofs.



            after adding a new x-systemd.automount line to fstab you then need to run:



              sudo systemctl daemon-reload


            and then both, or one, of the following:



              sudo systemctl restart remote-fs.target
            sudo systemctl restart local-fs.target


            for more infomation about it:



            https://wiki.archlinux.org/index.php/Fstab#Automount_with_systemd






            share|improve this answer


























            • no i haven't designed a font before, i just use source code pro alot. the example utilizes systemd which is core software that is a part of almost all linux distributions nowadays, and is very likely made by completely different developers, though they clearly copied some features from autofs - perhaps they are trying to replace it, as systemd already replaces some other older core linux software. i just wanted to write something up about it, as i didn't feel i could find what i was looking for, online, for a long while

              – infinite-etcetera
              Sep 13 '16 at 17:12
















            0














            after losing time to the trial-and-error, inflexible syntax of autofs, the simple answer is: uninstall it.



            there is a new, succinct systemd auto-mount option which can be used with fstab which allows you to use all the standardized mount permission options, and it looks like this:



              x-systemd.automount


            an example of it in an fstab line:



              /dev/sdd1   /mnt/hitachi-one     auto     noauto,x-systemd.automount     0 2


            the noauto option will mean it will not attempt to be mounted at boot, as with older software autofs.



            after adding a new x-systemd.automount line to fstab you then need to run:



              sudo systemctl daemon-reload


            and then both, or one, of the following:



              sudo systemctl restart remote-fs.target
            sudo systemctl restart local-fs.target


            for more infomation about it:



            https://wiki.archlinux.org/index.php/Fstab#Automount_with_systemd






            share|improve this answer


























            • no i haven't designed a font before, i just use source code pro alot. the example utilizes systemd which is core software that is a part of almost all linux distributions nowadays, and is very likely made by completely different developers, though they clearly copied some features from autofs - perhaps they are trying to replace it, as systemd already replaces some other older core linux software. i just wanted to write something up about it, as i didn't feel i could find what i was looking for, online, for a long while

              – infinite-etcetera
              Sep 13 '16 at 17:12














            0












            0








            0







            after losing time to the trial-and-error, inflexible syntax of autofs, the simple answer is: uninstall it.



            there is a new, succinct systemd auto-mount option which can be used with fstab which allows you to use all the standardized mount permission options, and it looks like this:



              x-systemd.automount


            an example of it in an fstab line:



              /dev/sdd1   /mnt/hitachi-one     auto     noauto,x-systemd.automount     0 2


            the noauto option will mean it will not attempt to be mounted at boot, as with older software autofs.



            after adding a new x-systemd.automount line to fstab you then need to run:



              sudo systemctl daemon-reload


            and then both, or one, of the following:



              sudo systemctl restart remote-fs.target
            sudo systemctl restart local-fs.target


            for more infomation about it:



            https://wiki.archlinux.org/index.php/Fstab#Automount_with_systemd






            share|improve this answer















            after losing time to the trial-and-error, inflexible syntax of autofs, the simple answer is: uninstall it.



            there is a new, succinct systemd auto-mount option which can be used with fstab which allows you to use all the standardized mount permission options, and it looks like this:



              x-systemd.automount


            an example of it in an fstab line:



              /dev/sdd1   /mnt/hitachi-one     auto     noauto,x-systemd.automount     0 2


            the noauto option will mean it will not attempt to be mounted at boot, as with older software autofs.



            after adding a new x-systemd.automount line to fstab you then need to run:



              sudo systemctl daemon-reload


            and then both, or one, of the following:



              sudo systemctl restart remote-fs.target
            sudo systemctl restart local-fs.target


            for more infomation about it:



            https://wiki.archlinux.org/index.php/Fstab#Automount_with_systemd







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Sep 20 '16 at 12:32

























            answered Sep 11 '16 at 20:24









            infinite-etceterainfinite-etcetera

            1766




            1766













            • no i haven't designed a font before, i just use source code pro alot. the example utilizes systemd which is core software that is a part of almost all linux distributions nowadays, and is very likely made by completely different developers, though they clearly copied some features from autofs - perhaps they are trying to replace it, as systemd already replaces some other older core linux software. i just wanted to write something up about it, as i didn't feel i could find what i was looking for, online, for a long while

              – infinite-etcetera
              Sep 13 '16 at 17:12



















            • no i haven't designed a font before, i just use source code pro alot. the example utilizes systemd which is core software that is a part of almost all linux distributions nowadays, and is very likely made by completely different developers, though they clearly copied some features from autofs - perhaps they are trying to replace it, as systemd already replaces some other older core linux software. i just wanted to write something up about it, as i didn't feel i could find what i was looking for, online, for a long while

              – infinite-etcetera
              Sep 13 '16 at 17:12

















            no i haven't designed a font before, i just use source code pro alot. the example utilizes systemd which is core software that is a part of almost all linux distributions nowadays, and is very likely made by completely different developers, though they clearly copied some features from autofs - perhaps they are trying to replace it, as systemd already replaces some other older core linux software. i just wanted to write something up about it, as i didn't feel i could find what i was looking for, online, for a long while

            – infinite-etcetera
            Sep 13 '16 at 17:12





            no i haven't designed a font before, i just use source code pro alot. the example utilizes systemd which is core software that is a part of almost all linux distributions nowadays, and is very likely made by completely different developers, though they clearly copied some features from autofs - perhaps they are trying to replace it, as systemd already replaces some other older core linux software. i just wanted to write something up about it, as i didn't feel i could find what i was looking for, online, for a long while

            – infinite-etcetera
            Sep 13 '16 at 17:12


















            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.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1019304%2fautofs-770-mount-point-permission%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

            Mouse cursor on multiple screens with different PPI

            Agildo Ribeiro

            Sometime when accessing a menu: “Ubuntu 16.04 has experienced an internal error”