0

I would like to ONLY change the permission of a specific directory without changing the permission of the files or directories that it contains.
I know that the following command will recursively alter the permission of all dir and files in it:

chmod -R 777

And the following will change only the files but not the directories that it contains:

chmod -r 777
jamesMcKey
  • 481
  • 5
  • 28

2 Answers2

1

chmod 777 /path/to/specific/dir

juliokarl
  • 76
  • 1
  • 6
  • just specify without command line options. if you don't have an alias on chmod, which is unlikely this should work. alternative try \chmod 777 /path/to/specific/dir to avoid the alias of beeing processed – juliokarl Jan 06 '18 at 18:03
  • would you be able to help me with this issue. it is related: https://stackoverflow.com/questions/48128523/cannot-send-email-via-aws-ses-from-https-request?noredirect=1#comment83233778_48128523 – jamesMcKey Jan 06 '18 at 18:15
0

The -r or -R in the Command means that it change the Permission/Owner of all Files and Directory's in the directory!!

Emanuel Bennici
  • 426
  • 3
  • 13