Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Scripts And Other Files, More permissions problems
[BH]boogieman
post Jul 20 2004, 01:37 AM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 7
Joined: 14-July 04
Member No.: 3,344



So I'm still having trouble with permissions. It's not a hard concept to grasp, it's just that there seem to be a few quirks I'm unfamiliar with. Anyway, here's the problem:

I worked on a server once before where I had CGI files that generated various output files, from saved settings to actual HTML. However, on my own server, I'm having a bit of trouble. The CGI files aren't actually saving the settings or re-writing the HTML like they're supposed to, and the obvious reason is that the files don't have world-write permissions set. And who in their right mind would set them that way? blink.gif

But I know that on the server I worked on before, I had no problems with this; the files didn't have world-write permissions, but I could still write out to them with CGI. It was as if the CGI files had write permissions or something, but I'm not sure how to set that up. Any ideas?

Thanks a lot!


--------------------
Once again, I am free to smite the world as I did in days long past.
Go to the top of the page
 
+Quote Post
hughesjr
post Jul 20 2004, 06:43 AM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



The files in question (that need to be written to by CGI or any other server process) need to be owned by (or have the group set to) the user that apache runs as ... and their permissions need to be 644 (if the owner is the apache server's user) or 664 (if the group is the apache server's group only).

See the httpd.conf file to see the uesr and group apache runs under.


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post
[BH]boogieman
post Jul 20 2004, 11:34 PM
Post #3


Whats this Lie-nix Thing?
*

Group: Members
Posts: 7
Joined: 14-July 04
Member No.: 3,344



Thanks a bunch; that's the second time you've helped me now. Setting the permissions like you suggest worked perfectly.

P.S. Are you really Torvald's twin? wink.gif


--------------------
Once again, I am free to smite the world as I did in days long past.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 20th October 2017 - 12:59 PM