Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Tenshi
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
thompsonmike
Apprentice
Apprentice


Joined: 19 Jan 2004
Posts: 275
Location: Bath UK

PostPosted: Sun Aug 22, 2004 5:56 pm    Post subject: Tenshi Reply with quote

I have just installed Tenshi, but have one small question.

when started from the init script, it attempts to start the program under the user tenshi, which has no access to the Messages file.

I removed the user clause from the init file, so it is now running as root. Is this safe?

If not what is the best way to run it so it can read the messages file?
_________________
Thanks


Michael..
Back to top
View user's profile Send private message
tigger^
Retired Dev
Retired Dev


Joined: 01 Jun 2003
Posts: 9
Location: UK

PostPosted: Sun Aug 22, 2004 8:28 pm    Post subject: Re: Tenshi Reply with quote

thompsonmike wrote:
I have just installed Tenshi, but have one small question.

when started from the init script, it attempts to start the program under the user tenshi, which has no access to the Messages file.

I removed the user clause from the init file, so it is now running as root. Is this safe?

If not what is the best way to run it so it can read the messages file?


Firstly, the forums aren't the best method for asking tenshi related questions as neither me nor Andrea frequent them (I was pointed to this post by another dev). I would suggest irc or email are better options. Now onto the question.

I have nothing more magical to suggest than either allowing tenshi to read the log file by adding the tenshi user to a group and chgrp'ing your log files, or just continue to run tenshi as root.

While we don't beleive tenshi can be subverted in anyway its best not to run things as root in general, so if you can avoid it, you should.

Most people change their log permissions to allow tenshi to read them.

Cheers,

Rob
Back to top
View user's profile Send private message
thompsonmike
Apprentice
Apprentice


Joined: 19 Jan 2004
Posts: 275
Location: Bath UK

PostPosted: Sun Aug 22, 2004 11:30 pm    Post subject: Reply with quote

Excellent, thanks for your help. :)
_________________
Thanks


Michael..
Back to top
View user's profile Send private message
line72
Apprentice
Apprentice


Joined: 13 Jun 2002
Posts: 212

PostPosted: Thu Sep 09, 2004 1:05 pm    Post subject: Reply with quote

I changed the permissions of /var/log/messages which let tenshi start, but everynight /var/log/messages is changed back to only root premissions. I'm using syslog-ng.

Thanks,
/Mark
Back to top
View user's profile Send private message
hanj
Veteran
Veteran


Joined: 19 Aug 2003
Posts: 1500

PostPosted: Thu Sep 09, 2004 4:33 pm    Post subject: Reply with quote

Hello

Give this a shot...edit /etc/syslog-ng.conf

Code:
destination messages { file("/var/log/messages" owner("root") group("tenshi") perm(0640)); };


Hope this helps
hanji
Back to top
View user's profile Send private message
line72
Apprentice
Apprentice


Joined: 13 Jun 2002
Posts: 212

PostPosted: Thu Sep 09, 2004 5:03 pm    Post subject: Reply with quote

thanks, that fixed it!

/Mark
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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