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 07-27-2010, 05:44 AM   #1
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, 06:02 AM   #2
Registered: Jun 2010
Posts: 361

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

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, 06:03 AM   #3
Registered: Feb 2008
Distribution: Slackware
Posts: 595

Rep: Reputation: 115Reputation: 115
1 members found this post helpful.


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 03:51 AM
Help with user permission level--give access to a user 2 use 500 servers svani Linux - Newbie 2 06-17-2010 08:57 PM
Permission Denied to Super User? EpicOfChaos Linux - Newbie 2 10-15-2008 10:28 AM
Give user rights to execute program max2004 Linux - Newbie 7 11-30-2005 07:17 PM
How can give ROOT permission to a NORMAL USER bipinkdas Linux - Software 2 06-23-2005 11:03 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:20 PM.

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