Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
non-root user tail -f /var/log/messages
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
klepto
n00b
n00b


Joined: 03 Mar 2006
Posts: 18

PostPosted: Mon Mar 20, 2006 2:16 am    Post subject: non-root user tail -f /var/log/messages Reply with quote

I love the way that non root users don't even see alot of executables
but I need a regular user to tail the /var/log/messages but I get a permission denied.
Should I add the user to a specific group? All help is appreciated.
Back to top
View user's profile Send private message
brims
Guru
Guru


Joined: 19 Apr 2004
Posts: 492
Location: Arizona

PostPosted: Mon Mar 20, 2006 2:58 am    Post subject: Reply with quote

Code:
# ls -lh /var/log/messages
-rw------- 1 root root 8.8K Mar 19 05:31 /var/log/messages


Either you'll have to change the group to some other group and add any user you want to be able to read the file to that group and change the permissions to 540 on /var/log/messages, or change them to 504 and allow any user to read the file, which is probably the least desirable way.
_________________
Adopt an Unanswered Post
Report violations, duplicates, misplaced, etc
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum