In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
In an environment without sudo in unix, you need to install sudo first, and then configure sudo
This is my own environment, and you can use it with your own environment.
1. Check whether sudo is installed. If you install it, you can configure it directly.
2. Download sudo, or use ftp
3. Install sudo
4, configure sudo
. In the installation is installed with source code, be sure to compile, otherwise the configuration file can not be found. The combination of the following URL will be more clear.
Install and configure sudo: http://linux.chinaunix.net/techdoc/install/2006/03/05/928431.shtml
1. Enter the sudo command to test whether the linux system has sudo tools installed, and if so, edit the configuration file directly.
# sudo-check to see if sudo is installed
Usage: sudo-V |-h |-L |-l |-v |-k |-K | [- H] [- P] [- S] [- b] [- p prompt]
[- u username/#uid]-s |-- if installed, edit the configuration file directly
2. Download sudo
Cs_ SVR17 [/ tmp] # cd / tmp-- enter the / tmp directory
Cs_ svr17 [/ tmp] # pwd-- confirms that it is the tmp directory
/ tmp
Cs_ SVR 17 [/ tmp] # ftp 218.206.191.9-ftp address
Connected to 218.206.191.9.
220 (vsFTPd 2.2.2)
Name (218.206.191.9:szcare): sheng2- enter user name sheng2
331 Please specify the password. -enter password ENGsh9
Password:-- password error
530 Login incorrect.
Login failed.
Ftp > by-
221 Goodbye.
Cs_ SVR17 [/ tmp] # ftp 218.206.191.9-- re-enter
Connected to 218.206.191.9.
220 (vsFTPd 2.2.2)
Name (218.206.191.9:szcare): sheng2- enter user name
331 Please specify the password.-- enter password
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
Ftp > cd chaijx/omc--- enter the directory where ftp is placed
250 Directory successfully changed.
Ftp > ls- to view the contents of the file, and convert it to binary without the package input bin we want
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
-rw-rw-r-- 1 605 600 154679 May 31 11:28 oam-system-config.xml
-rw-rw-r-- 1 605 600 1648640 May 31 12:16 sudo-1.6.7p5.tar
-rw-rw-r-- 1 605 600 1013760 May 31 12:16 sudo-1.6.9p17-ia64-11.23.depot.gz
-rw-rw-r-- 1 605 600 525861 May 31 12:16 sudo-1.7.1-ia64-11.23.depot.gz
-rw-rw-r-- 1 605 600 1858612 May 31 12:16 sudo-1.8.6p8.tar.gz
226 Directory send OK.
Download the required package after ftp > bin-- is converted to binary
200 Switching to Binary mode.
Ftp > get sudo-1.6.7p5.tar-download the sudo package
200 PORT command successful. Consider using PASV.
150 Opening BINARY mode data connection for sudo-1.6.7p5.tar (1648640 bytes).
226 Transfer complete.
1648640 bytes received in 0.19 seconds (8309.33 Kbytes/s)
Ftp > mget sudo*-download all the sudo packages and press Y all the time
Mget sudo-1.6.7p5.tar? Y
200 PORT command successful. Consider using PASV.
150 Opening BINARY mode data connection for sudo-1.6.7p5.tar (1648640 bytes).
226 Transfer complete.
1648640 bytes received in 0.2 seconds (8113.32 Kbytes/s)
Mget sudo-1.6.9p17-ia64-11.23.depot.gz? Y
200 PORT command successful. Consider using PASV.
150 Opening BINARY mode data connection for sudo-1.6.9p17-ia64-11.23.depot.gz (1013760 bytes).
226 Transfer complete.
1013760 bytes received in 0.11 seconds (9062.70 Kbytes/s)
Mget sudo-1.7.1-ia64-11.23.depot.gz? Y
200 PORT command successful. Consider using PASV.
150 Opening BINARY mode data connection for sudo-1.7.1-ia64-11.23.depot.gz (525861 bytes).
226 Transfer complete.
525861 bytes received in 0.06 seconds (7937.68 Kbytes/s)
Mget sudo-1.8.6p8.tar.gz? Y
200 PORT command successful. Consider using PASV.
150 Opening BINARY mode data connection for sudo-1.8.6p8.tar.gz (1858612 bytes).
226 Transfer complete.
1858612 bytes received in 0.23 seconds (7847.07 Kbytes/s)
Ftp > by
221 Goodbye.
Cs_ svr17[ / tmp] # ls
.AgentSockets start_daf.txt
.kc.trace start_daf_err.log
.s.PGSQL.10864 start_daf_tmp.txt
.s.PGSQL.10864.lock start_serv.log
X11_newfonts.log start_serv.txt
Hpce start_serv_err.log
Install.vars start_serv_tmp.txt
Ipv6agt.crashlog stop_daf.log
Krun.1541 stop_daf.txt
Llbdbase.dat stop_serv.log
Lost+found stop_serv.txt
Ncweb_apa.log sudo-1.6.7p5.tar
Ncweb_iether.log sudo-1.6.9p17-ia64-11.23.depot.gz
Portmap.file sudo-1.7.1-ia64-11.23.depot.gz
Rpcbind.file sudo-1.8.6p8.tar.gz
Sd_ipd_acl.2727 swlist
Start_daf.log zabbix_agentd.pid
Cs_ svr17[ / tmp] #
3. Install sudo
# tar-xvf sudo-1.6.7p5.tar-decompress sudo
# cd / tmp/sudo-1.6.7p5
#. / configure-- prefix=/usr/local/sudo-- bindir=/usr/bin-- sbindir=/usr/sbin-- mandir=/usr/share/man-- sysconf=/etc-compile the configuration file of sudo,visudo,man
# make
# make installn
4. Edit the configuration file
Enter / etc modify / sudoers configuration file
Cs_svr17 [/] # cd / etc-enter / etc
Cs_ svr17[ / etc] # pwd
/ etc
Cs_ svr17 [/ etc] # ll sudo*- look at sudo's file and find sudoers
-Rmurmurr-1 root root 580 May 31 20:39 sudoers
Cs_ SVR17 [/ etc] # cat sudoers- View sudoers
I'm directly following visudo's orders.
# visudo
The software installation process from the source package:
. / configure # compiling sudo software
Make# executes the compilation of sudo software
Make install# installs and compiles sudo software
Export PATH=$PATH:/usr/local/bin:/usr/local/sbin # modify the lookup path of the executable file
Which sudo# finds the location of executable software
Sudo-- help-check that sudo is installed
If export PATH=$PATH:/usr/local/bin:/usr/local/sbin---- is not compiled, you need to add variables to profile at 00:00
Or permanently add the variable # vi / etc/profile
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.