Please help

sKu.nK

Registered
Hi all

I have just done something foolish !!! :(

I was copying my customised .cshrc file from my home directory to root's home when I manged to delete root's home directory

rm -rf ~ !!!!!!!

I know fully apprecaite the warnings that go with the rm -rf option !!!!!

Please Please does anyone know if I can recover this or possible could someone give me a carbon copy of the standard root directory

I'm using MAC OS X 10.1.5

Any ideas would be greatly appreciated

TIA

:(
 
:eek: :eek: :eek: Uhoh!

If your machine is still running, what about creating a new user and copying the contents from the new user to root. Then chown the contents of that folder to root.

I believe that the root home is only made up of the same files that normal users have.

If I'm wrong someone correct me.
 
Thanks for the reply

Have done so :D

created /var/root
chown root.wheel /var/root
chmod 0700 /root

Now all seems OK

I wasn't sure whether root's home directory contained anything that other user's didn't have, but have had other replies elsewhere that confirmed your thoughts

So all is OK now

Phew

Thanks again

:D
 
Back
Top