Under what circumstances would a user/superuser change the permission of a file for its owner? [closed]

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












1














What I understand is, you could change the permission of a file for its owner by, say



chmod u=0 file.txt


In this case, we removed r, w and x permission for the owner of this file.



But under what circumstances would we like to do that? If you are the file owner, why would you like to downgrade the permission of your own file?










share|improve this question















closed as too broad by Rui F Ribeiro, msp9011, Stephen Harris, icarus, Ouki Dec 31 '18 at 1:08


Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.










  • 1




    For the very same reason people use skins for their mobiles. Because you can. Because it protects them from mishandling.
    – Rui F Ribeiro
    Dec 28 '18 at 5:03











  • Thanks Rui! Yeah I later figured out that, I can simply "lock" the file by removing w permission for myself if I would never want to edit it again. That's a use case I guess
    – Hang
    Dec 29 '18 at 5:12















1














What I understand is, you could change the permission of a file for its owner by, say



chmod u=0 file.txt


In this case, we removed r, w and x permission for the owner of this file.



But under what circumstances would we like to do that? If you are the file owner, why would you like to downgrade the permission of your own file?










share|improve this question















closed as too broad by Rui F Ribeiro, msp9011, Stephen Harris, icarus, Ouki Dec 31 '18 at 1:08


Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.










  • 1




    For the very same reason people use skins for their mobiles. Because you can. Because it protects them from mishandling.
    – Rui F Ribeiro
    Dec 28 '18 at 5:03











  • Thanks Rui! Yeah I later figured out that, I can simply "lock" the file by removing w permission for myself if I would never want to edit it again. That's a use case I guess
    – Hang
    Dec 29 '18 at 5:12













1












1








1







What I understand is, you could change the permission of a file for its owner by, say



chmod u=0 file.txt


In this case, we removed r, w and x permission for the owner of this file.



But under what circumstances would we like to do that? If you are the file owner, why would you like to downgrade the permission of your own file?










share|improve this question















What I understand is, you could change the permission of a file for its owner by, say



chmod u=0 file.txt


In this case, we removed r, w and x permission for the owner of this file.



But under what circumstances would we like to do that? If you are the file owner, why would you like to downgrade the permission of your own file?







linux permissions file-metadata






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 31 '18 at 21:22









peterh

4,32592957




4,32592957










asked Dec 28 '18 at 4:58









HangHang

82




82




closed as too broad by Rui F Ribeiro, msp9011, Stephen Harris, icarus, Ouki Dec 31 '18 at 1:08


Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.






closed as too broad by Rui F Ribeiro, msp9011, Stephen Harris, icarus, Ouki Dec 31 '18 at 1:08


Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.









  • 1




    For the very same reason people use skins for their mobiles. Because you can. Because it protects them from mishandling.
    – Rui F Ribeiro
    Dec 28 '18 at 5:03











  • Thanks Rui! Yeah I later figured out that, I can simply "lock" the file by removing w permission for myself if I would never want to edit it again. That's a use case I guess
    – Hang
    Dec 29 '18 at 5:12












  • 1




    For the very same reason people use skins for their mobiles. Because you can. Because it protects them from mishandling.
    – Rui F Ribeiro
    Dec 28 '18 at 5:03











  • Thanks Rui! Yeah I later figured out that, I can simply "lock" the file by removing w permission for myself if I would never want to edit it again. That's a use case I guess
    – Hang
    Dec 29 '18 at 5:12







1




1




For the very same reason people use skins for their mobiles. Because you can. Because it protects them from mishandling.
– Rui F Ribeiro
Dec 28 '18 at 5:03





For the very same reason people use skins for their mobiles. Because you can. Because it protects them from mishandling.
– Rui F Ribeiro
Dec 28 '18 at 5:03













Thanks Rui! Yeah I later figured out that, I can simply "lock" the file by removing w permission for myself if I would never want to edit it again. That's a use case I guess
– Hang
Dec 29 '18 at 5:12




Thanks Rui! Yeah I later figured out that, I can simply "lock" the file by removing w permission for myself if I would never want to edit it again. That's a use case I guess
– Hang
Dec 29 '18 at 5:12










1 Answer
1






active

oldest

votes


















0














It is not against an intelligent actor, because as owner, they could chmod() the file any time, giving their permissions back.



It might be useful against programs, if you want to avoid your own programs to play with some of your file on any reason.



However, typically it is more feasible to simply move that file away.



It might be also useful, if the underlying filesystem driver doesn't support chmod(). For example, davfs or vfat file modes are determined by the mount flags and not by the filesystem metadata.






share|improve this answer





























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    It is not against an intelligent actor, because as owner, they could chmod() the file any time, giving their permissions back.



    It might be useful against programs, if you want to avoid your own programs to play with some of your file on any reason.



    However, typically it is more feasible to simply move that file away.



    It might be also useful, if the underlying filesystem driver doesn't support chmod(). For example, davfs or vfat file modes are determined by the mount flags and not by the filesystem metadata.






    share|improve this answer



























      0














      It is not against an intelligent actor, because as owner, they could chmod() the file any time, giving their permissions back.



      It might be useful against programs, if you want to avoid your own programs to play with some of your file on any reason.



      However, typically it is more feasible to simply move that file away.



      It might be also useful, if the underlying filesystem driver doesn't support chmod(). For example, davfs or vfat file modes are determined by the mount flags and not by the filesystem metadata.






      share|improve this answer

























        0












        0








        0






        It is not against an intelligent actor, because as owner, they could chmod() the file any time, giving their permissions back.



        It might be useful against programs, if you want to avoid your own programs to play with some of your file on any reason.



        However, typically it is more feasible to simply move that file away.



        It might be also useful, if the underlying filesystem driver doesn't support chmod(). For example, davfs or vfat file modes are determined by the mount flags and not by the filesystem metadata.






        share|improve this answer














        It is not against an intelligent actor, because as owner, they could chmod() the file any time, giving their permissions back.



        It might be useful against programs, if you want to avoid your own programs to play with some of your file on any reason.



        However, typically it is more feasible to simply move that file away.



        It might be also useful, if the underlying filesystem driver doesn't support chmod(). For example, davfs or vfat file modes are determined by the mount flags and not by the filesystem metadata.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Dec 31 '18 at 17:01

























        answered Dec 30 '18 at 1:10









        peterhpeterh

        4,32592957




        4,32592957












            Popular posts from this blog

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

            Bahrain

            Postfix configuration issue with fips on centos 7; mailgun relay