LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Starting programs as root (https://www.linuxquestions.org/questions/linux-software-2/starting-programs-as-root-302563/)

jrdioko 03-16-2005 09:35 PM

Starting programs as root
 
I just found the root-tail utility and I'd like to use it to display logs. However, it needs to be run as root to get read access to the logs. Taking security into account, what's the safest way to get this to run every time I start X? Thanks.

Tinkster 03-16-2005 10:06 PM

Once it's installed ...

Add yourself to wheel ...

chgrp wheel `which root-tail`
chmod g+s `which root-tail`
and a chgrp on the logs you want your
user to watch....


Should do the trick :)


Cheers,
Tink

jrdioko 03-17-2005 12:26 AM

Works great, thanks!


All times are GMT -5. The time now is 07:51 AM.