Reputation
1,270
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
4 25 36
Impact
~216k people reached

  • 0 posts edited
  • 0 helpful flags
  • 124 votes cast
May
23
asked Where should the web server root directory go in linux?
Apr
3
awarded  Self-Learner
Mar
30
accepted How to setup linux permissions for the WWW folder?
Mar
28
answered First time setting up a MySQL database
Mar
27
comment Putty hangs for a while
Actually, I would say superuser would be a better place since it's about using an application.
Mar
27
comment How to setup linux permissions for the WWW folder?
Very good point. For apache you need to sudo vim /etc/apache2/envvars and add umask 002 to the bottom of the file. I'm still trying to figure out how to do it with nginx.
Mar
27
comment How to setup linux permissions for the WWW folder?
Yes, root would remain the owner. However, since the group owner is now "developer" (and has wrx permission) then all the devs (and apache/nginx) could also read. No need for sudo.
Mar
26
comment How to setup linux permissions for the WWW folder?
Good. Maybe if I can confirm this with a couple more people I'll be using this approach. It seems to be the best answer I have been able to squeeze out of people.
Mar
26
comment How to setup linux permissions for the WWW folder?
I just said, git doesn't have a user - it runs as the current user using it.
Mar
26
comment How to setup linux permissions for the WWW folder?
+1 for the helpful information about ACL's. However, I don't want extra junk bogging the system down just to manage a simple server with a couple of developers. I'm also not comfortable with recompiling the Kernel in order to use ACL's.
Mar
25
answered How to setup linux permissions for the WWW folder?
Mar
25
comment Uses for a small Virtual Private Server?
I vote for an AssultCube game server.
Mar
25
comment Proper umask on linux webservers?
Using git version control is actually how our team members work on the web root. Since one person can't always be there to manage the repository. However, I'm wondering what the "deployment script" you are talking about is.
Mar
25
comment Why would sshd allow root logins by default?
Really? What is bad about it? I just started doing it because I saw respected admins doing it...
Mar
25
asked Proper umask on linux webservers?
Mar
25
answered Why would sshd allow root logins by default?
Mar
24
comment How to setup linux permissions for the WWW folder?
Ok, well I know I use PHP to create lots of text, tar, log, and image files (plus folders) so I was just assuming that everything should be writable. However, perhaps your right and PHP should be able to only CHANGE FILES IT CREATES which would be harmless since 99% of all PHP apps never makes script files. The other choice seems to be to only allow certain directories PHP write access (/uploads/) which doesn't make since because then PHP could still be used to create something bad there. Any ideas?
Mar
24
revised How to setup linux permissions for the WWW folder?
edited title
Mar
24
comment www-data ownership makes the WordPress installation consume more memory
If www-data owns the folders/files then that means PHP can create new files which means that wordpress can waste time and memory working with the filesystem.
Mar
24
comment How to setup linux permissions for the WWW folder?
apparently git runs as the user running it - just like any other tool.