LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 11: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, 10:53 AM   #2
aaa
Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
man sudoers
 
  


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 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 08:09 PM
How to add a new item to Gnome menu TruongAn Linux - Software 1 05-29-2005 02:53 AM
add a menu item in gnome... jkassemi Linux - Newbie 1 04-01-2005 12:38 AM
Menu item in Madrake 9.2 Veli Mandriva 2 07-11-2004 07:24 AM
RH 8.0 How to add an item to the Main Menu??? jessepangburn Linux - Distributions 5 11-22-2002 05:43 PM


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

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration