Gossamer Forum
Home : Products : Links 2.0 : Customization :

Run scripts as myself

Quote Reply
Run scripts as myself
How can configure Links to run the scripts as myself and not the web server (www or nobody)? I want to have permissions to the files and directories. Thanks.
Quote Reply
Re: Run scripts as myself In reply to
I don't understand your question.

Please rephrase.

Thanks,

John

------------------
www.yahoosuck.com - it really does!
jmurphy@yahoosuck.com
Quote Reply
Re: Run scripts as myself In reply to
Sorry about that.

I meant to say how do I configure Links to run as my username/account and not as the web server user www or nobody. When the directories and files are created by the web server then I don't rights to delete them.
Quote Reply
Re: Run scripts as myself In reply to
The pages and directories created by Links are created by user 'nobody' because Links (the server) is the one creating the pages and directories. If you were to manually make the directory or upload the file, then you would be the owner. This is just the way that Unix/Linux works.

If you do need a way to delete the files and directories, there are two things you can do to delete them. Mark has a wipeout script that will kill the directories that are made by Links. I've also found that the freeware file manager Genesis ( http://www.xav.com/scripts/genesis/ ) will delete directories that are owned by nobody. I haven't tried Alex's file manager, but I'm sure it can probably delete the user 'nobody' directories too.
Quote Reply
Re: Run scripts as myself In reply to
Another option is to ask your server provider for a CGI wrapper, like CGI-Wrap. With CGI wrapper, if a CGI script is ran using it, all files that are created will be under a user name specified by the wrapper. Search for CGI wrapper in Yahoo for more information.
Quote Reply
Re: Run scripts as myself In reply to
From past experience, I would recommend against a CGI Wrapper of any type. Before CGI was so freely available on remote servers (when everybody was scared of rogue programmers on the internet), many ISP's that I dealt with forced users to go through CGI Wrappers. The hassle associated with wrappers just isn't worth it. If an ISP is willing to let you have full CGI access, don't ruin it. In the long run, it is easier to get a script that can wipe out files from the web even if it is a little more work.