Skip to main content

chmod -R user / how screwed am i?

Comments

9 comments

  • vanessa
    lol. I wouldn't even try to fix it at this point. If you have another server to compare to, you can try to match the ownership on the various folders, but you'll likely have left some things broken. It'll be quicker just to get set up on a new server tbh.
    0
  • robb3369
    We recently had a similar issue, but down the user home path... Try this script: #!/bin/bash cd /var/cpanel/users for user in * do chown -R $user.$user /home/$user/ chown $user.nobody /home/$user/public_html chown $user.mail /home/$user/etc done /scripts/chownpublichtmls /scripts/mailperm
    Again, this is specific to the home directory path, but should help a bit when moving files to new drive...
    0
  • vanessa
    To get mysql to start, you should just be able to chown -R mysql:mysql /var/lib/mysql
    0
  • webwizardma
    [quote="vanessa, post: 1581831">To get mysql to start, you should just be able to chown -R mysql:mysql /var/lib/mysql
    No SSH. it's down :(
    0
  • vanessa
    Well, if you can't SSH into the server to fix anything, you're sorta screwed. You can try going into WHM (since you said that works) and forcing a cPanel update which will trigger a series of autofixers, but the issues on the system will likely halt the update process.
    0
  • webwizardma
    I did actually try that, and I also tried rebuilding Apache via EasyApache, thinking that a rebuilt would reset permissions. None of that worked. :( I'm honestly surprised & confused why EasyApache didn't solve the problem!
    0
  • cPanelMichael
    [quote="webwizardma, post: 1581782">My hosting provider said they will setup new HDD's, and attach the old ones via USB for me to copy everything from, but the ETA for that is 5 hours.
    This is the best option in my opinion. Install cPanel on the new hard drive, and then re-create the accounts. Ideally, you should restore the accounts from any cPanel backup archives. Thank you.
    0
  • robb3369
    Although probably too late now, but Chirpy has a tool called CSE that gives you an virtual console into the server: [url=http://www.configserver.com/cp/cse.html]ConfigServer Explorer Might be good to have in the future... This is one of the those "I'll never do that again" things. During interview prospects, I always ask the candidates what their best INDTA moments were, since I don't want them do it with my machines.
    0
  • vanessa
    [quote="robb3369, post: 1583021">Although probably too late now, but Chirpy has a tool called CSE that gives you an virtual console into the server: [url=http://www.configserver.com/cp/cse.html]ConfigServer Explorer.
    Not sure how he would be able to do that without SSH access ;)
    0

Please sign in to leave a comment.