Gossamer Forum
Home : Products : Gossamer Links : Discussions :

change owner in mod_perl

Quote Reply
change owner in mod_perl
Hello

I have a strange detail found in mod_perl 1.27 on my redhat installation.

when I login to my links-SQL admin & go to fileman->command & enter whoami
I am the user who have ftp access & installed the scripts.

Now I load the scripts in mod_perl & do the same command again.
now i am nobody ?????

I know that apache is normally owned by user nobody, & mod_perl is a modulke of apache, but I can't change & templates & make new dirs anymore.

Does others have this problem & what is the best way to solve this?

Last edited by:

ridesworld: May 28, 2003, 12:11 AM
Quote Reply
Re: [ridesworld] change owner in mod_perl In reply to
Hmmm, I know that problem, the modules would be integrated into apache that's run under nobody.

The only thing i can do is to change owner of your templates to nobody.
Quote Reply
Re: [ridesworld] change owner in mod_perl In reply to
If you are the only one on your server, you can set the permissions on:

../admin/defs
../admin/Plugins
../admin/templates
also
../public/images (or whatever)
../public/pages (or whatever)

to 777 using chmod -R 777 ./directory

This will allow you to edit them as either user.

You need to be "root" to do that, though, or have 'root' type access through your shell.

If you are not on a secured machine, where others could possibly get access to your directories, you'll have to do something trickier, such as joining the same "group" as your server, ie: nobody, and then setting the permissions to 774 rather than 777

You *CAN'T* use the chmod -R command (you'll have to actually do that *IN* the directories for the templates, defs, and Plugins, Plugins/Installed, and Plugins/Uninstalled, since directories *need* to have the execute bit set, so they must be at least 775

(You could theoretically set everything to 775, it really won't "hurt" since the server won't execute .txt or .html files unless it's been set up to)


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Quote Reply
Re: [ridesworld] change owner in mod_perl In reply to
Quote:
but I can't change & templates & make new dirs anymore.

I don't see why not. Do you mean fileman won't create any files?

I use mod_perl and haven't seen this issue. I've also used fileman on other mod_perl enabled servers and have not experienced any issues.
Quote Reply
Re: [Paul] change owner in mod_perl In reply to
hello Paul

Under which user did you install your Links-SQL and Apache???

the pronlem I have is rather logic, because Apache runs under nobody, and the modules you which to preload into the apache registry should be changed to user nobody.

Now fileman can create new templates & gives them user nobody.

fileman & build->User Templates are able to create & edit templates if it's under nobody.
Quote Reply
Re: [ridesworld] change owner in mod_perl In reply to
Have you tried using SuEXEC?

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!