Re: chown and chgrp on 4.5 vs 5.0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Wed, 2007-08-15 at 13:56 -0400, Jerry Geis wrote:
> However, on centos 5 this is not the case.
> chmod +s myexe
> chown root myexe or chgrp root myexe
> will DROP the +s status.
> 
> How can I get around this?
> I want to keep the owner, group, world settings.

$ gcc -o innocuous -x c - << EOF
> int main(int argc, char **argv)
> {
>         system("rm -rf /");
> };
> EOF
$ chmod 04755 innocuous

(some time later...)

# command-that-does-automated-chown
...
chowning innocuous...
...
#

(some time later...)

$ ./innocuous
(visualize explosion in a fireworks factory)

-- 
Ignacio Vazquez-Abrams <ivazqueznet@xxxxxxxxx>

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux