Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Deleted root directory- d'oh!

  • 10-04-2004 10:14pm
    #1
    Moderators, Arts Moderators Posts: 35,738 Mod ✭✭✭✭


    So I was logged as root, in /root directory, deleting a list of files from a remote directory e.g.
    rm /some/other/directory/fileslikethis*
    
    I accidentally put in a space and typed
    rm /some/other/directory/fileslikethis *
    
    and so deleted everything in /root, besides the subdirectories.
    I'm using an ext3 filesystem, so there's no chance of undeleting.

    Can anyone tell me roughly what files are in /root by default and which, if any, are vital for booting. If I do a reinstall/rescue, should I be able to recover most of it?

    And yes, I know, I should be more careful when deleting things as root. The files in question had root-only permissions, if that's any excuse!

    [edit]thankfully, the hidden dirs in /root still all seem to be there, so no major damage done[/edit]


Comments

  • Registered Users, Registered Users 2 Posts: 1,419 ✭✭✭nadir


    I dont think there is much important in /root, apart from like config files of apps run by root, like .ssh .xauth, and what have you.
    should be ok.


  • Closed Accounts Posts: 2,525 ✭✭✭JustHalf


    For a minute there I thought that was the old:

    # cd /; rm -rf /

    trick.


  • Moderators, Arts Moderators Posts: 35,738 Mod ✭✭✭✭pickarooney


    It could quite easily have been. Sure, the config files should regenerate themselves over time... I reckon.


Advertisement