Sunday, March 27, 2011

Use sudo reinforcement Linux system security

3. install Sudo will download the zipped package Sudor we specify a directory, such as/root directory.

Regardless of the operating system, these operations in any system is similar. ⒈ switch to Cabinet in the same directory, and then extract it, command as follows. Note that when you perform the following commands, because the version is not necessarily the same, so the version number of the real case modifications: tar – z x v f u d o s-1.6.3 p 5. t z a r-g above commands will create a new ⒉ a directory, such as sudo-1.6.3p5, depending on your version. ⒊ through the following command to switch to sudo directory: c d s u d o-1.6.3 p 5 ⒋ using the following command to create a makefile and config.h file, we will use them to configure sudo:./c o n f I g u r e ⒌ you can also add/configure command-option to customize the installation of sudo. In fact, very simple, just behind the/configure command appends the options you want. To understand the various options available, see/sudo/INSTALL file. ⒍ you can also edit the makefile to change the default installation path, you can also edit/sudo/INSTALL other configuration in the file. To do this, we need to use a text editing program to open the makefile. For example, type the following command: v I f e M a k I l e ⒎ found in the Makefile file to the beginning of the "Wheretoinstallthings ..." section, as shown in the figure: figure 1Sudo Makefile file ⒏ if necessary, you can change the default path. But we will use the default path. ⒐ exit the file. If you want to use the vi text editor, you can use the following command:: q ⒑ in practice, we run the preceding command, the-/configure can also change the default installation path. To do this, you need the command followed by an option. For example, when the sudoers file is by default installed in the/etc directory, we can use the following command to change the installation location for the file:./configure--sysconfdir = DIR DIR here is a new installation directory. ⒒ sudo for compiling, you need to run the make command: m a k e ⒓ if we want to put sudo install in the source file directory beyond words, you will need to use GNU. If an error occurred during installation, you can ask for help in TROUBLESHOOTING file and PORTING file. ⒔ We must act as the root user can install sudo, because this requires superuser privileges. Become root user runs makeinstall commands after installation manual page, the sudoers file: visudo and makeinstall necessary to remind that, don't you can overwrite any existing sudoers file. ⒕ well, we have installed sudo, then describes how to configure it to meet our needs.

No comments:

Post a Comment