• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 907
  • Last Modified:

chmod 777 /var.....BIG mistake

Hi Experts,

In trying to change the permissions of an EZPublish project on my server (sudo chmod 777 var/ -Rf) I inadvertently messed up and run this command: sudo chmod 777 /var -Rf.

I know this is a monumental mess up, and I know it's a long shot, but does anybody know if there's a way back? I'm absolutely desperate here.

Thanks in advance
0
TwistImage3530
Asked:
TwistImage3530
  • 2
  • 2
2 Solutions
 
omarfaridCommented:
What is your OS ?

Do you have backup of var? you could restore from there!
0
 
TwistImage3530Author Commented:
Hi,

Thanks for you response. It is a virtual machine running Ubuntu 10.0.4. I managed to restore from a snapshot from a while ago and have restored a full backup overnight. Although the situation seems rectified, I'm still curious if there is any way to reverse such a command. I know I'm probably dreaming in technicolor, and for sure will always make sure I don't chmod my /var again, but it would be nice for future reference.

Cheers.
0
 
omarfaridCommented:
you may do full list of files and directories and files under /var and keep output in a file and then you can backup this file and later can be used as reference for such cases.

find /var -exec ls -l {} \; > my_var_ref
0
 
TwistImage3530Author Commented:
We didn't resolve the issue - we rebuilt from a snapshot though omarfarids response seems most helpful.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now