Solved

webpage needing to be read by browser but owned by different user.

Posted on 2007-03-25
2
252 Views
Last Modified: 2010-04-20
I am running CentOS 4 (RHEL4) with PLESK 8.0 installed.

I have a user account that runs an eggdrop bot which creates a *.htm file under user test_user:test_user

I need this file to be readable by a browser under a particular domain.

therfore my websites are located at /var/www/vhosts/domain.com/httpdocs which has ownership of domain:psacln

What is the best way to either:
1) Be able to update the file located at /var/www/vhosts/domain.com/httpdocs/file.htm and still keep it readable by a browser, thus I assume i need the file to have owner of domain:psacln

- or -

2) have the user account of domain be able to read the file.htm and display it at www.domain.com/file.htm

I have tried adding the user test_user to the group psacln and it wrote to there, but the file took on the ownership of test_user:test_user and was not able to be read by a browser. Therefore, I am stuck..

Please help me find the best way to work this situation.

Thanks.
0
Comment
Question by:dgormley
2 Comments
 
LVL 27

Accepted Solution

by:
Nopius earned 75 total points
Comment Utility
> I have tried adding the user test_user to the group psacln and it wrote to there, but the file took on the ownership of test_user:test_user and was not able to be read by a browser.

Try to add user 'domain' to group 'test_user' to get your apache read access to that file (I guess that file is group readable). Or you may change permissions on this file to be world readable.
0
 
LVL 15

Assisted Solution

by:samri
samri earned 50 total points
Comment Utility
just addition to comment bu Nopius,

make sure the file, and path (all the /path/to/the/file.html)  the path to file is readable by apache process.  

0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now