Re: SUID program removalFrom: Scott Gifford (email@example.com)
- Previous message: Scott Gifford: "Re: Webpage permissions management"
- Maybe in reply to: Pacifi3r: "SUID program removal"
- Next in thread: Rob 'Feztaa' Park: "Re: SUID program removal"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
To: "Pacifi3r" <firstname.lastname@example.org> Subject: Re: SUID program removal From: Scott Gifford <email@example.com> Date: 18 Oct 2001 01:20:39 -0400 Message-ID: <firstname.lastname@example.org>
"Pacifi3r" <email@example.com> writes:
> Newbie would like to know which program on a base RedHat 7.1 installed can
> have the SUID bit removed. Base in this instance means that no additional
> package were selected for install.
Most of them. Get a list of all setuid and setgid programs on the
system, figure out which ones you will never need, and remove their
RPMS. For ones you will sometimes need, consider whether anybody
besides root will need to use them. On some of my systems, for
example, only root needs to traceroute, so I remove the setuid bit; on
nearly all of them, the "chfn", "chsh", etc. programs are more risk
than they're worth, so I remove their special privileges. With what's
left, consider whether it can be replaced with a safer alternative; I
generally remove sendmail and install qmail on systems that need mail,
for example. For whatever's left, leave the special permissions, and
pay very close attention to security mailing lists about those
Here's the command I use to find setXid programs on my system:
find / /usr -xdev -type f -a \( -perm -04000 -o -perm -02000 \) -ls >/tmp/setXid.list