Practical Linux Security Cookbook Secure your Linux machines and keep them secured with the help of exciting recipes
* This book provides code-intensive discussions with detailed recipes that help you understand better and learn faster.
* More than 50 hands-on recipes to create and administer a secure Linux system locally as well as on a network
* Enhance file system security and local and remote user more » authentication by using various security tools and different versions of Linux for different tasks
With the growing popularity of Linux, more and more administrators have started moving to the system to create networks or servers for any task. This also makes Linux the first choice for any attacker now. Due to the lack of information about security-related attacks, administrators now face issues in dealing with these attackers as quickly as possible. Learning about the different types of Linux security will help create a more secure Linux system.
Whether you are new to Linux administration or experienced, this book will provide you with the skills to make systems more secure.
With lots of step-by-step recipes, the book starts by introducing you to various threats to Linux systems. You then get to walk through customizing the Linux kernel and securing local files. Next you will move on to manage user authentication locally and remotely and also mitigate network attacks. Finally, you will learn to patch bash vulnerability and monitor system logs for security.
With several screenshots in each example, the book will supply a great learning experience and help you create more secure Linux systems.
WHAT YOU WILL LEARN
* Learn about various vulnerabilities and exploits in relation to Linux systems
* Configure and build a secure kernel and test it
* Learn about file permissions and security and how to securely modify files
* Explore various ways to authenticate local users while monitoring their activities.
* Authenticate users remotely and securely copy files on remote systems
* Review various network security methods including firewalls using iptables and TCP Wrapper
* Explore various security tools including Port Sentry, Squid Proxy, Shorewall, and many more
* Understand Bash vulnerability/security and patch management
ABOUT THE AUTHOR
Tajinder Kalsi is an innovative professional with more than 9 years of progressive experience within the information security industry. He has a good amount of knowledge and experience in web application testing, vulnerability assessment, network penetration testing, and risk assessment.
At present, he is working as an independent information security consultant. He started his career with Wipro as a technical associate, and later on he became an ISMS consultant cum technical evangelist. In his free time, he conducts seminars in colleges all across India on various topics, and he has covered more than 125 colleges and spoken to 10,000+ students.
In the past, he has reviewed books such as Web Application Penetration Testing with Kali Linux, Mastering Kali Linux for Advanced Penetration Testing, and Advanced Wireless Penetration Testing for Highly-Secured Environments.
You can find him on Facebook at www.facebook.com/tajinder.kalsi.tj, or contact him on his website at www.tajinderkalsi.com.
TABLE OF CONTENTS
1. Linux Security Problems
2. Configuring a Secure and Optimized Kernel
3. Local Filesystem Security
4. Local Authentication in Linux
5. Remote Authentication
6. Network Security
7. Security Tools
8. Linux Security Distros
9. Patching a Bash Vulnerability
10. Security Monitoring and Logging « less
This book is your complete guide to studying for the Linux Professional Institute's Server Professional (LPIC-1) certification. Every concept, principle, process, and resource that might make an appearance on the exam is fully represented. You will understand every concept by rolling up your sleeves, more » opening up a terminal, and trying it all yourself. You will find suggestions for practical tasks along with "test-yourself" quizzes at the end of each chapter.
Whether you've decided to earn the Linux Professional Institute's Server Professional certification or you simply want to learn more about Linux administration, this book is a great choice. Right now, Linux administration skills are opening doors to some of the hottest job markets. And with the ongoing explosive growth of the cloud computing world - the vast majority of which is being built with Linux - the scope of the opportunities will only increase. Whether or not you end up taking the exam, if you manage to learn this material, you'll have done yourself a real favor.
What You Will Learn
* Basic Linux system administration and package management
* Device and desktop management
* Bash scripting
* Networking fundamentals
* Security administration
Who This Book Is For
Most potential readers will already have a decent idea of what Linux is and what kinds of things can be done with it, and are looking to acquire or formalize a more structured and complete ability to confidently administrate Linux systems. « less
Shell Programming in Unix, Linux and OS X is a thoroughly updated revision of Kochan and Wood’s classic Unix Shell Programming tutorial. Following the methodology of the original text, the book focuses on the POSIX standard shell, and teaches you how to develop programs in this useful programming environment, more » taking full advantage of the underlying power of Unix and Unix-like operating systems.
After a quick review of Unix utilities, the book’s authors take you step-by-step through the process of building shell scripts, debugging them, and understanding how they work within the shell’s environment. All major features of the shell are covered, and the large number of practical examples make it easy for you to build shell scripts for your particular applications. The book also describes the major features of the Korn and Bash shells.
Learn how to…
* Take advantage of the many utilities provided in the Unix system
* Write powerful shell scripts
* Use the shell’s built-in decision-making and looping constructs
* Use the shell’s powerful quoting mechanisms
* Make the most of the shell’s built-in history and command editing capabilities
* Use regular expressions with Unix commands
* Take advantage of the special features of the Korn and Bash shells
* Identify the major differences between versions of the shell language
* Customize the way your Unix system responds to you
* Set up your shell environment
* Make use of functions
* Debug scripts
Contents at a Glance
1 A Quick Review of the Basics
2 What Is the Shell?
3 Tools of the Trade
4 And Away We Go
5 Can I Quote You on That?
6 Passing Arguments
7 Decisions, Decisions
8 ‘Round and ‘Round She Goes
9 Reading and Printing Data
10 Your Environment
11 More on Parameters
12 Loose Ends
13 Rolo Revisited
14 Interactive and Nonstandard Shell Features
A Shell Summary
B For More Information « less
“First Sobell taught people how to use Linux . . . now he teaches you the power of Linux. A must-have book for anyone who wants to take Linux to the next level.”
–Jon “maddog” Hall, Executive Director, Linux International
New Chapters on Python and MySQL–Covers Perl, too!
* Learn from hundreds more » of realistic, high-quality examples, and become a true Linux command-line guru!
* NEW! Covers busybox, Midnight Commander, screen, and sshfs/curlftpf
* Covers the Mac OS X command line and its unique tools
* 295-page reference covers 98 utilities, including Mac OS X commands!
For use with all popular versions of Linux, including Ubuntu™, Fedora™, openSUSE™, Red Hat®, Debian, Mageia, Mint, Arch, CentOS, and Mac OS X, too!
The Most Useful Tutorial and Reference, with Hundreds of High-Quality Examples for Every Popular Linux Distribution
Linux is today’s dominant Internet server platform. System administrators and Web developers need deep Linux fluency, including expert knowledge of shells and the command line. This is the only guide with everything you need to achieve that level of Linux mastery. Renowned Linux expert Mark Sobell has brought together comprehensive, insightful guidance on the tools sysadmins, developers, and power users need most, and has created an outstanding day-to-day reference.
This title is 100 percent distribution and release agnostic. Packed with hundreds of high-quality, realistic examples, it presents Linux from the ground up: the clearest explanations and most useful information about everything from filesystems to shells, editors to utilities, and programming tools to regular expressions.
Use a Mac? You’ll find coverage of the Mac OS X command line, including OS X-only tools and utilities other Linux/UNIX titles ignore. Sobell presents a new MySQL chapter. There’s even an expert introduction to Python–today’s most valuable tool for automating complex, time-consuming administration tasks.
A Practical Guide to Linux® Commands, Editors, and Shell Programming, Third Edition, is the only guide to deliver
* A MySQL chapter to get you started with this ubiquitous relational database management system (RDBMS)
* A masterful introduction to Python for system administrators and power users
* New coverage of the busybox single binary collection of utilities, the screen terminal session manager/multiplexer, and the mc (Midnight Commander) textual file manager, plus a new chapter on using ssh for secure communication
* In-depth coverage of the bash and tcsh shells, including a complete discussion of environment, inheritance, and process locality, plus coverage of basic and advanced shell programming
* Practical explanations of 98 core utilities, from aspell to xargs, including printf and sshfs/curlftpfs, PLUS Mac OS X-specific utilities from ditto to SetFile
* Expert guidance on automating remote backups using rsync
* Dozens of system security tips, including step-by-step walkthroughs of implementing secure communications using ssh and scp
* Tips and tricks for customizing the shell, including step values, sequence expressions, the eval builtin, and implicit command-line continuation
* High-productivity editing techniques using vim and emacs
* A comprehensive, 295-page command reference section covering 98 utilities, including find, grep, sort, and tar
* Instructions for updating systems using apt-get and yum
* And much more, including coverage of BitTorrent, gawk, sed, find, sort, bzip2, and regular expressions « less
A compendium of shell scripting recipes that can immediately be used, adjusted, and applied The shell is the primary way of communicating with the Unix and Linux systems, providing a direct way to program by automating simple-to-intermediate tasks. With this book, Linux expert Steve Parker shares a more » collection of shell scripting recipes that can be used as is or easily modified for a variety of environments or situations. The book covers shell programming, with a focus on Linux and the Bash shell; it provides credible, real-world relevance, as well as providing the flexible tools to get started immediately.
* Shares a collection of helpful shell scripting recipes that can immediately be used for various of real-world challenges
* Features recipes for system tools, shell features, and systems administration
* Provides a host of plug and play recipes for to immediately apply and easily modify so the wheel doesn't have to be reinvented with each challenge faced
Come out of your shell and dive into this collection of tried and tested shell scripting recipes that you can start using right away! « less
Help for Power Users and Sys Admins
You need to know how to work with the bash shell if you want to get to the heart of Unix systems, including Linux and Mac OS X. Now covering the most recent version of bash, this concise little book puts all of the essential information about bash at your fingertips. You'll quickly find answers to annoying more » questions that always come up when you're writing shell scripts -- What characters do you need to quote? How do you get variable substitution to do exactly what you want? How do you use arrays? -- and much more. « less
From Novice to Professional
Portable shell scripting is the future of modern Linux, OS X, and Unix command–line access. Beginning Portable Shell Scripting: From Novice to Professional teaches shell scripting by using the common core of most shells and expands those principles to all of scripting.
You will learn about portable more » scripting and how to use the same syntax and design principles for all shells. You'll discover about the interaction between shells and other scripting languages like Ruby and Python, and everything you learn will be shown in context for Linux, OS X, bash, and AppleScript. « less
Solutions and Examples for bash Users
bash Cookbook teaches shell scripting the way Unix masters practice the craft. It presents a variety of recipes and tricks for all levels of shell programmers so that anyone can become a proficient user of the most common Unix shell -- the bash shell -- and cygwin or other popular Unix emulation packages. more » Packed full of useful scripts, along with examples that explain how to create better scripts, this new Cookbook gives professionals and power users everything they need to automate routine tasks and enable them to truly manage their systems -- rather than have their systems manage them. « less
Conquering the Command Line
Some areas are covered in other books, but this one goes into some little-seen side streets and alleyways to show you the shortcuts to more efficient use of the shell. ...The material here is invaluable: you're not going to get it from the manual pages! I strongly recommend it.
- Ernest J. This is a more » totally neat idea for a book... the command line gets addictive quickly.
- Bill Ryan, Bill's House O Insomnia
This comprehensive, hands-on guide focuses on two of the most popular and feature-rich shells, bash and zsh. From Bash to Z Shell: Conquering the Command Line is a book for all skill levels. Novices will receive an introduction to the features of shells and power users will get to explore the benefits of zsh--one of the most powerful, versatile shells ever written. Intermediate users will uncover hints, recipes, and ideas to enhance their skill sets.
The book covers shell programming, but is unique in its thorough coverage of using shells interactively--a powerful and time-saving alternative to windows and a mouse. This strong author team has written an immediately useful book, packed with examples and suggestions that users of Unix, Linux, Mac OS X and Microsoft Windows can readily apply. « less
The only book available that covers the powerful Bash shell and associated tools that are essential to any Linux programming professional.