????1.sudo????
????sudo??linux?3????????????????ó?????????????????????????????????????Щ?????????root??????halt??reboot??su??????????????????root?????????????????????????????Sudo?????shell????????棬??????????????????????????????????????
????sudo??????????????????????????Щ???
????sudo????????????????????????????????????????????????????????????????????????
????sudo??????????--??? ??????????“???”?????????????sudo???????????????????????????????????5?????????????????????????????
????sudo???????????sudoers?????????????????????е??????????????????????????????????λ?????????/etc/sudoers??????????0411??
????2.????????????????????
????[root@ocm1 ~]# rpm -qa|grep sudo   --????????????SUDO?????????????
????sudo-1.6.9p17-5.el5
????[root@ocm1 ~]# visudo   ---root???visudo??????/etc/sudoers?????
????root    ALL=(ALL)       ALL     ---?????????????
????oracle  ALL=(ALL)       ALL      ----?ORACLE???????????У?
???????????????′????????   sudo vi /etc/hosts??????????????????????SUDO?????á?
????3.?????п?????????????
????1?????????????????sudo??????к?????????
?????????????Sorry?? user test is not allowed to execute '/bin/cat /etc/sudoers' as root on
????localhost.localdomain.
??????????????е?localhost???????????????IP????
????test    localhost=/sbin/cat /etc/sudoers
????Defaults@localhost log_host /var/log/sudo.log
????2??????????б????????????sudo???????
?????????????[jackyu@localhost jackyu]$ sudo cat /etc/sudoers
????Sorry?? user jackyu is not allowed to execute '/bin/cat /etc/sudoers' as root on
????localhost.localdomain.
???????????????Cmnd alias??????????????д????(Cmnd_Alias CAT = /bin/cat -n /etc/sudoers).
??????У?sudo cat -n /etc/sudoers