FutureQuest, Inc. FutureQuest, Inc. FutureQuest, Inc.

FutureQuest, Inc.
Go Back   FutureQuest Community > General Site Owner Support (All may read/respond) > General Computing
User Name
Password  Lost PW

Reply
 
Thread Tools Search this Thread Display Modes
Old 05-13-2014, 11:53 PM   Postid: 183523
johnfl68
Site Owner
 
johnfl68's Avatar

Forum Notability:
975 pts: Dignified Competence!
[Post Feedback]
 
Join Date: Nov 2003
Location: Orlando, FL
Posts: 1,141
Site folder permissions - non FQ

Hello:

I thought I would ask here as well, I know there are many helpful people here.

On a non-FQ server, for /var/www what user/group do YOU run as?

root:root
user:user
root:www-data
www-data:www-data
somethingelse:somethingelse

I am migrating to a new server with SSD drives and latest Ubuntu, but having some file writing permission issues. On the old server, some things are owned by root and some are user. I have crontab running perl scripts that write to /var/www throughout the day, and some things are not being written on the new server.

I have been searching, and there are so many different ways to do the ownership of /var/www that I don't know what is the best answer.

I want to clean house so to speak, so that I can do a global permissions change to everything in /var/www but not sure what is best.

Your thoughts on this are appreciated.

Thanks!

John
__________________
Klaatu: I won't resort to threats, Mr. Harley. I merely tell you the future of your planet is at stake.
The Day the Earth Stood Still (1951)
johnfl68 is offline   Reply With Quote
Old 05-14-2014, 11:04 AM   Postid: 183533
hobbes
Have you hugged a tiger today?
 
hobbes's Avatar

Forum Notability:
1363 pts: A True Crowd-pleaser!
[Post Feedback]
 
Join Date: Mar 2000
Location: Third Sol Planet Posts: Far too many. Oh ok -
Posts: 2,887
Re: Site folder permissions - non FQ

You always want to avoid giving anything root permission if you don't have to.

Many systems setup a separate "web" user/group (e.g., www-data), which is what the HTTP process runs under and the files are owned by.

On shared servers, you may find the files owned by individual user accounts.

Bottom line, if this is all your own stuff anyway and it won't be shared by others, go with www-data:www-data (unless it's already being used for something else).
hobbes is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 visitors)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 12:25 AM.


Running on vBulletin®
Copyright © 2000 - 2019, Jelsoft Enterprises Ltd.
Hosted & Administrated by FutureQuest, Inc.
Images & content copyright © 1998-2019 FutureQuest, Inc.
FutureQuest, Inc.