Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 03-15-2004, 10:11 PM   #1
Registered: Sep 2003
Distribution: Slackware 9.1 with fluxbox
Posts: 259

Rep: Reputation: 30
menu item (command) to use root

I want ot be able ot have a term open which shows the tail opf /var/log/messages

What I have so far is

alias watchtail='su -c "tail -f -n 3 /var/log/messages"'

SO if i run watchtail
i get
Passwordput in password)
and it work, but I would like if it was able to be run directly from one command (so i can put in my fluxbox menu, if you know what i mean)
Is there a way to pass the root password as a command in this case?..
I'm wondering that it is difficult to do as a security feature, and if so, what would the best way for me to do that?
I guess open a term, and type watchtail and then the password, but i am too lazy

Anyway, if there is a better way, that would be cool, if not, thats cool too.
Old 03-16-2004, 09:53 AM   #2
LQ Guru
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
man sudoers


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
making a menu item in suse9.2 invinciblegod Linux - Newbie 2 07-20-2005 07:09 PM
How to add a new item to Gnome menu TruongAn Linux - Software 1 05-29-2005 01:53 AM
add a menu item in gnome... jkassemi Linux - Newbie 1 03-31-2005 11:38 PM
Menu item in Madrake 9.2 Veli Mandriva 2 07-11-2004 06:24 AM
RH 8.0 How to add an item to the Main Menu??? jessepangburn Linux - Distributions 5 11-22-2002 04:43 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:00 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration