<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                ### 導航 - [索引](../genindex.xhtml "總目錄") - [模塊](../py-modindex.xhtml "Python 模塊索引") | - [下一頁](spwd.xhtml "spwd --- The shadow password database") | - [上一頁](posix.xhtml "posix --- The most common POSIX system calls") | - ![](https://box.kancloud.cn/a721fc7ec672275e257bbbfde49a4d4e_16x16.png) - [Python](https://www.python.org/) ? - zh\_CN 3.7.3 [文檔](../index.xhtml) ? - [Python 標準庫](index.xhtml) ? - [Unix 專有服務](unix.xhtml) ? - $('.inline-search').show(0); | # [`pwd`](#module-pwd "pwd: The password database (getpwnam() and friends). (Unix)") --- 用戶密碼數據庫 - - - - - - 此模塊可以訪問 Unix 用戶賬戶名及密碼數據庫,在所有 Unix 版本上均可使用。 密碼數據庫中的條目以元組對象返回,屬性對應 `passwd` 中的結構(屬性如下所示,可參考 `<pwd.h>`): 索引 屬性 意義 0 `pw_name` 登錄名 1 `pw_passwd` 密碼,可能已經加密 2 `pw_uid` 用戶 ID 數值 3 `pw_gid` 組 ID 數值 4 `pw_gecos` 用戶名或備注 5 `pw_dir` 用戶主目錄 6 `pw_shell` 用戶的命令解釋器 其中 uid 和 gid 是整數,其他是字符串,如果找不到對應的項目,拋出 [`KeyError`](exceptions.xhtml#KeyError "KeyError") 異常。 注解 傳統的 Unix 系統中,`pw_passwd` 的值通常使用 DES 導出的算法加密(參閱 [`crypt`](crypt.xhtml#module-crypt "crypt: The crypt() function used to check Unix passwords. (Unix)") 模塊)。不過現在的 unix 系統使用 *影子密碼* 系統。在這些 unix 上,*pw\_passwd* 只包含星號(`'*'`)或字母(`'x'`),而加密的密碼存儲在文件 `/etc/shadow` 中,此文件不是全局可讀的。在 *pw\_passwd* 中是否包含有用信息是系統相關的。如果可以訪問到加密的密碼,就需要使用 [`spwd`](spwd.xhtml#module-spwd "spwd: The shadow password database (getspnam() and friends). (Unix)") 模塊了。 本模塊定義如下內容: `pwd.``getpwuid`(*uid*)給定用戶的數值 ID,返回密碼數據庫的對應項目。 `pwd.``getpwnam`(*name*)給定用戶名,返回密碼數據庫的對應項目。 `pwd.``getpwall`()返回密碼數據庫中所有項目的列表,順序不是固定的。 參見 模塊 [`grp`](grp.xhtml#module-grp "grp: The group database (getgrnam() and friends). (Unix)")針對用戶組數據庫的接口,與本模塊類似。 模塊 [`spwd`](spwd.xhtml#module-spwd "spwd: The shadow password database (getspnam() and friends). (Unix)")針對影子密碼數據庫的接口,與本模塊類似。 ### 導航 - [索引](../genindex.xhtml "總目錄") - [模塊](../py-modindex.xhtml "Python 模塊索引") | - [下一頁](spwd.xhtml "spwd --- The shadow password database") | - [上一頁](posix.xhtml "posix --- The most common POSIX system calls") | - ![](https://box.kancloud.cn/a721fc7ec672275e257bbbfde49a4d4e_16x16.png) - [Python](https://www.python.org/) ? - zh\_CN 3.7.3 [文檔](../index.xhtml) ? - [Python 標準庫](index.xhtml) ? - [Unix 專有服務](unix.xhtml) ? - $('.inline-search').show(0); | ? [版權所有](../copyright.xhtml) 2001-2019, Python Software Foundation. Python 軟件基金會是一個非盈利組織。 [請捐助。](https://www.python.org/psf/donations/) 最后更新于 5月 21, 2019. [發現了問題](../bugs.xhtml)? 使用[Sphinx](http://sphinx.pocoo.org/)1.8.4 創建。
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看