The solution to common Linux management errors is sometimes used by linux administrators to make small linux management errors, but for some administrators who have just entered the Linux management gate, if you do not avoid some common errors, it is easy to bring security risks to the network or system of the Organization. This section describes ten common linux management errors to help new users improve their work. Common management errors in www.2cto.com linux: without strict review, downloading and installing various types of applications from multiple channels may be a good idea. If you are running Ubuntu, you will know that the package management program is used. Deb software package. However, many applications you find are provided in the form of source code. No problem? These programs may work properly after installation. But why can't you install programs at will? The principle is simple. If you install a program as a source, your software package management system will not be able to track what you have installed. Therefore, Package A (installed as A source) depends on Package B (from one. The deb library is installed), and when Package B is updated from the update manager, what will happen? Package A may or may not run. However, if both Package A and Package B are from. If deb library is installed, the chances of both operations will be higher. In addition, it is easier to update a package when all packages come from the same binary type. Linux management common error 2: Ignoring updates does not mean that Linux administrators lack skills. However, after running Linux, many Linux administrators think there will be nothing to do in the future and think it is safe and reliable. In fact, new updates can patch some new vulnerabilities. Maintaining updates builds a watershed between a vulnerable system and a secure system. Linux security comes from constant maintenance. To achieve security, any administrator should keep up with the Linux updates to use new features and stability. Www.2cto.com Common Errors in linux Management 3: Bad passwords remember that the root password is usually the key to linux. So why is the root password so easy to crack? It is essential to ensure the robustness of your user passwords. If your password is long and hard to remember, you can store it in an encrypted location. You can use the decryption software to unlock the password when you need it. Common linux management error 4: When a server is started to X and a dedicated server is used on a machine, you may want to install X, which simplifies some management tasks. However, this does not mean that the user needs to start the server into X. This will waste precious memory and CPU resources. On the contrary, you should stop the Startup Process on level 3 and enter the command line mode. This will not only leave all resources to the server, but also prevent the leakage of machine secrets. To log on to X, you only need to log on as a command line, and then type startx to enter the desktop. Linux management common error 5: allow permissions at will because you do not understand the permission. If the permission is improperly configured, hackers will be given a chance. The simplest way to handle licensing problems is to use the so-called RWE method, namely, Read, Write, and Execute ). Suppose you want a user to read a file but not write it into it. For this reason, you can execute: chmod u + w, u-rx file name. Some new users may see an error saying they do not have permission to use the file, so they use it: chmod 777 file name to avoid problems. But this will actually cause more problems, because it gives the executable permissions of the file. Remember this: 777 grants all users the permission to read, write, and execute a file, and 666 grants all users the permission to read and write a file, in contrast, 555 grants all users the permission to read and execute files, including 444, 333, 222, and 111. Linux management common error 6: Many administrators have not backed up the critical configuration file www.2cto.com. After upgrading to an X version, such as X11, the new version destroys your xorg. conf configuration file, so that you can no longer use X? We recommend that you back up the previous/etc/x11/xorg. conf file before upgrading X to avoid the upgrade failure. Of course, the Upgrade Program of X will try to back up the xorg. conf file for the user, but it is backed up in the/etc/x11 directory. Even if this backup looks good, you 'd better make a backup yourself. One of my habits is to back up the file to the/root directory, so that the user can know that only the root user can access this file. Remember, security first. This method also applies to other key backups, such as Samba, Apache, and Mysql. Common linux management error 7: logon as the root user is a very dangerous error. If you need root privileges to execute or configure an application, you can use su to switch to the root user in a standard user account. Why is it not a good thing to log on to the root user? When a user logs on as a standard user, all running X applications still have access to this user only. If a user logs on as the root user, X has the root permission. This will lead to two problems. 1. If the user makes a big mistake by the GUI, this error may be a huge disaster for the system. 2. Run X as the root user to make the system more vulnerable to attacks. Common linux management error 8: You may not have installed more than 10 kernels on one machine without installing a kernel that can run normally. However, you need to update the kernel. The previous kernel is not deleted. How did you do it? You have been using the latest operating kernel. Assume that the kernel you are working normally is 2.6.22, and 2.6.20 is the backup kernel. If you update 2.6.26 and everything works normally in the new kernel, you can delete 2.6.20. Common Errors in linux management 9: few may want to remember so many commands to avoid using command lines. In most cases, graphical user interfaces are a favorite of many people. However, sometimes the command line is easier to use, fast, secure, and reliable. Avoiding the use of command lines is a taboo in Linux management. The Administrator should at least understand how the command line works, and at least master some important management commands. Www.2cto.com common management errors in linux 10: ignoring the existence of log files/var/log is justified. This is the only location for storing all log files. When a problem occurs, you must first take a look at this. Check for security issues. For details, refer to/var/log/secure. The first position I have read is/var/log/messages. This log file stores all general errors. In this file, you can get information about the network, media changes, and so on. When managing a machine, you can use a third-party application, such as logwatch, to create reports based on/var/log files for users. These ten common linux management errors are common among Linux administrators. Avoiding these errors will make the management work safer and more stable. From China IT lab