LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 03-15-2004, 10:11 PM   #1
Tyir
Member
 
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
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
man sudoers
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:14 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
Open Source Consulting | Domain Registration