Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8035615
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T02:21:38+00:00 2026-06-05T02:21:38+00:00

By error I set all folders and files permissions on 775, executing this command

  • 0

By error I set all folders and files permissions on 775, executing this command

sudo chmod 775 -R /website/folder /

And now I need to restore all the server folders and paths permissions at least centos files, by the moment I can’t send emails from my websites…

System is centos 5

Thanks…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T02:21:39+00:00Added an answer on June 5, 2026 at 2:21 am

    This is not meant as a complete solution, but rather as a idea how to solve this.

    You could query the packet database (in CentOS it is AFAIR RPM) and set the permissions the way they are meant to be according to that database.

    Some helpful commands for RPM:

    • rpm -Va verifies the files registered in the RPM database. Files which have the wrong permissions are listed there. Files with the wrong mode are displayed with a M in the 2nd column. So something like rpm -Va | grep ^.M | cut -c 13- should be a good start.

    • Another option could be to query all files in all packets with

      rpm --queryformat='%{FILEMODES}\t%{FILENAMES}\n' -qa
      

      and process the output by piping it into some kind of loop such as

      | while read mode fn; do chmod -V ... "$fn"; done
      

      but here you would have to convert the decimal output from FILEMODES to octal so that chmod understands it.

      Alternatively, you could process the output with something else, like a python script or so, which gives you much finer control over what you do.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am desperate with this issue, I set all the permissions correctly (I think),
OleDbDataAdapter internal error: invalid row set accessor: Ordinal=6 Status=UNSUPPORTEDCONVERSION All I'm doing is trying
This code returns an error: AttributeError: can't set attribute This is really a pity
why i got this error : Object reference not set to an instance of
I have set up the Workspace and have got all folders and can open
I've set up and configured ELMAH to log all of my errors on an
I would like to set up an error page which will diplay a message
I am trying to set the compilation-error-regexp-alist in a function that I add as
When trying to set DoMatchParen I get the following error: E492: Not an editor
My application now needs to create and then write files to a temp directory

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.