You are not logged in.
Hi!
How can I give the group "logreaders" a permission to read /var/log/messages? and how can I give them read access to the whole /var/log directory?
Thanks!
Last edited by SoleSoul (2010-04-21 20:54:00)
Offline
One thing is no two UNIX systems are guaranteed to do permissions the same way. You could be using SELinux with root as NTFS and no standard advice would even apply. So basically this is one of those you-need-to-know-your-own-system situations where you Google for answers yourself.
aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies
Offline
Thank you for your answer.
Ow, of course I googled... The forum is usually my last resort.
I didn't really understand your answer though.
I don't use SElinux, ext3 filesystem, quite normal linux box.
Can you give me at least one possible scenario and it's way of doing things so I could see how this works?
Offline
I think that reading this could be helpful:
I haven't lost my mind; I have a tape back-up somewhere.
Twitter
Offline
This is one example:
$ man chown
$ man chmod
...
# chown root:logreaders /var/log/messages
# chmod g+r /var/log/messages
Zeist's link has good information.
Offline
Thank you very much everyone!
I settled on this solution:
# chown root:logreaders /var/log/messages
# chmod g+r /var/log/messages
I got to this conclusion before seeing your post and I was very happy to see from your post that I wasn't wrong.
Thanks for the link Zeist.
I thought before that each file can have it's own list of groups and users which can read/write to it. I was wrong.
Learned something.
Last edited by SoleSoul (2010-04-21 19:44:51)
Offline
One thing is no two UNIX systems are guaranteed to do permissions the same way. You could be using SELinux with root as NTFS and no standard advice would even apply. So basically this is one of those you-need-to-know-your-own-system situations where you Google for answers yourself.
NTFS for root? o.O
The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...
Offline
lol i think fsckd was just trying to prove a point.
@SoleSoul, at least on my system most files in /var/log are already readable by members of the group "log". adding users to this group might've been a better approach...
Last edited by brisbin33 (2010-04-21 20:04:11)
//github/
Offline
ah brisbin... I wish I would have worked on Arch.
The server I'm working on right now belongs to my university and it runs CenOS 5.3.
Almost all of the content of /var/log is root:root.
Thanks for the tip anyway.
Offline
lol i think fsckd was just trying to prove a point.
Bingo.
aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies
Offline