LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 10-07-2005, 10:20 AM   #1
rob_of_ownsboro
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.

OS: RHEL4
 
Old 11-21-2005, 11:34 PM   #2
ahedler
Member
 
Registered: Oct 2005
Location: A safe distance from Detroit
Distribution: SuSE 10.0, Knoppix
Posts: 99

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.

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

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

Check out lesson 7 in this page:
http://www.samag.com/documents/s=114...106a/0106a.htm
 
Old 11-22-2005, 12:34 PM   #4
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
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.
 
  


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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:55 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
Open Source Consulting | Domain Registration