LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-12-2004, 03:37 AM   #1
c_coder
LQ Newbie
 
Registered: Feb 2004
Posts: 4

Rep: Reputation: 0
world writable SUID files drop suid bit on append?


Hi,

I have here a world writable suid file owned by root.
However it seems to drop the suid bit after I (an ordinary user on the system) try to append anything to it. (The ownership does not change... only the suid bit is gone).

I tried to append to this file:-

system$ rwsrwsrwx 1 root root 52 Mar 12 19:52 tempfile

it becomes:-

system$ -rwxrwxrwx 1 root root 52 Mar 12 19:52 tempfile

is there a cure?
Thanks

Last edited by c_coder; 03-12-2004 at 04:07 AM.
 
Old 03-12-2004, 07:59 AM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
I have a feeling it does that because of the security implications. One could easily make any program suid to a user execute anything under that users permissions if that was allowed.
 
  


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
suid bit on an executable is ignored during boot process. rob_of_ownsboro Linux - General 3 11-22-2005 12:34 PM
SUID bit on executables doesn't work?! Silverjam Linux - Security 7 11-02-2004 09:10 PM
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
How do I check the SUID bit? WeNdeL Linux - Newbie 4 12-20-2002 01:02 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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