sudo HP 上安装

HP 的机器是认 安装package 的, uname -m 这个可以看是  安腾,还是 intel, 用swinstall 安装的时候,系统回analyse.
如果所 no error, 就可以。

今天在HP 上安装 sudo:

下载
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/sudo-1.7.2p1/

bash-2.04# cp /hp-ux/sudo-1.7.2p1-ia64-11.23.depot.gz /tmp/

bash-2.04# gunzip sudo-1.7.2p1-ia64-11.23.depot.gz

bash-2.04# swlist -d @ /tmp/sudo-1.7.2p1-ia64-11.23.depot   
# Initializing...
# Contacting target "HPITA"...
#
# Target:  HPITA:/tmp/sudo-1.7.2p1-ia64-11.23.depot
#

#
# No Bundle(s) on HPITA:/tmp/sudo-1.7.2p1-ia64-11.23.depot
# Product(s):
#

  sudo          1.7.2p1        sudo   
  

bash-2.04# swlist |grep -i sudo
bash-2.04#

bash-2.04# swinstall -s /tmp/sudo-1.7.2p1-ia64-11.23.depot


bash-2.04# swlist |grep -i sudo                                          
  sudo                                  1.7.2p1        sudo

----------

The next step is to make the link:

ln -s /usr/bin/sudo  /usr/local/bin/sudo

so you can see:

cd /usr/local/bin/

ls -l sudo

---r---r----    /usr/bin/sudo  --> /usr/local/bin/sudo

好,下面执行sudo:

bash-2.04$ sudo
sudo: can't stat /usr/local/etc/sudoers: No such file or directory
sudo: no valid sudoers sources found, quitting


bash-2.04#cd /usr/local/etc/
bash-2.04# ls -l
-r--r-----   1 root       root           715 Jul 31 19:33 sudoers.sample
bash-2.04#cp sudoers.sample sudoers
bash-2.04#ls -l
-r--r-----   1 root       sys            738 Oct 29 09:19 sudoers
-r--r-----   1 root       root           715 Jul 31 19:33 sudoers.sample


bash-2.04# chgrp root sudoers
bash-2.04# ls -l
total 32
-r--r-----   1 root       root           738 Oct 29 09:19 sudoers
-r--r-----   1 root       root           715 Jul 31 19:33 sudoers.sample




猜你喜欢

转载自blog.csdn.net/shenghuiping2001/article/details/51672181