Home | 簡體中文 | 繁體中文 | 雜文 | 知乎專欄 | Github | OSChina 博客 | 雲社區 | 雲棲社區 | Facebook | Linkedin | 視頻教程 | 打賞(Donations) | About
知乎專欄多維度架構 微信號 netkiller-ebook | QQ群:128659835 請註明“讀者”

36.3. User Authentication

過程 36.2. Authinfo

  1. ckpasswd

    chown root /usr/lib/news/bin/auth/passwd/ckpasswd
    chmod 4555 /usr/lib/news/bin/auth/passwd/ckpasswd
    				
  2. shadow auth

    $ sudo vim /etc/news/readers.conf
    
    auth local {
            auth: "ckpasswd -s"
    }
    
    access local {
            users: "neo"
            newsgroups: "*,!junk,!control,!control.*"
    }
    				
  3. passwd file

    auth local {
           auth: "ckpasswd -f /etc/news/newsusers"
    }
    
    access local {
            users: "neo"
            newsgroups: "*,!junk,!control,!control.*"
    }
    				
  4. dbm,ndbm

    auth: "ckpasswd -d /etc/news/newsusers.ndbm"