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`

Was a professor correct to chastise me for writing "Prof. X" rather than "Professor X"?

Are there languages with no euphemisms?

How to count occurrences of text in a file?

How to be diplomatic in refusing to write code that breaches the privacy of our users

Which organization defines CJK Unified Ideographs?

Does it take more energy to get to Venus or to Mars?

How should I support this large drywall patch?

Why didn't Khan get resurrected in the Genesis Explosion?

Why didn't Theresa May consult with Parliament before negotiating a deal with the EU?

Why does C# sound extremely flat when saxophone is tuned to G?

Why were Madagascar and New Zealand discovered so late?

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

Why did we only see the N-1 starfighters in one film?

Customer Requests (Sometimes) Drive Me Bonkers!

Too much space between section and text in a twocolumn document

How to write papers efficiently when English isn't my first language?

What do "high sea" and "carry" mean in this sentence?

Increase performance creating Mandelbrot set in python

If I blow insulation everywhere in my attic except the door trap, will heat escape through it?

Opposite of a diet

Implement the Thanos sorting algorithm

Whats the best way to handle refactoring a big file?

How do scammers retract money, while you can’t?

Robert Sheckley short story about vacation spots being overwhelmed



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
    9 hours ago






  • 3





    Possible duplicate of Grant group traversal rights on a folder

    – Graham
    9 hours ago











  • 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
    8 hours ago















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
    9 hours ago






  • 3





    Possible duplicate of Grant group traversal rights on a folder

    – Graham
    9 hours ago











  • 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
    8 hours ago













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 7 hours ago







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 9 hours ago









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
    9 hours ago






  • 3





    Possible duplicate of Grant group traversal rights on a folder

    – Graham
    9 hours ago











  • 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
    8 hours ago












  • 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
    9 hours ago






  • 3





    Possible duplicate of Grant group traversal rights on a folder

    – Graham
    9 hours ago











  • 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
    8 hours ago







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
9 hours ago





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
9 hours ago




3




3





Possible duplicate of Grant group traversal rights on a folder

– Graham
9 hours ago





Possible duplicate of Grant group traversal rights on a folder

– Graham
9 hours ago













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
8 hours ago





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
8 hours ago










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 7 hours ago









        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 9 hours ago









        iamhrishikeshiamhrishikesh

        612




        612




        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

            How to create a command for the “strange m” symbol in latex? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)How do you make your own symbol when Detexify fails?Writing bold small caps with mathpazo packageplus-minus symbol with parenthesis around the minus signGreek character in Beamer document titleHow to create dashed right arrow over symbol?Currency symbol: Turkish LiraDouble prec as a single symbol?Plus Sign Too Big; How to Call adfbullet?Is there a TeX macro for three-legged pi?How do I get my integral-like symbol to align like the integral?How to selectively substitute a letter with another symbol representing the same letterHow do I generate a less than symbol and vertical bar that are the same height?

            Българска екзархия Съдържание История | Български екзарси | Вижте също | Външни препратки | Литература | Бележки | НавигацияУстав за управлението на българската екзархия. Цариград, 1870Слово на Ловешкия митрополит Иларион при откриването на Българския народен събор в Цариград на 23. II. 1870 г.Българската правда и гръцката кривда. От С. М. (= Софийски Мелетий). Цариград, 1872Предстоятели на Българската екзархияПодмененият ВеликденИнформационна агенция „Фокус“Димитър Ризов. Българите в техните исторически, етнографически и политически граници (Атлас съдържащ 40 карти). Berlin, Königliche Hoflithographie, Hof-Buch- und -Steindruckerei Wilhelm Greve, 1917Report of the International Commission to Inquire into the Causes and Conduct of the Balkan Wars

            Чепеларе Съдържание География | История | Население | Спортни и природни забележителности | Културни и исторически обекти | Религии | Обществени институции | Известни личности | Редовни събития | Галерия | Източници | Литература | Външни препратки | Навигация41°43′23.99″ с. ш. 24°41′09.99″ и. д. / 41.723333° с. ш. 24.686111° и. д.*ЧепелареЧепеларски Linux fest 2002Начало на Зимен сезон 2005/06Национални хайдушки празници „Капитан Петко Войвода“Град ЧепелареЧепеларе – народният ски курортbgrod.orgwww.terranatura.hit.bgСправка за населението на гр. Исперих, общ. Исперих, обл. РазградМузей на родопския карстМузей на спорта и скитеЧепеларебългарскибългарскианглийскитукИстория на градаСки писти в ЧепелареВремето в ЧепелареРадио и телевизия в ЧепелареЧепеларе мами с родопски чар и добри пистиЕвтин туризъм и снежни атракции в ЧепелареМестоположениеИнформация и снимки от музея на родопския карст3D панорами от ЧепелареЧепелареррр