激情五月天婷婷,亚洲愉拍一区二区三区,日韩视频一区,a√天堂中文官网8

<ul id="buwfs"><strike id="buwfs"><strong id="buwfs"></strong></strike></ul>
    <output id="buwfs"></output>
  • <dfn id="buwfs"><source id="buwfs"></source></dfn>
      <dfn id="buwfs"><td id="buwfs"></td></dfn>
      <div id="buwfs"><small id="buwfs"></small></div>
      <dfn id="buwfs"><source id="buwfs"></source></dfn>
      1. <dfn id="buwfs"><td id="buwfs"></td></dfn>
        始創(chuàng)于2000年 股票代碼:831685
        咨詢熱線:0371-60135900 注冊(cè)有禮 登錄
        • 掛牌上市企業(yè)
        • 60秒人工響應(yīng)
        • 99.99%連通率
        • 7*24h人工
        • 故障100倍補(bǔ)償
        全部產(chǎn)品
        您的位置: 網(wǎng)站首頁 > 幫助中心>文章內(nèi)容

        Linux安全配置步驟大全(三) (1)

        發(fā)布時(shí)間:  2012/8/9 18:02:15

           21. 被root擁有的程序的位。
           
            移走那些被root擁有程序的s位標(biāo)志,當(dāng)然有些程序需要這個(gè),用命令‘chmod a-s’完成這個(gè)。
           
            注:前面帶(*)號(hào)的那些程序一般不需要擁有s位標(biāo)志。
           
            [root@deep]# find / -type f \( -perm -04000 -o -perm -02000 \) \-exec ls –lg {} \;
            -rwsr-xr-x 1 root root 33120 Mar 21 1999 /usr/bin/at
            *-rwsr-xr-x 1 root root 30560 Apr 15 20:03 /usr/bin/chage
            *-rwsr-xr-x 1 root root 29492 Apr 15 20:03 /usr/bin/gpasswd
            -rwsr-xr-x 1 root root 3208 Mar 22 1999 /usr/bin/disable-paste
            -rwxr-sr-x 1 root man 32320 Apr 9 1999 /usr/bin/man
            -r-s--x--x 1 root root 10704 Apr 14 17:21 /usr/bin/passwd
            -rws--x--x 2 root root 517916 Apr 6 1999 /usr/bin/suidperl
            -rws--x--x 2 root root 517916 Apr 6 1999 /usr/bin/sperl5.00503
            -rwxr-sr-x 1 root mail 11432 Apr 6 1999 /usr/bin/lockfile
            -rwsr-sr-x 1 root mail 64468 Apr 6 1999 /usr/bin/procmail
            -rwsr-xr-x 1 root root 21848 Aug 27 11:06 /usr/bin/crontab
            -rwxr-sr-x 1 root slocate 15032 Apr 19 14:55 /usr/bin/slocate
            *-r-xr-sr-x 1 root tty 6212 Apr 17 11:29 /usr/bin/wall
            *-rws--x--x 1 root root 14088 Apr 17 12:57 /usr/bin/chfn
            *-rws--x--x 1 root root 13800 Apr 17 12:57 /usr/bin/chsh
            *-rws--x--x 1 root root 5576 Apr 17 12:57 /usr/bin/newgrp
            *-rwxr-sr-x 1 root tty 8392 Apr 17 12:57 /usr/bin/write
            -rwsr-x--- 1 root squid 14076 Oct 7 14:48 /usr/lib/squid/pinger
            -rwxr-sr-x 1 root utmp 15587 Jun 9 09:30 /usr/sbin/utempter
            *-rwsr-xr-x 1 root root 5736 Apr 19 15:39 /usr/sbin/usernetctl
            *-rwsr-xr-x 1 root bin 16488 Jul 6 09:35 /usr/sbin/traceroute
            -rwsr-sr-x 1 root root 299364 Apr 19 16:38 /usr/sbin/sendmail
            -rwsr-xr-x 1 root root 34131 Apr 16 18:49 /usr/libexec/pt_chown
            -rwsr-xr-x 1 root root 13208 Apr 13 14:58 /bin/su
            *-rwsr-xr-x 1 root root 52788 Apr 17 15:16 /bin/mount
            *-rwsr-xr-x 1 root root 26508 Apr 17 20:26 /bin/umount
            *-rwsr-xr-x 1 root root 17652 Jul 6 09:33 /bin/ping
            -rwsr-xr-x 1 root root 20164 Apr 17 12:57 /bin/login
            *-rwxr-sr-x 1 root root 3860 Apr 19 15:39 /sbin/netreport
            -r-sr-xr-x 1 root root 46472 Apr 17 16:26 /sbin/pwdb_chkpwd
            [root@deep]# chmod a-s /usr/bin/chage
            [root@deep]# chmod a-s /usr/bin/gpasswd
            [root@deep]# chmod a-s /usr/bin/wall
            [root@deep]# chmod a-s /usr/bin/chfn
            [root@deep]# chmod a-s /usr/bin/chsh
            [root@deep]# chmod a-s /usr/bin/newgrp
            [root@deep]# chmod a-s /usr/bin/write
            [root@deep]# chmod a-s /usr/sbin/usernetctl
            [root@deep]# chmod a-s /usr/sbin/traceroute
            [root@deep]# chmod a-s /bin/mount
            [root@deep]# chmod a-s /bin/umount
            [root@deep]# chmod a-s /bin/ping
            [root@deep]# chmod a-s /sbin/netreport
           
            你可以用下面的命令查找所有帶s位標(biāo)志的程序:
           
            [root@deep]# find / -type f \( -perm -04000 -o -perm -02000 \) \-exec ls -lg {} \;
           
            >; suid-sgid-results
           
            把結(jié)果輸出到文件suid-sgid-results中。
           
            為了查找所有可寫的文件和目錄,用下面的命令:
           
            [root@deep]# find / -type f \( -perm -2 -o -perm -20 \) -exec ls -lg {} \; >; ww-files-results
           
            [root@deep]# find / -type d \( -perm -2 -o -perm -20 \) -exec ls -ldg {} \; >; ww-directories-results
           
            用下面的命令查找沒有擁有者的文件:
           
            [root@deep]# find / -nouser -o -nogroup >; unowed-results
           
            用下面的命令查找所有的.rhosts文件:
           
            [root@deep]# find /home -name .rhosts >; rhost-results
           
            建議替換的常見網(wǎng)絡(luò)服務(wù)應(yīng)用程序
           
            WuFTPD
           
            WuFTD從1994年就開始就不斷地出現(xiàn)安全漏洞,黑客很容易就可以獲得遠(yuǎn)程root訪問(Remote Root Access)的權(quán)限,而且很多安全漏洞

        億恩科技地址(ADD):鄭州市黃河路129號(hào)天一大廈608室 郵編(ZIP):450008 傳真(FAX):0371-60123888
           聯(lián)系:億恩小凡
           QQ:89317007
           電話:0371-63322206


        本文出自:億恩科技【mszdt.com】

        服務(wù)器租用/服務(wù)器托管中國五強(qiáng)!虛擬主機(jī)域名注冊(cè)頂級(jí)提供商!15年品質(zhì)保障!--億恩科技[ENKJ.COM]

      2. 您可能在找
      3. 億恩北京公司:
      4. 經(jīng)營(yíng)性ICP/ISP證:京B2-20150015
      5. 億恩鄭州公司:
      6. 經(jīng)營(yíng)性ICP/ISP/IDC證:豫B1.B2-20060070
      7. 億恩南昌公司:
      8. 經(jīng)營(yíng)性ICP/ISP證:贛B2-20080012
      9. 服務(wù)器/云主機(jī) 24小時(shí)售后服務(wù)電話:0371-60135900
      10. 虛擬主機(jī)/智能建站 24小時(shí)售后服務(wù)電話:0371-60135900
      11. 專注服務(wù)器托管17年
        掃掃關(guān)注-微信公眾號(hào)
        0371-60135900
        Copyright© 1999-2019 ENKJ All Rights Reserved 億恩科技 版權(quán)所有  地址:鄭州市高新區(qū)翠竹街1號(hào)總部企業(yè)基地億恩大廈  法律顧問:河南亞太人律師事務(wù)所郝建鋒、杜慧月律師   京公網(wǎng)安備41019702002023號(hào)
          0
         
         
         
         

        0371-60135900
        7*24小時(shí)客服服務(wù)熱線