Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 10-07-2005, 11:20 AM   #1
LQ Newbie
Registered: May 2005
Location: Owensboro KY
Distribution: RHEL 4
Posts: 4

Rep: Reputation: 0
suid bit on an executable is ignored during boot process.

I have an executable /usr/local/bin/process_monitor which is owned by the user engineer.
I have set the SUID bit with chmod u+s. I have a scripts which calls this executable passing the required parameters. Upon bootup my script is called from another in /etc/rc5.d. Process_monitor and other processes it forks are ran as root. If I manualy execute this script from when logged in as root process_monitor is ran as engineer being the owner as expected.

Old 11-22-2005, 12:34 AM   #2
Registered: Oct 2005
Location: A safe distance from Detroit
Distribution: SuSE 10.0, Knoppix
Posts: 98

Rep: Reputation: 17
I think you need to do an su in the startup script to run it as the engineer user. You may actually need to run a different script to call the intended script with su.

Old 11-22-2005, 02:42 AM   #3
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
I don't believe that suid scripts are allow in linux because they are difficult to secure.

Check out lesson 7 in this page:
Old 11-22-2005, 01:34 PM   #4
Senior Member
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 52
it might be trying to run the script while the partition is still mounted read only -- i think read only is a non-suid mode.


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Suid bit behavior winsnomore Linux - Software 1 05-30-2004 04:49 PM
problem with SUID bit joanq Linux - Newbie 6 04-09-2004 03:56 PM
SUID file drops suid bit on append? c_coder Programming 1 03-12-2004 08:59 AM
Diferrence between suid and executable by all? lugoteehalt Linux - General 5 10-18-2003 05:22 AM
How do I check the SUID bit? WeNdeL Linux - Newbie 4 12-20-2002 02:02 AM > Forums > Linux Forums > Linux - General

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