Removing read access from a file [duplicate]












1
















This question already has an answer here:




  • Grant group traversal rights on a folder

    2 answers




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.











marked as duplicate by Eric Carvalho, DK Bose, Charles Green, Fabby, waltinator yesterday


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.














  • 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
    Mar 28 at 18:24











  • 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
    Mar 28 at 19:07
















1
















This question already has an answer here:




  • Grant group traversal rights on a folder

    2 answers




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.











marked as duplicate by Eric Carvalho, DK Bose, Charles Green, Fabby, waltinator yesterday


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.














  • 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
    Mar 28 at 18:24











  • 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
    Mar 28 at 19:07














1












1








1









This question already has an answer here:




  • Grant group traversal rights on a folder

    2 answers




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.













This question already has an answer here:




  • Grant group traversal rights on a folder

    2 answers




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?





This question already has an answer here:




  • Grant group traversal rights on a folder

    2 answers








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 Mar 28 at 20:48







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 Mar 28 at 18:20









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.




marked as duplicate by Eric Carvalho, DK Bose, Charles Green, Fabby, waltinator yesterday


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.









marked as duplicate by Eric Carvalho, DK Bose, Charles Green, Fabby, waltinator yesterday


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.










  • 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
    Mar 28 at 18:24











  • 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
    Mar 28 at 19:07














  • 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
    Mar 28 at 18:24











  • 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
    Mar 28 at 19:07








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
Mar 28 at 18:24





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
Mar 28 at 18:24













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
Mar 28 at 19:07





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
Mar 28 at 19:07










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.



























    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 Mar 28 at 20:05









        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 Mar 28 at 18:45









        iamhrishikeshiamhrishikesh

        1025




        1025




        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.















            Popular posts from this blog

            數位音樂下載

            格利澤436b

            When can things happen in Etherscan, such as the picture below?