1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

need some help fast with this, messed up my vps

Discussion in 'BlackHat Lounge' started by tranza, Dec 7, 2014.

  1. tranza

    tranza Power Member

    Joined:
    Jan 9, 2012
    Messages:
    629
    Likes Received:
    121
    Well i took all my website down by mistake, i changed file owner permission doing chown -hR www-data:www-data /var/, i was trying to avoid wordpress asking for ftp creditial and now everything is wiped off, i cant even login by ssh with normal ip but just by solusvm panel with special user. Any idea please.
     
  2. FBGuru

    FBGuru Senior Member

    Joined:
    Sep 22, 2013
    Messages:
    928
    Likes Received:
    1,172
    Location:
    Personality Type : ESTP
    Try creating another user and give it privileges to access all directories and change the ownership. For ex., If your current special user name is root, create another user as admin/administrator. Also, don't worry all the files will remain intact. You just don't have permissions to see the data. Your host will be able to better assist you in this situation.

    This is why you need to have a backup plugin like backupbuddy backing up your data every other day to Dropbox/S3.
     
  3. emailextractions

    emailextractions Junior Member

    Joined:
    Jul 23, 2014
    Messages:
    119
    Likes Received:
    19
    Home Page:
    Moving forward, you could also close your directories and do all your changes in a non live environment and make sure everything is good before making the changes on the live version of your site.
    Website building 101
     
  4. Debian

    Debian Jr. VIP Jr. VIP Premium Member

    Joined:
    Feb 17, 2009
    Messages:
    1,414
    Likes Received:
    561
    Occupation:
    Facebook + Adwords + IPv6 = :)
    Home Page:
  5. SharkServers

    SharkServers Jr. VIP Jr. VIP

    Joined:
    Jun 29, 2014
    Messages:
    401
    Likes Received:
    193
    Occupation:
    Web Hosting
    Location:
    DMCA? Pff! www.SuckMyBallsDM.CA
    Home Page:
    Why on Earth would you chown /var to www-data? /var holds much more than just www related data. With those permissions it's no wonder you're having problems. If you're willing to give me the login details for the VPS, I can take a look.
     
    • Thanks Thanks x 1
  6. tranza

    tranza Power Member

    Joined:
    Jan 9, 2012
    Messages:
    629
    Likes Received:
    121
    SharkServers managed to solve the issue for me, thanks a ton buddy.
     
    • Thanks Thanks x 1
  7. fatboy

    fatboy Elite Member

    Joined:
    Aug 13, 2008
    Messages:
    1,618
    Likes Received:
    3,229
    Occupation:
    Retired
    Location:
    Old Peoples Home
    I don't think its only the OP that has had a moment of finger madness and done stuff like that - I have done exactly the same and lets not even start about rm-rf and the wrong folder name!!
     
    • Thanks Thanks x 1
  8. SharkServers

    SharkServers Jr. VIP Jr. VIP

    Joined:
    Jun 29, 2014
    Messages:
    401
    Likes Received:
    193
    Occupation:
    Web Hosting
    Location:
    DMCA? Pff! www.SuckMyBallsDM.CA
    Home Page:
    True. There should be mandatory two factor authentication via SMS to perform rm -rf <any of the default system directories> :)

     
    • Thanks Thanks x 1