Skip to main content
9 events
when toggle format what by license comment
Dec 18, 2014 at 3:35 comment added CodeMed @slm Can you please point me to instructions for giving write permissions for a folder to a given user in CentOS 7? Google is just giving me postings like this that do not answer my simple question. I want username to be able to scp a file from one machine to another via ssh, but I am getting permission denied, so I want to create a folder for which username has the permission to write via scp.
Jul 9, 2013 at 14:40 comment added slm @DextrousDave - Hey I'm blond 8-). Happens to ALL of us every day, it's part of the learning process.
Jul 9, 2013 at 14:39 vote accept DextrousDave
Jul 9, 2013 at 14:39 comment added DextrousDave of course, that makes sense. Just had a blonde moment.Thank you very much. I managed to make apache the owner and I added him to the bluegig group. Now I have write access inside wordpress.
Jul 9, 2013 at 13:34 comment added slm @DextrousDave - the file permissions don't really have anything to do with someone accessing a page through the webserver. Remember that the webserver is a process that opens the files, reading them in and then serves them to browsers as they connect to the server. The permissions are only in play when someone is directly logging into the server as a given user on the system.
Jul 9, 2013 at 12:07 comment added DextrousDave thanks slm. You say only apache group and user will be able to access the folder - do you mean write access?...But certainly public must be able to view the files, how else will they see the website over port 80 on a web browser?
Jul 9, 2013 at 11:33 comment added slm chmod -R apache.apache wordpress will change the user/group to apache for the entire directory wordpress. Permissions should be 775, so that only the user apache and group apache can access the directory.
Jul 9, 2013 at 11:31 comment added DextrousDave Thank you slm, this is very helpful. I will try it out and let you know. Couple of questions: apache apache - Does that refer to the user apache and group apache? If I assign apache as the owner, what command do I need to issue so that apache alone is the owner and not bluegig eg. chmod 775 wp-content ? Also, What command do I use to make the apache user the owner - chown apache wp-content?
Jul 9, 2013 at 9:56 history answered slm CC BY-SA 3.0