|
find / -type f -perm +6000 -ls
And the output, after awhile, depending on the number of suid programs on your
system, will display.
Join our new networking forums at WebProWorld! Ask your toughest networking questions
or help your peers solve their issues. |
|
Now, let's pretend that you want to remove the suid permission on /bin/ping,
as you don't plan on using it:
chmod -s /bin/ping
That's it! Feel free to browse through man pages of chmod to find out more
if you want (thats 'man chmod'). Now the most annying fact is that you'll have
to do it for ALL suid programs that you don't plan on using.
The other issue are files which don't belong to anyone, or don't belong to
a group. These are also dangerous, as they provide more ways to manipulate your
system. Also, an unowned file may be a signal indicating an intruder on your system.
Let's find them:
find / -nouser -o -nogroup
Nothing? Heh, that's exactly what we expect! And if you find any, feel free
to change the ownership of the file to any user you want, or to delete it. If
you want to change the ownership you might want to check out the command 'chown',
of course by typing 'man'chown'.
Now, the last but especially not the least important, the sudo. By configuring
sudo you can enable normal users (any user other than root) to perform certain
action usually reserved for root. Did you ever want to shutdown your PC as a normal,
average user (this is for example purposes only, as I don't recommend it for security
reasons) or perform any other action? Well thats exactly why I recommend configuring
sudo. The file /etc/sudoers contains all that information. Now, as describing
sudo and sudoers could eat up more space than easily covered by an article, I'm
not going to describe and talk more about it, I'll leave that to you, remember,
man pages are your friend, so 'man sudo' 'man sudoers' and in one afternoon you'll
fix it perfectly. Problems? Don't have sudo? Just go
here and download it. Keep exploring!
First appeared at Help Net Security
Read this newsletter at: http://www.linuxpronews.com/2003/0729.html |
|