From Bugzilla Helper: User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0) Description of problem: I ahve created one little c program #include<stdlib.h> void main() { system("cp x /usr/tmp/y"); } the owner of this program is X. this program is set in setuid mode. Permission is 4755. This program is called by person having login as Z. After this program execution a file y is created in the /usr/tmp having owner as Z. Actually the owner of file y should be X.That is the expected result I don't know why this happening. This is not a problem on red hat 7.0. Please solve this problem Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: #include<stdlib.h> void main() { system("cp x /usr/tmp/y"); } create executable of this file under the login of one person say X. name this executable as sample. set the permission of this program as 4755 by chmod 4755 sample Call this sample program from other person login say Y. Actual Results: this program will create file y having owner as Y Expected Results: this program should create file y having owner as X Additional info:
Why do you think that's the expected result? Bash doesn't behave that way either...