Koozali.org: home of the SME Server

permissions mistake - reinstallation necessary?

Offline bradleyj00

  • **
  • 37
  • +0/-0
permissions mistake - reinstallation necessary?
« on: March 04, 2013, 04:38:08 PM »
In my haste to finish a project, I just issued the following commands at /root.


find . -type d -exec chmod 775 {} \;
find . -type f -exec chmod 664 {} \;

I mistakenly assumed I was in an html directory, and intended to alter permissions for a joomla update.

Because I don't fully understand all the sytax, I have to ask if I have done terrible damage? I'm fearing reinstallation will be necessary? Can someone offer a little direction?

ugh...

Thanks...


Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: permissions mistake - reinstallation necessary?
« Reply #1 on: March 04, 2013, 06:13:29 PM »
You should immediately do:

chmod -R o-rwx /root

If indeed you were in /root, and not in /, then the permissions you changed are unlikely to have significant consequences.

Offline bradleyj00

  • **
  • 37
  • +0/-0
Re: permissions mistake - reinstallation necessary?
« Reply #2 on: March 04, 2013, 06:23:05 PM »
Excellent...thanks for that. I'm certain I was in /root, and not /. That brings some comfort. Also, the server is not yet online.

I'll go ahead and confirm the ownership on the /root directory is altered as per your suggestion.

Really appreciate your assistance.

Thanks.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: permissions mistake - reinstallation necessary?
« Reply #3 on: March 04, 2013, 06:31:22 PM »
You'll want to make a few small further adjustments. e.g

chmod 0750 /root
chmod -R g-rwx /root/.ssh

Offline bradleyj00

  • **
  • 37
  • +0/-0
Re: permissions mistake - reinstallation necessary?
« Reply #4 on: March 04, 2013, 08:12:57 PM »
Thanks!