Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Chapter 14. Security

Table of Contents
14.1. Some basic Security Tools
14.2. File Permissions

The security chapter is designed to give the user a very basic level of understanding of security within the GNU/Linux operating system. This chapter also has information on the UNIX system style file permissions used on most GNU/Linux machines.

More comprehensive guides can be found at the Linux Documentation Project, such as the Linux Security howto authored by Kevin Fenzi and Dave Wreski.

There are also sites such as Linux Security. If your looking for a program to assist in locking down your operating system you may want to check Bastille Linux that runs on RPM based distributions (Redhat/Mandriva/SuSE).

Changing root's

password This trick works well if you have forgotten your superuser password, type linux single at a LILO/Grub prompt. Then passwd once the system has started and you are at a console.

Grub:

If you are using grub go to the relevant line (the one with the kernel and various options) then press 'e' for edit and add "single" on to the end of the section that boots the kernel. Then hit [Enter] and press 'b' (to boot).

Lilo:

If you are using lilo press escape and type " linux single" and then hit [Enter] to boot.

Caution Security Warning
 

This is also a basic security hazard if you have others using your computer and security is a concern, you may like to add a password to your LILO or Grub prompt to stop this from being done.

umask

The umask is a value set by the root user of the system. It controls the default permissions of any file created.

It has an unusual way of doing things ...to set the umask you must describe file permissions by saying what will be disabled.

You can do this by doing 777 minus the file permissions you want. Note that umask works with numbers only, for an explanation see Section 14.2

Example:

You want the default to be equivalent to chmod 750 (user has r/w/x, group has r/x and other has no permissions), then the command you would use would be:

umask 027

 
 
  Published under the terms of the GNU General Public License Design by Interspire