Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 06-23-2008, 09:45 AM   #1
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

Thamizhannal P
Old 06-23-2008, 03:38 PM   #2
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 ->


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

All times are GMT -5. The time now is 06:16 AM.

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