1 Jun 2002 01:31
Re: Linux Hardening
Christian Schneider <bofh <at> 3d-crew.com>
2002-05-31 23:31:47 GMT
2002-05-31 23:31:47 GMT
* Scott Gifford wrote:
> "Koen" <koen4security <at> hotmail.com> writes:
>
>> > Anyone know where I can find step-by-step documentation
>> > on Hardening RH Linux boxes? I usually just use Bastille
>> > Linux to do the hardening but I'd also like a better
>> > understanding to be able to also perform the task manually
>> > as well.
>
> [...]
>
>> What I do first after installation is an 'rpm -qa > rpmfiles' and check out
>> every rpm that's in there and see wether I really do need it. If not it's
>> easily removed with rpm -e.
>
> Also:
>
> Be especially cautious of programs which have setuid/setgid
> permissions. Use:
>
> find /usr/bin -perm -02000 -o -perm -04000 -ls
> [ .. ]
If you really want to remove all SUID permissions you can make a
script. I wouldn't do this on any of my systems but as I said earlier.
It is your system so if you break it. Don't say i didn`t warn you about
doing this ;)
,----
| find / -type f \( -perm -04000 \) \-exec /bin/chmod a-s {} \;
`----
(Continue reading)
RSS Feed