Results 1 to 7 of 7
  1. #1
    Join Date
    Feb 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    [HELP] chmod -R 740 /

    Hello everyone,

    I am in need of help asap. I am completly new to Linux. Here is my problem. I logged in as root , I did this line:

    chmod -R 740 /



    It was literally changing the permissions for all file and directories, keep in mind I was using filezilla for this. After it went through them all I was disconnected from the server. It says "server unexpectedly closed network connection" when trying to log into the server via filezilla.

    My goal was to limit access to all config files for I will be creating users and dictating user account. The users access a SFTP server for sensitive docs.

    What did this command do that doesnt allow me to connect to the server?

    Was there maybe a service that will need restarted? if so what can I do to restart it?


    If anyone can help that would be greatly appreciated?

    -Tim




  2. #2
    Join Date
    Oct 2011
    Location
    Dublin, PA
    Posts
    381
    Thanks
    33
    Thanked 18 Times in 16 Posts
    Rep Power
    10
    You recursively changed all permissions of all files/folders below / to 740 on the system...

    What I would do is go to my backup, reinstall the OS and get going again...

    Otherwise, you'll need to boot off a disk/usbkey and manually chmod the directories/files back to what they should be... (I'm actually surprised no one has made a script to get someone out of this bind)..

    Good luck - and log in as a user so this stuff won't happen to you

  3. #3
    Join Date
    Feb 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    right on
    thanks for the reply

    This server is not local I use filezilla and putty to access the sftp server.
    What should I do to resolve this when im not on site with the actual server?

    -tim

  4. #4
    Join Date
    Oct 2011
    Location
    Dublin, PA
    Posts
    381
    Thanks
    33
    Thanked 18 Times in 16 Posts
    Rep Power
    10
    You'll need to contact your hosting provider then.. ask them to restore the OS and restore your files from backup..

  5. #5
    Join Date
    Feb 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    I'm just trying to get this straight, sorry.

    I need to contact the host that the linux sftp server lives on so that they can actually restore it?
    Will the data that was put into the some files be available after a restore? they were literally put on the server last night. I need to make them accessible to some users that I created asap. Its all private medical record information.

    Do you have to create a backup or are they created for you periodically? When are backups created?

  6. #6
    Join Date
    May 2012
    Location
    West Byfleet, Surrey, UK
    Posts
    21
    Thanks
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Talking

    For the avoidance of doubt, you need to contact the company you are paying for the hosting of this server and seek their help.

    It's unlikely they take automatic backups, but possible. It entirely depends on the hosting provider's policy and the service agreement you took out with them. There is no global standard for this.

    Unfortunately though it sounds like you will need to get them to wipe it, reinstall and start again. Then, as mentioned by Rob earlier, create a normal user account, log in with that to work on things under that user id UNLESS you absolutely need root permissions to change the server configuration, rather than your application's config. That way you won't cripple your machine with a single command like you just did. One of the oldest rookie traps in the book that!

    Furthermore I wouldn't rely on the hosting company doing backups for you unless you are explicitly paying them to do so, and have an SLA for restoring them. Read up on the rsync command and do your own. If you need help with that it would be best to post another question.

    Good luck.

  7. #7
    Join Date
    Jan 2013
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    U changed Permison of root partion to 740..so i think u will have to chmod again / ..and its can be done from ur hosting provider try to contact them..

    i am not sure..

 

 

Similar Threads

  1. command: chmod
    By gcawood in forum Linux Commands
    Replies: 22
    Last Post: 08-19-2012, 05:48 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
           








Check out Linux Central for Linux software and other goodies!





» Stats

Members: 3,594
Threads: 3,921
Posts: 9,454
Top Poster: Fred (1,486)
Welcome to our newest member, freespirit

» Links



Powered by vBadvanced CMPS