LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 02-09-2007, 01:46 PM   #1
MOCKBA
Member
 
Registered: Oct 2003
Location: Moscow
Distribution: Ubuntu
Posts: 61
Blog Entries: 1

Rep: Reputation: 15
Script with root privileges running by an ordinary user


I need a script starting app server listening on port 80. This server can be started by certain users not having root privileges. How can I achieve that? I guess I can allow only execution of the script for other users, so they can’t open it and look inside. What should be inside?
I plan to put
sudo /b>appserver<

How can I specify root password in script?
Is there some other more appropriate to Linux solution?
 
Old 02-09-2007, 01:58 PM   #2
wpn146
Member
 
Registered: Jan 2005
Distribution: Solaris, Linux Fedora Core 6
Posts: 170

Rep: Reputation: 30
You can configure this in your sudoers file.
 
Old 02-09-2007, 02:39 PM   #3
Hitboxx
Senior Member
 
Registered: Mar 2006
Location: India
Distribution: Fedora
Posts: 1,562
Blog Entries: 3

Rep: Reputation: 68
Maybe you can try creating a new group, add these certain users to it and privilege this group with just execution rights, no read and write access.
 
Old 02-09-2007, 03:33 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Like wpn146 said: sudo.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Running a script as root with sudo without entering the user password kloss Linux - General 8 10-10-2005 11:39 AM
giving root privilage to ordinary user... skie_knite007 Programming 5 09-13-2005 09:03 AM
running cron job as an ordinary user fahad26 Linux - General 1 06-30-2005 03:46 AM
Problem running giFT (with FastTrack plugin) as ordinary user MacLin Linux - Software 1 02-09-2005 04:48 AM
How a ordinary user can run commands having only root privilige in C? shivaligupta Programming 1 01-31-2005 04:24 AM

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

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