Linux sudo?????????????
???????????? ???????[ 2014/3/25 9:25:28 ] ????????Linux ??????
????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
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11