LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 03-16-2005, 10:35 PM   #1
jrdioko
Member
 
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, 11:06 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912
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
 
Old 03-17-2005, 01:26 AM   #3
jrdioko
Member
 
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

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


Reply


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 03:52 PM
Programs not starting Floydian Linux - Newbie 8 12-28-2004 01:04 PM
Starting up programs in .xinitrc ? BajaNick Linux - Software 11 07-19-2004 11:40 AM
starting programs in .bashrc bluemoose Linux - Newbie 1 07-27-2003 03:30 PM
Programs Not Starting BrandonJG Linux - General 2 09-02-2002 10:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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