How to Change Linux's Permissions Through a Practical Example of the chmod Command?

This article will teach you how to change Linux's permissions through a practical example of the chmod command.

In the Linux world, you will have to change the permissions of files or directories sooner or later. This is done through the chmod command. We will also explain some popular commands such as chmod +x or chmod 755 or chmod -r.

1. Chmod Command in Linux

Chmod stands for change mode. This command is used to change the access method.
The chmod command has the following syntax:
chmod [options] mode file
Before understanding how to use chmod, you should understand its options. Which are the followings :
-v: output diagnostics for each processed file
-c: similar details, but only report when changes are made
--Reference = FILE: use the FILE mode instead of the MODE value
– R: Change permissions recursively

2.Here are more examples :

Recursively change the permissions of all files in the directory.
chmod has a recursive option that allows you to change all files' permissions in a directory and its subdirectories.
chmod -R 755 directory
chmod + x or chmod a + x: everyone can execute
One of the most commonly used cases of chmod is to provide execution bits for files.
Generally, after downloading an executable file, you need to add this permission before you can use it. Grant the owner, group, and everyone else permission to execute the file:
chmod +x /path/to/file

The next command will set the following permissions on the file rwxr-xr-x. Only the owner can be allowed to edit to the file. In addition, everyone had the read and executed permissions, which include the owner and the team members.

84 comments

  1. دانلود جدید ترین فیلم ها و سریال های جدید خارجی و ایرانی https://www.filmroz.ir/ با لینک مستقیم به صورت کاملا رایگان و کیفیت های عالی Full HD.

  2. Caryn

    Hi, just wanted to tell you, I enjoyed this article.

    It was helpful. Keep on posting!

    Also visit my web-site: why web hosting

  3. Lorena

    Wow that was strange. I just wrote an really long comment but after I clicked submit my comment didn't show up.
    Grrrr... well I'm not writing all that over again. Anyways, just wanted to
    say superb blog!

    my homepage - your quest bars - j.mp -

  4. Walter

    Hello to every body, it's my first pay a quick visit
    of this web site; this webpage consists of remarkable and truly fine information in support of readers.

    Feel free to surf to my site; are quest bars (http://bit.ly/2WAvPGN)

  5. Rosalinda

    First off I would like to say great blog! I had a quick
    question which I'd like to ask if you don't mind.
    I was curious to find out how you center yourself
    and clear your mind prior to writing. I have had a hard time clearing my
    thoughts in getting my thoughts out. I do enjoy writing however
    it just seems like the first 10 to 15 minutes tend to be wasted simply just trying to figure out how to begin. Any suggestions or tips?
    Cheers!

    my web page; are asmr

  6. Tiffany

    I love your blog.. very nice colors & theme. Did you create this website yourself or did you hire someone to do it for you?

    Plz answer back as I'm looking to create my own blog and would like
    to know where u got this from. appreciate it

    my webpage; scoliosis surgery was

  7. Patrice

    Everything is very open with a precise clarification of the challenges.
    it asmr (bit.ly) was definitely
    informative. Your site is very helpful. Thank you for sharing!

  8. Arron

    Hi Dear, are you actually visiting this site on a regular basis, if so afterward
    you will without doubt take nice know-how.

    Visit my web page ... asmr but

  9. Everett

    Hello, i think that i saw you visited my blog thus i came
    to “return the favor”.I'm attempting to find things to enhance my website!I suppose its ok to use some of your ideas!!

    Look into my page: in asmr (http://bit.ly/2WShZQd)

  10. Norris

    Hello there! This is my first comment here so I just wanted to give
    a quick shout out and say I genuinely enjoy reading through your posts.
    Can you recommend any other blogs/websites/forums that deal with the same subjects?
    Many thanks!

    Here is my web site of scoliosis surgery

  11. Ovrhor

    pay for assignments australia - term paper custom websites for essay writing

  12. Magnolia

    Hello my friend! I wish to say that this post is awesome, nice written and
    come with almost all vital infos. I would like to peer extra posts
    like this.

    My blog ... mcitp certification - Evangeline -

  13. Doyle

    Does your site have a contact page? I'm having
    problems locating it but, I'd like to send you an email.

    I've got some creative ideas for your blog you might be
    interested in hearing. Either way, great website and I look forward to
    seeing it grow over time.

    Also visit my web-site: exam related information (Stefan)

  14. Zithromax

    Propecia Sterility

  15. Terrell

    Oh my goodness! Incredible article dude! Thank you, However
    I am having issues with your RSS. I don't know
    why I am unable to subscribe to it. Is there anybody else having similar RSS issues?
    Anybody who knows the answer can you kindly respond?
    Thanx!!

    Visit my web blog california bar exam

  16. Mcbvwx

    sildenafil coupon - site sildenafil online

  17. Una

    First of all I would like to say wonderful blog! I had a quick question in which I'd
    like to ask if you do not mind. I was curious to find out how you center yourself and
    clear your thoughts before writing. I've had difficulty
    clearing my thoughts in getting my ideas out.
    I truly do enjoy writing however it just seems like the first
    10 to 15 minutes are generally wasted just trying to figure out how to begin. Any suggestions
    or tips? Thanks!

    Stop by my website :: written driving exam (Hayden)

  18. Leola

    Generally I don't learn post on blogs, but I would like to say that this write-up very forced me to
    check out and do so! Your writing taste has been amazed me.
    Thank you, very nice post.

    Also visit my webpage project management professional (Gisele)

  19. Carlo

    Hello my friend! I wish to say that this article is amazing, nice written and come with approximately all important infos.
    I would like to see extra posts like this.

    my homepage; preparation tips

  20. Nathaniel

    I am just writing to make you know what a fine encounter my daughter developed reading your web page.

    She picked up lots of pieces, most notably what it is like to possess a marvelous coaching mindset to make the mediocre ones clearly fully grasp several very confusing
    matters. You truly exceeded people's expected results.
    Thanks for displaying such warm and helpful, trustworthy, informative
    and in addition fun tips on this topic to Gloria.

    Also visit my web site :: pmp exams (Sandra)

  21. Xnmvyr

    essay helper - academic writing service best essay service

  22. Katherina

    I feel this is among the such a lot significant info for
    me. And i am satisfied reading your article.

    But wanna observation on few normal things, The site style is wonderful, the articles is
    actually excellent : D. Excellent job, cheers

    My web-site :: ps4 games why

  23. Archie

    Way cool! Some extremely valid points! I appreciate you penning this write-up plus the rest of the site is extremely
    good.

    Feel free to surf to my web blog: vcp510 exams (Abigail)

  24. Hosea

    Way cool! Some very valid points! I appreciate you penning this post plus the rest of the website
    is also very good.

    my web page hp certification (Keri)

  25. Michaela

    Hey there outstanding blog! Does running a blog similar to this require a great deal of work?

    I have very little knowledge of coding but I was hoping to start my own blog
    in the near future. Anyway, if you have any suggestions or techniques for
    new blog owners please share. I know this is off subject however I just needed to ask.
    Many thanks!

    my web page :: an ps4 games

  26. Alberto

    I really like your blog.. very nice colors & theme. Did you make this website yourself or did you hire someone to do
    it for you? Plz answer back as I'm looking to
    create my own blog and would like to know where u got
    this from. many thanks

    Also visit my web site; certiport certification

  27. lamina propecia

    How To Compound Amoxicillin Suspension

  28. Kira

    Hi there, just became alert to your blog through Google, and found that
    it's really informative. I am gonna watch out for brussels.
    I?ll be grateful if you continue this in future. A lot of people will be benefited
    from your writing. Cheers!

    Feel free to surf to my web page; exam materials preloaded (Jacquie)

  29. Pansy

    Admiring the hard work you put into your site and detailed information you offer.
    It's good to come across a blog every once in a while that isn't the same
    unwanted rehashed material. Fantastic read! I've bookmarked your site and
    I'm including your RSS feeds to my Google account.

    Have a look at my web page ... pmp exam simulator (Michaela)

  30. sormive
  31. Aide Aubrecht

    Hi there, everything is going perfectly here and ofcourse every one is sharing data, that's genuinely good, keep up writing.|

    https://wanelo.co/ratliffvestergaard34

  32. Bryant

    I do not even know the way I stopped up here, however I believed this post was
    great. I do not recognise who you're however definitely you asmr are going to a well-known blogger should you aren't already.
    Cheers!

  33. Marcelle Puente

    It's impressive that you are getting thoughts from this post as well as from our discussion made at this time.|

    https://articlescad.com/the-highest-resolution-ever-apple-iphone-1224837.html

  34. Tweqhb

    college essay service - custom dissertation services pay for assignments australia

  35. Brodie

    Hello my loved one! I want to say that this article is awesome, great written driving exam (Rocco) and include approximately all significant
    infos. I'd like to peer more posts like this.

  36. Carina

    Hi, i feel that i saw you visited my website so i got here to ?go
    back the choose?.I'm trying to find things to enhance my website!I assume its good
    enough to use a few of your concepts!!

    My blog nortel exams (http://www.cplusplus.com)

  37. Umbgvc

    purchase clomid - order ventolin inhalator misoprostol order

  38. Ilene

    Post writing is also a excitement, if you be familiar
    with afterward you can write otherwise it is difficult tips to answer the gamsat questions write.

  39. Ayesha Lundman

    Hi there to every one, as I am in fact keen of reading this webpage's post to be updated daily. It carries fastidious material.|

    https://socialbookmarknew.win/story.php?title=car-rental-agencies-finding-the-best-companies-in-your-needs#discuss

  40. Cari Padgette

    I was suggested this website via my cousin. I am now not sure whether or not this post is written by means of him as nobody else know such unique approximately my trouble. You are amazing! Thanks!|

    https://www.fhwa.dot.gov/reauthorization/reauexit.cfm?link=https://crackedlink.com/avocode-crack-key-free-download/

  41. Kenny Honokaupu

    What's Taking place i'm new to this, I stumbled upon this I've found It absolutely useful and it has aided me out loads. I hope to give a contribution & help other customers like its aided me. Good job.|

    https://microschools.com/forums/users/gregersen19humphries/

  42. Denna Acosto

    We're a group of volunteers and starting a new scheme in our community. Your website offered us with valuable information to work on. You've done a formidable job and our entire community will be thankful to you.|

    https://dejesus-povlsen.technetbloggers.de/logo-design-creation-to-suit-your-business

  43. Rafael Edmunds

    I think the admin of this website is actually working hard in support of his web page, because here every data is quality based information.|

    https://arktika-antarktidaw.online/index.php?page=user&action=pub_profile&id=109173

  44. Douglass Hija

    My spouse and I stumbled over here different website and thought I might check things out. I like what I see so now i'm following you. Look forward to looking into your web page for a second time.|

    https://travis61keegan.bravejournal.net/post/2021/11/27/Heart-Wrist-Tattoo-Some-Design-Ideas-Obtainable

  45. Mel Tubaugh

    continuously i used to read smaller content that also clear their motive, and that is also happening with this piece of writing which I am reading at this place.|

    https://vimeo.com/chavezchavez33

  46. Leopoldo Spiry

    We are a gaggle of volunteers and opening a new scheme in our community. Your site provided us with helpful info to work on. You've performed a formidable activity and our entire group will probably be thankful to you.|

    https://simonsen-krogh.blogbright.net/article-writing-for-money-secret-tips-to-cooking-endless-article-topics

  47. Son Rubinow

    I have read so many articles or reviews regarding the blogger lovers except this post is really a pleasant post, keep it up.|

    http://occtao.com/index.php?qa=user&qa_1=bowen62chen

  48. Brenna Relf

    I visited various web pages however the audio quality for audio songs current at this site is really excellent.|

    https://www.bonanza.com/users/49787721/profile

  49. Chang Nemunaitis

    If some one desires expert view on the topic of blogging and site-building after that i recommend him/her to pay a visit this weblog, Keep up the nice work.|

    https://bookmarkingworld.review/story.php?title=spyhunter-license-key-free#discuss

  50. Chad Langill

    Incredible quest there. What happened after? Take care!|

    http://m1.tank.jp/pukiwiki/index.php?hanleybusch721724

  51. responsive konu tasarımı

  52. Lanette Herndon

    Hello there, just became alert to your blog through Google, and found that it is truly informative. I'm going to watch out for brussels. I will appreciate if you continue this in future. Lots of people will be benefited from your writing. Cheers!|

    http://cqms.skku.edu/b/lecture/258565

  53. Leilani Defeo

    Appreciate the recommendation. Let me try it out.|

    https://anotepad.com/notes/9ak68xaw

  54. Bradly Holmes

    Hey! I just wanted to ask if you ever have any problems with hackers? My last blog (wordpress) was hacked and I ended up losing many months of hard work due to no data backup. Do you have any methods to protect against hackers?|

    http://driverpoisk.ru/index.php?qa=user&qa_1=pagegupta4

  55. Collin Veitch

    Definitely believe that which you said. Your favorite justification seemed to be on the net the easiest thing to be aware of. I say to you, I definitely get irked while people think about worries that they plainly do not know about. You managed to hit the nail upon the top and defined out the whole thing without having side effect , people can take a signal. Will probably be back to get more. Thanks|

    http://pixelscholars.org/engl202-022/members/ayalaayala71/activity/1742559/

  56. Fernande Westin

    Hi! I've been following your weblog for a long time now and finally got the bravery to go ahead and give you a shout out from Humble Texas! Just wanted to say keep up the excellent job!|

    https://pbase.com/topics/schofield06kara/motorola_defy_defying_the

  57. Anissa Vonseeger

    Hi, There's no doubt that your site could be having web browser compatibility problems. Whenever I take a look at your website in Safari, it looks fine but when opening in Internet Explorer, it's got some overlapping issues. I simply wanted to provide you with a quick heads up! Besides that, excellent site!|

    https://eine-ehren-sache.de/author/gallagheroneill1/

  58. car detailing kansas city

    Wow, great blog post.Much thanks again. Will read on...

    http://mobileautodetailingkc.com

  59. Vernon Finely

    I don't know whether it's just me or if everybody else experiencing problems with your blog. It seems like some of the written text in your posts are running off the screen. Can somebody else please provide feedback and let me know if this is happening to them too? This could be a problem with my internet browser because I've had this happen before. Thank you|

    http://parvona.net/user/friskjokumsen3/

  60. Danyell Dinwoodie

    Fantastic blog! Do you have any tips and hints for aspiring writers? I'm planning to start my own blog soon but I'm a little lost on everything. Would you propose starting with a free platform like Wordpress or go for a paid option? There are so many choices out there that I'm totally confused .. Any tips? Thanks!|

    https://cope4u.org/forums/users/harrison85lamb/

  61. Santiago Corter

    This is my first time go to see at here and i am actually impressed to read all at single place.|

    http://24hlol.com/index.php?qa=user&qa_1=acevedo97kure

  62. Lillian Backstrom

    It's amazing in support of me to have a website, which is beneficial in support of my knowledge. thanks admin|

    https://knowyourmeme.com/users/farhan-khan

  63. Cecil Dowson

    Hey there, I think your site might be having browser compatibility issues. When I look at your blog site in Safari, it looks fine but when opening in Internet Explorer, it has some overlapping. I just wanted to give you a quick heads up! Other then that, terrific blog!|

    https://easybookmark.win/story.php?title=life-is-not-a-zero-sum-game#discuss

  64. Luke

    Good day! Would you mind if I share your blog with my zynga group?

    There's a lot of folks that I think would really enjoy your content.
    Please let me know. Many thanks

    my page; hotshot bald cop

  65. Richie Whetsel

    I couldn't refrain from commenting. Perfectly written!|

    https://www.bitrated.com/TurgutKhan

  66. Eldridge Bizier

    You should be a part of a contest for one of the best sites on the net. I am going to highly recommend this site!|

    https://bookmarkzones.trade/story.php?title=how-1-child-fear-and-greed-in-trading#discuss

  67. Trey Mongiovi

    Howdy! This article could not be written much better! Reading through this post reminds me of my previous roommate! He continually kept talking about this. I most certainly will forward this information to him. Pretty sure he will have a very good read. Thank you for sharing!|

    https://profile.cheezburger.com/mahmadraza34034/Dashboard

  68. Rocio Kurt

    This is my first time pay a visit at here and i am genuinely happy to read everthing at alone place.|

    http://sganswer.net/index.php?qa=user&qa_1=vendelbo68ebbesen

  69. Millard Ravenelle

    I don't even know how I ended up here, but I thought this post was great. I do not know who you are but certainly you're going to a famous blogger if you are not already 😉 Cheers!|

    https://fliphtml5.com/homepage/xdthp

  70. Cheree Wandrie

    Thanks in favor of sharing such a nice thinking, piece of writing is nice, thats why i have read it completely|

    https://siciliasporting.it/members/porterfield63haas/activity/137133/

  71. Hddmpl

    cytotec cost - order levothyroxine synthroid uk

  72. bed bug experts near me

    Thanks-a-mundo for the article.Thanks Again. Will read on...

    https://drive.google.com/file/d/1MFXSzmrp04eWXwnJD813HhbOZ1plxdFi/view?usp=sharing

  73. Lulu Bussom

    Hey there! I've been following your site for a long time now and finally got the courage to go ahead and give you a shout out from Humble Tx! Just wanted to say keep up the good work!|

    https://knowyourmeme.com/users/bhaiubaid-amin

  74. Kristin Hursh

    Howdy! I just want to offer you a huge thumbs up for your excellent information you have here on this post. I am returning to your web site for more soon.|

    https://cutt.ly/BOa767K

  75. askmebet

    A big thank you for your article post.Much thanks again. Keep writing.

    https://amb19.com/

  76. Odell Hellums

    I like it whenever people come together and share opinions. Great blog, continue the good work!|

    https://www.domestika.org/en/adilsheikh3404

  77. Magdalen Mcclatchey

    I am not sure where you are getting your info, but great topic. I needs to spend some time learning more or understanding more. Thanks for fantastic information I was looking for this info for my mission.|

    https://www.logo-bookmarks.win/crack-33

  78. Corey Cocke

    I am really loving the theme/design of your blog. Do you ever run into any browser compatibility issues? A few of my blog visitors have complained about my site not operating correctly in Explorer but looks great in Safari. Do you have any ideas to help fix this issue?|

    https://www.hebergementweb.org/members/afzalkamran.126995/

  79. Dominque Lerer

    I'm really loving the theme/design of your website. Do you ever run into any web browser compatibility problems? A small number of my blog audience have complained about my website not working correctly in Explorer but looks great in Chrome. Do you have any ideas to help fix this issue?|

    http://el-jeel.com/index.php?qa=user&qa_1=terry51decker

  80. Jon Strack

    It's perfect time to make some plans for the future and it's time to be happy. I've read this post and if I could I want to suggest you some interesting things or tips. Maybe you could write next articles referring to this article. I desire to read more things about it!|

    https://giles43keene.tumblr.com/post/675484995847176192/make-your-writing-or-marketing-projects-your-top

  81. Davis Kan

    Hello, yup this paragraph is genuinely pleasant and I have learned lot of things from it concerning blogging. thanks.|

    https://lovebookmark.win/story.php?title=the-registry-and-along-with-it#discuss

  82. Daryl Mattler

    What's up colleagues, its wonderful article about cultureand fully explained, keep it up all the time.|

    https://bandochoi.com/members/boisenboisen3/activity/727611/

  83. Brant Wrench

    Excellent blog! Do you have any tips for aspiring writers? I'm planning to start my own website soon but I'm a little lost on everything. Would you propose starting with a free platform like Wordpress or go for a paid option? There are so many options out there that I'm completely overwhelmed .. Any ideas? Thanks a lot!|

    https://www.singsnap.com/#/d/profile/2761973/info

  84. Wilmer Suda

    Thanks very interesting blog!|

    https://www.minds.com/ahsan554551/

评论已关闭。

Related recommendation

No related articles!

微信扫一扫,分享到朋友圈

How to Change Linux's Permissions Through a Practical Example of the chmod Command?