0

Possible Duplicate:
FTP and Apache permission issues

i want to create a directory with full permissions (also applies to its "sub folders"). I am using following command:

  sudo chmod 777 -R /opt/www

It sets permissions to existing folder and subfolders only. I want to make it applicable to new files/folder also so that I don't need to type in the same command again and again for new files and folders

sandbox
  • 101

1 Answers1

5

NEVER chmod 777. What you need are umask, SUID, SGID.

quanta
  • 50,327
  • 19
  • 152
  • 213
  • whats the complete syntax? – sandbox Dec 08 '11 at 10:52
  • 3
    @sandbox - Please familiarize yourself with *man pages* (`man man`) - ServerFault is not a "gimmeh t3h c0dez" kind of site -- If you have a question about syntax or usage the man page for the command in question should be the first place you look (but feel free to ask additional questions if you find the manual unclear) – voretaq7 Dec 08 '11 at 18:05