Solved

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

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

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

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

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses

636 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