Removing read access from a file The Next CEO of Stack OverflowGrant group traversal rights on a folderRead file into array How can I create a shared folder using command line?Get all file paths from a certain point and pipe to text fileremoving “_” from a very large csv fileRun open and read command on a file within python - not using a scriptWhat are the commands for for fine-grained control for file permissions? (other than the usual read-write-execute[rwx])Can the cat command edit a text file as well as read it?Copy file using sudo accessCan’t delete file from shell because it’s read onlyShow permissions of a folder using `ls`

How do I reset passwords on multiple websites easily?

How do we know the LHC results are robust?

Why am I allowed to create multiple unique pointers from a single object?

Can I run my washing machine drain line into a condensate pump so it drains better?

Do I need to enable Dev Hub in my PROD Org?

Would this house-rule that treats advantage as a +1 to the roll instead (and disadvantage as -1) and allows them to stack be balanced?

Rotate a column

Would a completely good Muggle be able to use a wand?

What is the result of assigning to std::vector<T>::begin()?

I believe this to be a fraud - hired, then asked to cash check and send cash as Bitcoin

Why do airplanes bank sharply to the right after air-to-air refueling?

Preparing Indesign booklet with .psd graphics for print

Contours of a clandestine nature

Inappropriate reference requests from Journal reviewers

Example of a Mathematician/Physicist whose Other Publications during their PhD eclipsed their PhD Thesis

Sending manuscript to multiple publishers

Is micro rebar a better way to reinforce concrete than rebar?

How to solve a differential equation with a term to a power?

Is there an analogue of projective spaces for proper schemes?

What does "Its cash flow is deeply negative" mean?

How powerful is the invisibility granted by the Gloom Stalker ranger's Umbral Sight feature?

Multiple labels for a single equation

Calculus II Question

Interfacing a button to MCU (and PC) with 50m long cable



Removing read access from a file



The Next CEO of Stack OverflowGrant group traversal rights on a folderRead file into array How can I create a shared folder using command line?Get all file paths from a certain point and pipe to text fileremoving “_” from a very large csv fileRun open and read command on a file within python - not using a scriptWhat are the commands for for fine-grained control for file permissions? (other than the usual read-write-execute[rwx])Can the cat command edit a text file as well as read it?Copy file using sudo accessCan’t delete file from shell because it’s read onlyShow permissions of a folder using `ls`










1















A file Cat within a folder Dog owner



-rw- 1 rich v 12 15:40 Cat


What is the shell command to remove others' read access from file Dog?










share|improve this question









New contributor




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















  • 4





    You really should be able to attempt this based on the answer you received in Grant group traversal rights on a folder and a perusal of the relevant manual page (man chmod)

    – steeldriver
    yesterday






  • 5





    Possible duplicate of Grant group traversal rights on a folder

    – Graham
    yesterday











  • This is very unclear. Is it cat or Cat, and what is Dog? A file, a folder (which is a file as well in the end), …?

    – dessert
    yesterday















1















A file Cat within a folder Dog owner



-rw- 1 rich v 12 15:40 Cat


What is the shell command to remove others' read access from file Dog?










share|improve this question









New contributor




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















  • 4





    You really should be able to attempt this based on the answer you received in Grant group traversal rights on a folder and a perusal of the relevant manual page (man chmod)

    – steeldriver
    yesterday






  • 5





    Possible duplicate of Grant group traversal rights on a folder

    – Graham
    yesterday











  • This is very unclear. Is it cat or Cat, and what is Dog? A file, a folder (which is a file as well in the end), …?

    – dessert
    yesterday













1












1








1








A file Cat within a folder Dog owner



-rw- 1 rich v 12 15:40 Cat


What is the shell command to remove others' read access from file Dog?










share|improve this question









New contributor




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












A file Cat within a folder Dog owner



-rw- 1 rich v 12 15:40 Cat


What is the shell command to remove others' read access from file Dog?







command-line






share|improve this question









New contributor




Ahhhhh 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 question









New contributor




Ahhhhh 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 question




share|improve this question








edited yesterday







Ahhhhh













New contributor




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









asked yesterday









AhhhhhAhhhhh

292




292




New contributor




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





New contributor





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






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







  • 4





    You really should be able to attempt this based on the answer you received in Grant group traversal rights on a folder and a perusal of the relevant manual page (man chmod)

    – steeldriver
    yesterday






  • 5





    Possible duplicate of Grant group traversal rights on a folder

    – Graham
    yesterday











  • This is very unclear. Is it cat or Cat, and what is Dog? A file, a folder (which is a file as well in the end), …?

    – dessert
    yesterday












  • 4





    You really should be able to attempt this based on the answer you received in Grant group traversal rights on a folder and a perusal of the relevant manual page (man chmod)

    – steeldriver
    yesterday






  • 5





    Possible duplicate of Grant group traversal rights on a folder

    – Graham
    yesterday











  • This is very unclear. Is it cat or Cat, and what is Dog? A file, a folder (which is a file as well in the end), …?

    – dessert
    yesterday







4




4





You really should be able to attempt this based on the answer you received in Grant group traversal rights on a folder and a perusal of the relevant manual page (man chmod)

– steeldriver
yesterday





You really should be able to attempt this based on the answer you received in Grant group traversal rights on a folder and a perusal of the relevant manual page (man chmod)

– steeldriver
yesterday




5




5





Possible duplicate of Grant group traversal rights on a folder

– Graham
yesterday





Possible duplicate of Grant group traversal rights on a folder

– Graham
yesterday













This is very unclear. Is it cat or Cat, and what is Dog? A file, a folder (which is a file as well in the end), …?

– dessert
yesterday





This is very unclear. Is it cat or Cat, and what is Dog? A file, a folder (which is a file as well in the end), …?

– dessert
yesterday










1 Answer
1






active

oldest

votes


















6














You can change file permissions with the chmod command.



There are two basic ways of using chmod to change file permissions:




  1. Symbolic Method:

    In the symbolic method to remove write permission for other users on a sub directory named Dog, you should enter:



    chmod o-rw Dog



  2. Absolute form:

    In the absolute method to do the same, you should enter:



    chmod 700 Dog


    for read, write, execute permissions only for the owner and not for the group and other users.

    In this method you can customize the access permissions more efficiently as per your requirements.



Be careful when setting the permissions of directories, particularly your home directory; you don't want to lock yourself out by removing your own access. Also, you must have execute permission on a directory to switch (cd) to it.

For further reading and additional information about file permissions.






share|improve this answer










New contributor




iamhrishikesh 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
    );



    );






    Ahhhhh is a new contributor. Be nice, and check out our Code of Conduct.









    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1129479%2fremoving-read-access-from-a-file%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    6














    You can change file permissions with the chmod command.



    There are two basic ways of using chmod to change file permissions:




    1. Symbolic Method:

      In the symbolic method to remove write permission for other users on a sub directory named Dog, you should enter:



      chmod o-rw Dog



    2. Absolute form:

      In the absolute method to do the same, you should enter:



      chmod 700 Dog


      for read, write, execute permissions only for the owner and not for the group and other users.

      In this method you can customize the access permissions more efficiently as per your requirements.



    Be careful when setting the permissions of directories, particularly your home directory; you don't want to lock yourself out by removing your own access. Also, you must have execute permission on a directory to switch (cd) to it.

    For further reading and additional information about file permissions.






    share|improve this answer










    New contributor




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
























      6














      You can change file permissions with the chmod command.



      There are two basic ways of using chmod to change file permissions:




      1. Symbolic Method:

        In the symbolic method to remove write permission for other users on a sub directory named Dog, you should enter:



        chmod o-rw Dog



      2. Absolute form:

        In the absolute method to do the same, you should enter:



        chmod 700 Dog


        for read, write, execute permissions only for the owner and not for the group and other users.

        In this method you can customize the access permissions more efficiently as per your requirements.



      Be careful when setting the permissions of directories, particularly your home directory; you don't want to lock yourself out by removing your own access. Also, you must have execute permission on a directory to switch (cd) to it.

      For further reading and additional information about file permissions.






      share|improve this answer










      New contributor




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






















        6












        6








        6







        You can change file permissions with the chmod command.



        There are two basic ways of using chmod to change file permissions:




        1. Symbolic Method:

          In the symbolic method to remove write permission for other users on a sub directory named Dog, you should enter:



          chmod o-rw Dog



        2. Absolute form:

          In the absolute method to do the same, you should enter:



          chmod 700 Dog


          for read, write, execute permissions only for the owner and not for the group and other users.

          In this method you can customize the access permissions more efficiently as per your requirements.



        Be careful when setting the permissions of directories, particularly your home directory; you don't want to lock yourself out by removing your own access. Also, you must have execute permission on a directory to switch (cd) to it.

        For further reading and additional information about file permissions.






        share|improve this answer










        New contributor




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










        You can change file permissions with the chmod command.



        There are two basic ways of using chmod to change file permissions:




        1. Symbolic Method:

          In the symbolic method to remove write permission for other users on a sub directory named Dog, you should enter:



          chmod o-rw Dog



        2. Absolute form:

          In the absolute method to do the same, you should enter:



          chmod 700 Dog


          for read, write, execute permissions only for the owner and not for the group and other users.

          In this method you can customize the access permissions more efficiently as per your requirements.



        Be careful when setting the permissions of directories, particularly your home directory; you don't want to lock yourself out by removing your own access. Also, you must have execute permission on a directory to switch (cd) to it.

        For further reading and additional information about file permissions.







        share|improve this answer










        New contributor




        iamhrishikesh 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








        edited yesterday









        Videonauth

        24.7k1273102




        24.7k1273102






        New contributor




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









        answered yesterday









        iamhrishikeshiamhrishikesh

        965




        965




        New contributor




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





        New contributor





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






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




















            Ahhhhh is a new contributor. Be nice, and check out our Code of Conduct.









            draft saved

            draft discarded


















            Ahhhhh is a new contributor. Be nice, and check out our Code of Conduct.












            Ahhhhh is a new contributor. Be nice, and check out our Code of Conduct.











            Ahhhhh is a new contributor. Be nice, and check out our Code of Conduct.














            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%2f1129479%2fremoving-read-access-from-a-file%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

            Wikipedia:Vital articles Мазмуну Biography - Өмүр баян Philosophy and psychology - Философия жана психология Religion - Дин Social sciences - Коомдук илимдер Language and literature - Тил жана адабият Science - Илим Technology - Технология Arts and recreation - Искусство жана эс алуу History and geography - Тарых жана география Навигация менюсу

            Bruxelas-Capital Índice Historia | Composición | Situación lingüística | Clima | Cidades irmandadas | Notas | Véxase tamén | Menú de navegacióneO uso das linguas en Bruxelas e a situación do neerlandés"Rexión de Bruxelas Capital"o orixinalSitio da rexiónPáxina de Bruselas no sitio da Oficina de Promoción Turística de Valonia e BruxelasMapa Interactivo da Rexión de Bruxelas-CapitaleeWorldCat332144929079854441105155190212ID28008674080552-90000 0001 0666 3698n94104302ID540940339365017018237

            What should I write in an apology letter, since I have decided not to join a company after accepting an offer letterShould I keep looking after accepting a job offer?What should I do when I've been verbally told I would get an offer letter, but still haven't gotten one after 4 weeks?Do I accept an offer from a company that I am not likely to join?New job hasn't confirmed starting date and I want to give current employer as much notice as possibleHow should I address my manager in my resignation letter?HR delayed background verification, now jobless as resignedNo email communication after accepting a formal written offer. How should I phrase the call?What should I do if after receiving a verbal offer letter I am informed that my written job offer is put on hold due to some internal issues?Should I inform the current employer that I am about to resign within 1-2 weeks since I have signed the offer letter and waiting for visa?What company will do, if I send their offer letter to another company