Skip to main content
6 of 9
deleted 2 characters in body; edited title
Jeff Schaller
  • 68.8k
  • 35
  • 122
  • 264

What are common rights for /tmp ? I unintentionally set it all public recursively

I have abused sudo.

I have created a really really short life temporary directory that I wanted to share between some users for a few hours... and I named this directory /some/path/tmp

Unfortunately I have launched sudo chown 777 -R /tmp instead of sudo chown 777 -R tmp

so my /tmp file is now completely public.

I use the common /tmp pretty often (every day, almost every hour) personally for short life files, scripts, lots of scripts.

Is it a security breach now that it is completely set to public? Should I change it back to more secure settings, or like common default settings for a Debian / Ubuntu distro - (I don't know which they were)? What are the common right settings for /tmp?

Stephane Rolland
  • 4.4k
  • 7
  • 41
  • 50