Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 07-06-2005, 03:00 PM   #1
Registered: Oct 2003
Location: New York
Distribution: Debian Sid
Posts: 185

Rep: Reputation: 30
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.
Old 07-07-2005, 12:34 AM   #2
Senior Member
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 60
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.


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

Last edited by nadroj; 07-07-2005 at 12:39 AM.
Old 07-07-2005, 09:25 AM   #3
Registered: Oct 2003
Location: New York
Distribution: Debian Sid
Posts: 185

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Question about owner and groups being displayed as numbers nukey Slackware 5 09-21-2005 09:47 AM
Simple groups question scottrell Linux - General 1 12-02-2004 03:35 PM
listing groups question?? samills70 Red Hat 1 06-11-2004 12:59 PM
Quick users/groups question Nico Linux - General 2 12-09-2003 01:18 AM
winbind: wbinfo -g only lists global groups from PDC and not local groups saradiya Linux - Networking 0 12-01-2003 02:58 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:32 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration