Operating System - Linux
1752816 Members
3812 Online
108789 Solutions
New Discussion юеВ

Re: Create group with read access to log files

 
Adithyan
Frequent Advisor

Create group with read access to log files

Friends,

I would like to create a 5 member group which should have read only access to all the system logs (/var/log/messages..etc)

How do I do this. I could see by default the /var/log/message has a permission of 600.

Please help.

Regds...Adi.
Keen to learn HP UX
4 REPLIES 4
Ivan Ferreira
Honored Contributor

Re: Create group with read access to log files

You could use sudo to allow the more/less/cat/grep/head/tail commands specifically for the /var/log/messages file.

Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Adithyan
Frequent Advisor

Re: Create group with read access to log files

Hi Evan, thannks for the prompt reply. I have a series of other log files also to be given the same thing like apps logs. Could you give me a sample procedure, how to do it with sudo?

Thanks,
Adi.
Keen to learn HP UX
dirk dierickx
Honored Contributor

Re: Create group with read access to log files

Dennis Handly
Acclaimed Contributor

Re: Create group with read access to log files

>How do I do this? I could see by default the /var/log/message has a permission of 600.

You would have to change the group of the files and /var/log/message to your new group and add group read (and execute for that directory).