Solved

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

Posted on 2007-03-25
2
256 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Explain the command ls -1tr | head -n -10 | xargs -d '\n' rm -f -- 4 67
NFS v4 7 76
How many users could squid support? 21 61
Linux: using  awk and print inside cURL 4 48
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
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 get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Suggested Courses

751 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