- 论坛徽章:
- 0
|
下载
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
bash-2.04# swlist -l file sudo
# Initializing...
# Contacting target "HPITA"...
#
# Target: HPITA:/
#
# sudo 1.7.2p1 sudo
# sudo.sudo-RUN
/usr/local/bin/sudo
/usr/local/doc/sudo/ChangeLog
/usr/local/doc/sudo/HPUX.Install
/usr/local/doc/sudo/INSTALL
/usr/local/doc/sudo/LICENSE
/usr/local/doc/sudo/README
/usr/local/etc/sudoers.sample
/usr/local/libexec/sudo_noexec.so
/usr/local/sbin/visudo
/usr/local/share/man/man1m/sudo.1m
/usr/local/share/man/man1m/visudo.1m
/usr/local/share/man/man4/sudoers.4
/usr/local/bin/sudoedit
/usr/local/share/man/man1m/sudoedit.1m
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$ pwd
bash-2.04#
bash-2.04#
bash-2.04#
bash-2.04#
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#
bash-2.04#
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
bash-2.04# grep ^[^$^#] sudoers
root ALL=(ALL) ALL
adm ALL=/usr/bin/date
$sudo date mmddhhmm[[cc]yy]] |
|