Make folders unreadable for everyone but sudo users and owners

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
-1
down vote

favorite












What I am trying to do:
I am managing a class server and I want to allow all of the users to save their work to their home directories. I do not want users to be able to view other users home directories except for sudo users.



I believe this can be accomplished by doing the following



chmod -R 700 user1/


Is this the correct way to accomplish this?







share|improve this question




















  • Better option would be 750
    – George Udosen
    Jan 12 at 21:03














up vote
-1
down vote

favorite












What I am trying to do:
I am managing a class server and I want to allow all of the users to save their work to their home directories. I do not want users to be able to view other users home directories except for sudo users.



I believe this can be accomplished by doing the following



chmod -R 700 user1/


Is this the correct way to accomplish this?







share|improve this question




















  • Better option would be 750
    – George Udosen
    Jan 12 at 21:03












up vote
-1
down vote

favorite









up vote
-1
down vote

favorite











What I am trying to do:
I am managing a class server and I want to allow all of the users to save their work to their home directories. I do not want users to be able to view other users home directories except for sudo users.



I believe this can be accomplished by doing the following



chmod -R 700 user1/


Is this the correct way to accomplish this?







share|improve this question












What I am trying to do:
I am managing a class server and I want to allow all of the users to save their work to their home directories. I do not want users to be able to view other users home directories except for sudo users.



I believe this can be accomplished by doing the following



chmod -R 700 user1/


Is this the correct way to accomplish this?









share|improve this question











share|improve this question




share|improve this question










asked Jan 12 at 20:58









Kevin

1011




1011











  • Better option would be 750
    – George Udosen
    Jan 12 at 21:03
















  • Better option would be 750
    – George Udosen
    Jan 12 at 21:03















Better option would be 750
– George Udosen
Jan 12 at 21:03




Better option would be 750
– George Udosen
Jan 12 at 21:03










1 Answer
1






active

oldest

votes

















up vote
1
down vote



accepted










Use sudo chmod 750 /home/$USER so the files inside don't pick up those permission but stops non-owners from accessing home folders






share|improve this answer




















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    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: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );








     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f416675%2fmake-folders-unreadable-for-everyone-but-sudo-users-and-owners%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote



    accepted










    Use sudo chmod 750 /home/$USER so the files inside don't pick up those permission but stops non-owners from accessing home folders






    share|improve this answer
























      up vote
      1
      down vote



      accepted










      Use sudo chmod 750 /home/$USER so the files inside don't pick up those permission but stops non-owners from accessing home folders






      share|improve this answer






















        up vote
        1
        down vote



        accepted







        up vote
        1
        down vote



        accepted






        Use sudo chmod 750 /home/$USER so the files inside don't pick up those permission but stops non-owners from accessing home folders






        share|improve this answer












        Use sudo chmod 750 /home/$USER so the files inside don't pick up those permission but stops non-owners from accessing home folders







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 12 at 21:07









        George Udosen

        1,112318




        1,112318






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f416675%2fmake-folders-unreadable-for-everyone-but-sudo-users-and-owners%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Christian Cage

            How to properly install USB display driver for Fresco Logic FL2000DX on Ubuntu?