LinuxQuestions.org
Register a domain and help support LQ
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 07-27-2010, 06:44 AM   #1
chamila1986
Member
 
Registered: Oct 2009
Posts: 31

Rep: Reputation: 15
Lightbulb Give permission to execute process as super user...


I have a program(that is written by me) which need super user permission to execute it. But I need to let the normal users to execute it without using 'sudo ./executable' and just './executable'. how i can set the program to execute by the normal users without using 'sudo' or password prompting.
please help me...
 
Old 07-27-2010, 07:02 AM   #2
zirias
Member
 
Registered: Jun 2010
Posts: 361

Rep: Reputation: 59
you need to set the "suid" bit:

Code:
chmod u+S /path/to/executable
But, be aware, this COULD be a major security hole. Be sure to only do this on SMALL, thoroughly TESTED binaries. When the suid bit is set, this binary will ALWAYS be executed with the rights of its owner in the filesystem, no matter who is calling it.
 
1 members found this post helpful.
Old 07-27-2010, 07:03 AM   #3
zordrak
Member
 
Registered: Feb 2008
Distribution: Slackware
Posts: 595

Rep: Reputation: 115Reputation: 115
http://en.wikipedia.org/wiki/Setuid
http://www.howtoforge.com/linux_setting_suid_sgid_bits
 
1 members found this post helpful.
  


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
How to make a normal user execute commands of the super user's .?.. siranjeevi Linux - Server 1 07-03-2010 04:51 AM
Help with user permission level--give access to a user 2 use 500 servers svani Linux - Newbie 2 06-17-2010 09:57 PM
Permission Denied to Super User? EpicOfChaos Linux - Newbie 2 10-15-2008 11:28 AM
Give user rights to execute program max2004 Linux - Newbie 7 11-30-2005 08:17 PM
How can give ROOT permission to a NORMAL USER bipinkdas Linux - Software 2 06-24-2005 12:03 AM


All times are GMT -5. The time now is 10:32 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration