giving access to /etc/valiases/domain.com to user with php s

haze

Well-Known Member
Dec 21, 2001
1,540
3
318
I have a customer that wants to be able to edit the file via a php script on his site. How can I go about doing this?
 

parag

Well-Known Member
Aug 16, 2001
115
0
316
[quote:aa2e8a36bc][i:aa2e8a36bc]Originally posted by iminteractive[/i:aa2e8a36bc]

I have a customer that wants to be able to edit the file via a php script on his site. How can I go about doing this?[/quote:aa2e8a36bc]

right now we do that manually for our clients ..

but if there is a script to edit that which a client can handle on his/her own - would be great.

Parag
 
B

bdraco

Guest
[quote:82a454e803][i:82a454e803]Originally posted by iminteractive[/i:82a454e803]

I have a customer that wants to be able to edit the file via a php script on his site. How can I go about doing this?[/quote:82a454e803]

He just wanted to edit it manually in a text box?
 

haze

Well-Known Member
Dec 21, 2001
1,540
3
318
He is providing aliases to users of his site, and he has a scipt made up to automatically modify the file to do so. What permissions or ownerships rather, should I make? Are there any other steps?
 
B

bdraco

Guest
[quote:f6067f534d][i:f6067f534d]Originally posted by iminteractive[/i:f6067f534d]

He is providing aliases to users of his site, and he has a scipt made up to automatically modify the file to do so. What permissions or ownerships rather, should I make? Are there any other steps?[/quote:f6067f534d]

Its already writable to his user if you a using suexec.
 

haze

Well-Known Member
Dec 21, 2001
1,540
3
318
Nope, I cant use SuExec, as it conflicts with a few of our users cgi scripts.
 

moronhead

Well-Known Member
Aug 12, 2001
706
0
316
[quote:dbc7054457][i:dbc7054457]Originally posted by bdraco[/i:dbc7054457]

[quote:dbc7054457][i:dbc7054457]Originally posted by iminteractive[/i:dbc7054457]

He is providing aliases to users of his site, and he has a scipt made up to automatically modify the file to do so. What permissions or ownerships rather, should I make? Are there any other steps?[/quote:dbc7054457]

Its already writable to his user if you a using suexec.[/quote:dbc7054457]
If the valias file is already user writeable why would we need suexec to make the php script modify the file?
 

snowgod

Well-Known Member
Sep 23, 2001
70
0
306
Because otherwise the script is run as &nobody& rather than the user (and the user owns his/her own valiases file). Nobody doesn't have access to write this file.

But I didn't think PHP scripts were actually run under the user's UID under a buildapache(mod_php) setup, even with SUEXEC.

Nick?
 

haze

Well-Known Member
Dec 21, 2001
1,540
3
318
Anyone have a solution for this at all? Im still fooling around and haven't come up with anything.