WebFaction
Community site: login faq

How do we allow CGIs created by a secondary user to run?

A friend and I are collaborating. He's the account owner and has granted me access to the Static/CGI directory. However, any files I create will not execute over the web (does run on command line). The same file, with the same permissions, but with him as owner DOES execute over the web. (Once I determined that the file must not be writeable by any but owner)

What step are we missing? How should we arrange such collaboration?

asked 04 Apr '12, 21:13

SwiftOne
111
accept rate: 0%


Apache uses suexec to execute files as the main user, hence the files you create must be executable by the main user so that they can run.

You can ensure any files you create get permissions for the main user too using:

setfacl -R -m d:u:primary_username:rwx $HOME/webapps/application
permanent link

answered 05 Apr '12, 02:17

neeravk
1.5k3412
accept rate: 41%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×125
×31
×4

question asked: 04 Apr '12, 21:13

question was seen: 8,057 times

last updated: 05 Apr '12, 02:17

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM