• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 201
  • Last Modified:

admin account vs user account

Dear experts,

I wish to know if there is a better way for user to configure the files under /var/www/html in a more convenient way?

I am running the web server. Each time when I have to make changes to the files under the /var/www/html directory, I need to copy it out to user's workspace and copy it back to /var/www/html with 'su' privilege.

What will be a better way that will allow the user to make the changes easily and still keep the / (root) directory secure?

I have few ideas:
1. add user to admin group
2. active public_html
3. change the document root

Besides the ideas from above, what is the best choice or there are other better choices?

Kinderly Wade
Kinderly Wade
2 Solutions
Dave BaldwinFixer of ProblemsCommented:
Are these separate sites?  I use the 'per-user' setup with 'public_html' in each user's directory under '/home'.  This is also how most of my shared hosting is set up.
Nick UpsonPrincipal Operations EngineerCommented:
if its one user on the machine you could just make them a member of the apache group
Kinderly WadeprogrammerAuthor Commented:
Thanks for the great solutions. At this moment there is only one user but may have more later.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Build your data science skills into a career

Are you ready to take your data science career to the next step, or break into data science? With Springboard’s Data Science Career Track, you’ll master data science topics, have personalized career guidance, weekly calls with a data science expert, and a job guarantee.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now