Koozali.org: home of the SME Server

Obsolete Releases => SME Server 8.x => Topic started by: bradleyj00 on March 04, 2013, 04:38:08 PM

Title: permissions mistake - reinstallation necessary?
Post by: bradleyj00 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...

Title: Re: permissions mistake - reinstallation necessary?
Post by: CharlieBrady 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.
Title: Re: permissions mistake - reinstallation necessary?
Post by: bradleyj00 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.
Title: Re: permissions mistake - reinstallation necessary?
Post by: CharlieBrady 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
Title: Re: permissions mistake - reinstallation necessary?
Post by: bradleyj00 on March 04, 2013, 08:12:57 PM
Thanks!