Solved

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

Posted on 2007-03-25
2
254 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Fine Tune your automatic Updates for Ubuntu / Debian
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…

815 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

8 Experts available now in Live!

Get 1:1 Help Now