• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
  • 禁止一些用戶的Telnet權限

    發表于:2007-07-02來源:作者:點擊數: 標簽:
    在/etc/pam.d/login中添加: auth required /lib/security/pam_listfile.so item=user sense=deny file= /etc/login_deny onerr=succeed 然后在/etc/中添加login_deny文件,里面添上所要禁止 的用戶名即可。 1.寫一個shell script /bin/ftponly: #!/bin/sh /

    在/etc/pam.d/login中添加:
    auth required /lib/security/pam_listfile.so item=user sense=deny file=
    /etc/login_deny onerr=suclearcase/" target="_blank" >cceed
    然后在/etc/中添加login_deny文件,里面添上所要禁止
    的用戶名即可。


    1.寫一個shell script /bin/ftponly:
    #!/bin/sh
    /bin/cat << XX
    You can only use FTP on this computer,
    but you may not use this account to login.
    Connection will be closed in 10 seconds.
    XX
    /usr/bin/sleep 10
    #end of ftponly
    2.把用戶ftponly的shell設置成/bin/ftponly:
    到passwd文件,找到對應于ftponly的那行
    ftponly:......:/home/ftponly:/bin/bash,把最后的
    /bin/bash改為/bin/ftponly.
    3.把 /bin/ftponly 加入到 /etc/shells
    /bin/bash
    /bin/tcsh
    /bin/csh
    /bin/ash
    /bin/zsh
    /bin/ftponly
    就行了:-)))))

    原文轉自:http://www.kjueaiud.com

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>