Solved

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

Posted on 2007-03-25
2
253 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
ID: 18805412
> 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
ID: 18856712
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
Fine Tune your automatic Updates for Ubuntu / Debian
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
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.

867 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

18 Experts available now in Live!

Get 1:1 Help Now