Hi
I have a Plesk-controlled server set up running Apache and am having file premission issues.
That is, I've got a script that needs to create a new file in a directory that belongs to another domain. For example:
http://domain1.co.uk/cgi-bin/writefile.cgi
needs to write to:
/var/www/vhosts/domain2.co.uk/httpdocs/files
The permissions/owner/group on that directory are:
775 / doman2_user / psacln
I've tried adding the users 'domain1_user' and 'apache' to the psacln group (and restarting Apache) but I still get "permission denied" when trying to write the file.
Any ideas what I need to do to get this to work?
Thanks
Bigus
[SOLVED] Permissions / Perl CGI
Re: Permissions / Perl CGI
Hmm, I've found a solution.
If I add domain1_user to the psaserv group it works.
I don't really understand *why* that works though. psaserv is the group on the httpdocs directory itself but the group at the level I want to write to is psacln, which I thought would override that.
Bigus
If I add domain1_user to the psaserv group it works.
I don't really understand *why* that works though. psaserv is the group on the httpdocs directory itself but the group at the level I want to write to is psacln, which I thought would override that.
Bigus
-
- Retired Moderator
- Posts: 18276
- Joined: 2006/12/13 20:15:34
- Location: Tidewater, Virginia, North America
- Contact:
[SOLVED] Permissions / Perl CGI
Thanks for reporting your solution. Marking the thread [SOLVED] for posterity.