RSS Subscription
Linux Howtos & Tutorials

Enter your email:

Delivered by


NOTE:New tutorials are from LinuxCareer.com

Poll

Do you own or wish to have iPhone?
 


Linux eBooks FREE Download
A guide to programming Linux kernel modules
Introduction to Linux - A Hands on Guide
A Newbie's Getting Started Guide to Linux

Linux from Scratch - Create Your Own Linux System - Free eBook

Linux: The Hacking Solution (v.3.0)

SQLite 3 with PHP Essential Training – Free Video Training Tutorials

This guide will introduce you to the world of GNU/Linux

The GNU/Linux Advanced Administration

A Complete Beginner's Manual for Ubuntu 10.04 (Lucid Lynx)

Advanced Bash-Scripting Guide

Set up, maintain, and secure a small office email server

Partner Linux Sites:
How-To.LinuxCareer.com
Jobs.LinuxCareer.com
TuxMachines
Monsterb
LinuxBloggers
AdamsInfo
LinuxScrew
All For Linux

Server hardening by eliminating setuid and setgid binaries

It is very possible that your Linux server has more packages installed than your really need. To make it worse, those extra packages may contain handful of binaries with setuid and setguid turned on. This can lead to unnecessary risk as it could be just a matter of time that some of your shell users exploits this vulnerabilities to get a root privileges.

The following command creates a list of all executables on your system with setuid and setgid.

find / * -perm +6000 -type f -exec ls -ld {} \; > setugid.txt

Review setugid.txt list carefully and remove "s" bits from binary with:

# chmod a-s /path/to/binary/file

 

Please keep in mind that you do not have to ( or should not ) remove setuid and setgid from all binaries you find. You should start only with binaries which are not in use. By removing setuid and setgid from a executable binary file you do not render this executable unusable, however, only superuser will be able to put these binaries into action by executing them.

 

Share this linux post:

Submit Server hardening by eliminating setuid and setgid binaries in Delicious Submit Server hardening by eliminating setuid and setgid binaries in Digg Submit Server hardening by eliminating setuid and setgid binaries in FaceBook Submit Server hardening by eliminating setuid and setgid binaries in Google Bookmarks Submit Server hardening by eliminating setuid and setgid binaries in Stumbleupon Submit Server hardening by eliminating setuid and setgid binaries in Technorati Submit Server hardening by eliminating setuid and setgid binaries in Twitter
 
Comments for this page are closed !!!
Please visit our new Linux Forum for additional help or discussion.


Linux eBooks FREE Download