Skip to Content
Linux Server Security, Second Edition
book

Linux Server Security, Second Edition

by Michael D. Bauer
January 2005
Intermediate to advanced
544 pages
23h 44m
English
O'Reilly Media, Inc.
Content preview from Linux Server Security, Second Edition
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
76
|
Chapter 3: Hardening Linux and Using iptables
name to that of a command sudo lets them execute, and thus run rampant on your
system.
Note also that in Example 3-14, no flags follow the command, so mick may execute
/sbin/ifconfig with whichever flags mick desires, which is, of course, fine with me,
since mick and root are one and the same person. If/when you use sudo to delegate
authority in addition to minimizing your own use of root privileges, you’ll probably
want to specify command flags.
For example, if I were root but not jeeves, (e.g., root=me, jeeves=one of my minions),
I might want this much less trustworthy jeeves to view but not change network-inter-
face settings. In that case, the last line of Example 3-16 would look like this:
jeeves ALL=(root) /sbin/ifconfig -a
This sort of granular delegation is highly recommended if you use sudo for privilege
delegation: the more unnecessary privilege you grant non-root accounts, the less sudo
is actually doing for you.
Conguring, Managing, and Monitoring Logs
This is something we should do but often fail to follow through on. You can’t check
logs that don’t exist, and you can’t learn anything from logs you don’t read. Make
sure your important services are logging at an appropriate level, know where those
logs are stored and whether/how ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Building Secure Servers with Linux

Building Secure Servers with Linux

Michael D. Bauer
Linux Security Cookbook

Linux Security Cookbook

Daniel J. Barrett, Richard E. Silverman, Robert G. Byrnes

Publisher Resources

ISBN: 0596006705Catalog PageErrata