LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Basic question about groups (https://www.linuxquestions.org/questions/linux-general-1/basic-question-about-groups-340701/)

celejar 07-06-2005 03:00 PM

Basic question about groups
 
I need to give the fwlogwatch firewall monitoring script (run as a cgi by the web server - user www-data) access to /var/log/messages, which is owned by root, belongs to the adm group, and has mode 620. The docs say to add www-data to the adm group, but it still doesn't work. Do I need do have the script do a 'newgrp'? What is the right way to do this? It is a Debian (Sarge / Etch) system.

nadroj 07-07-2005 12:34 AM

as it stands now, with your permissions you have:
6 (owner) = read/write
2 (group) = write
0 (others) = nothing

now, is the problem with trying to read/execute the file? if so, change the permission to something else to allow group to do what you need to with the file.

Permissions:
1=execute
2=write
4=read

to find out what octal number to use, just add up whatever attributes you want, ie: write/execute = 1 + 2 = 3

celejar 07-07-2005 09:25 AM

Typo; the permissions are 640 (-rw-r-----). I want to read the file (which the group [adm] is allowed to do).


All times are GMT -5. The time now is 03:57 PM.