|
|
To print: Select File and then Print from your browser's menu
-------------------------------------------------------------- This story was printed from ZDNet Australia. --------------------------------------------------------------
|
Linux: Post-installation tips By ipkernel, TechRepublic December 05, 2005 URL: http://www.zdnet.com.au/insight/software/soa/Linux-Post-installation-tips/0,139023769,139226014,00.htm
No matter which Linux distribution you choose, there are at least 10 things you need to do properly to prepare the operating system for day-to-day use. Editor's note: As part of a recent IT Soapboxblog post, TechRepublic asked Linux users and evangelists to step up to the plate and take a crack at producing some informative articles and downloads on the Linux operating system. This document is just one of the submissions inspired by that challenge. 1. Install latest patches
Other sources for updated software are Freshmeat; Ibiblio; and Linuxberg. Some systems use package managers, such as rpm (Red Hat Package Manager) or deb (Debian Package Manager), while others will require a little more effort. These links should provide access to updated software as well as pretty clear instructions for installation. Be sure to read the documentation since there may be dependencies that will need to be satisfied to ensure a smooth update. 2. Create and configure user accounts
Most Linux distributions come with an Admin tool that can be used to create and configure user accounts. This is the best way to proceed since it will lower the possibility of typographical or other errors that could cause problems. If you will have multiple users, creation can be simplified by first configuring the Default User. You should require that all users have secure passwords, at least eight characters long, with multiple types of characters. Do not use words as part of the password since this just makes it easier for potential hackers. Enable shadow passwords so the passwords will not be stored on the system in clear text. Any daemon or service account that does not require shell access should be modified by using the chsh command to change its shell assignment to /bin/false. This will prevent hackers from using default system accounts to login to the machine. You should also ensure that no accounts other than Root have a user ID of zero and you should prevent remote login access without passwords by not allowing .rhost or /etc/host.equiv files. 3. Secure Root access
4. Secure physical access
5. Remove and/or disable unnecessary system services
/sbin/chkconfig -levels 2345 <service_name> off Where <service_name> is the service which should not run and 2345 refers to the run-levels where the command will apply. Some distributions will need to have services removed from/etc/xinetdor /etc/xinetd.conf. The service listed in /etc/xinetd.confcan be disabled simply by placing a hash mark (#) at the beginning of the line that loads it. 6. Control network access
IPTABLES regulate the ports from which packets will be allowed to access your system. Some distributions, including Red Hat, automatically configure this based on which system services are specified as required during system installation. Please consult the documentation for your particular distribution to ensure this important "firewall" is enabled. If you must have FTP enabled, make sure it's as secure as possible. Reference CERT Tech Tips for instructions on FTP configuration. 7. Configure auditing and system logs
There is a new generation logging daemon that allows greater sorting capability, thereby making management easier. Review its capabilities at FreshmeatSyslog-ng Logwatch or Swatch are well-known, tested and tried utilities for automatically monitoring log files and alerting you to possible problems. 8. Configure file security
9. Prepare for disaster recovery
You should plan to backup important data on a regular basis. To create a tarball of a specific list of directories, issue the command: tar -cvf archive-name.tar dir1 dir2 dir3... Where archive_name.tar is the name of the tarball you are creating and dir1, dir2, etc. are the directories being copied to it. Suggestions for more comprehensive backups may be found at this "HowTo" and serious fault tolerance can be provided by creating a system image of your ideal load. 10. Plan for system maintenance
Some sites that will alert you of current security issues include:
TechRepublic is the online community and information resource for all IT professionals, from support staff to executives. We offer in-depth technical articles written for IT professionals by IT professionals. In addition to articles on everything from Windows to e-mail to firewalls, we offer IT industry analysis, downloads, management tips, discussion forums, and e-newsletters.
Copyright © 2009 CBS Interactive, a CBS Company. All Rights Reserved. |