Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-16-2005, 09:35 PM   #1
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Rep: Reputation: 30
Question 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.
Old 03-16-2005, 10:06 PM   #2
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927
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 :)

Old 03-17-2005, 12:26 AM   #3
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Original Poster
Rep: Reputation: 30
Works great, thanks!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Starting programs charnel Linux - General 1 08-02-2005 02:52 PM
Programs not starting Floydian Linux - Newbie 8 12-28-2004 12:04 PM
Starting up programs in .xinitrc ? BajaNick Linux - Software 11 07-19-2004 10:40 AM
starting programs in .bashrc bluemoose Linux - Newbie 1 07-27-2003 02:30 PM
Programs Not Starting BrandonJG Linux - General 2 09-02-2002 09:52 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:10 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration