LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-23-2008, 09:45 AM   #1
tcegrid
LQ Newbie
 
Registered: Apr 2007
Posts: 10

Rep: Reputation: 0
How to run root privileged Linux command as normal user via shell shell


Hi All,
I want to run root privileged Linux command through shell script as normal user say tomcat. I used sudo option. But it prompts the user's
(tomcat) password.

Is there any way to do this without typing user's password

Regards,
Thamizhannal P
 
Old 06-23-2008, 03:38 PM   #2
LiamFromLeeds
Member
 
Registered: Dec 2006
Distribution: Arch
Posts: 44

Rep: Reputation: 15
Yes. If you configure sudo correctly then you can run commands without being prompted for a password. There's another thread on linuxquestions which runs through this -> http://www.linuxquestions.org/questi...r-sudo-442808/
 
  


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
Difference between normal shell and login shell Manish Linux - General 7 11-14-2012 08:30 AM
root shell for normal user SChipS Fedora 8 08-29-2007 03:23 AM
how to run root command having normal user permission ravi.patil Linux - Newbie 7 05-21-2006 02:21 PM
allow sudo for www user to run root shell script cccc *BSD 12 07-23-2005 03:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:21 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