Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
02-14-2004, 07:27 PM
|
#1
|
|
Member
Registered: Dec 2003
Location: Louisville, KY
Distribution: Gentoo (desktop), Mandrake 10.0 (server)
Posts: 39
Rep:
|
File permissions and cgi scripts
I'm trying to write a simple CGI script in C to pull information out of my apache access_log so I can keep track of traffic and which directories are getting the most hits. Thing is my log files are all restricted to high level users. So what I'm wondering is, is there anyway to get around to grant the script access to just this file without raising its permissions....possibly create a new group? I thought about just chmoding the file but won't the permissions just revert back when it archives the file at the end of each month? Thanks.
|
|
|
|
02-14-2004, 11:27 PM
|
#2
|
|
Member
Registered: Jul 2003
Location: Brighton, Michigan, USA
Distribution: Lots of distros in the past, now Linux Mint
Posts: 746
Rep:
|
your file permissions should stay the same, regardless of archiving (which makes sense if you think about the mess it might cause otherwise). If you're dealing with a production system, or this file is something that you might want to change in the future, a group dedicated to it (and other related files) would be my preference.
|
|
|
|
02-16-2004, 12:46 PM
|
#3
|
|
Member
Registered: Dec 2003
Location: Louisville, KY
Distribution: Gentoo (desktop), Mandrake 10.0 (server)
Posts: 39
Original Poster
Rep:
|
Well I moded the file and folders I need (755) works great....for about an hour or two then the permissions all revert back. So whats the deal why is this happening? Cron job maybe? Help 
|
|
|
|
02-16-2004, 02:30 PM
|
#4
|
|
Member
Registered: Dec 2003
Location: Louisville, KY
Distribution: Gentoo (desktop), Mandrake 10.0 (server)
Posts: 39
Original Poster
Rep:
|
Ok, so I figured out what was changing my permissions....something called msec, chich is running as an hourly cron job so I was partly right in my above guess. Now my question is....can anyone tell me how to configure this damn thing. I've spent an hour trying to track down its config file and have found a ton of files but not the database that tells which folders have which permissions assigned to them. Thanks again.
|
|
|
|
02-16-2004, 02:33 PM
|
#5
|
|
Member
Registered: Jan 2004
Location: Green Bay
Distribution: RedHat 8.0, LFS-5.0
Posts: 100
Rep:
|
I know this is not your question, but have you looked into webalizer?
|
|
|
|
02-16-2004, 02:36 PM
|
#6
|
|
Member
Registered: Dec 2003
Location: Louisville, KY
Distribution: Gentoo (desktop), Mandrake 10.0 (server)
Posts: 39
Original Poster
Rep:
|
I looked around at some prefab scripts but couldn't find any that really did what i wanted....plus I'm kind of doing this as a project to help me learn more linux so a lot of it just so I can say I did it without too much help 
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:08 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|