Linux - GeneralThis 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.
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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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.
Distribution: Lots of distros in the past, now Linux Mint
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.
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.
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