git: b4933bde48 - main - ja/handbook: remove users chapter
Ryusuke SUZUKI <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.cvs.doc |
|---|---|
| Message-ID | <[email protected]> |
The branch main has been updated by ryusuke: URL: https://cgit.FreeBSD.org/doc/commit/?id=b4933bde48a87434b54dfb094eb4ef57af61ac99 commit b4933bde48a87434b54dfb094eb4ef57af61ac99 Author: Ryusuke SUZUKI <[email protected]> AuthorDate: 2022-09-16 10:29:15 +0000 Commit: Ryusuke SUZUKI <[email protected]> CommitDate: 2022-09-16 10:29:15 +0000 ja/handbook: remove users chapter -> 16b54dbd20 users chapter will be merged into basic chapter. --- .../books/handbook/advanced-networking/_index.adoc | 6 +- .../ja/books/handbook/bibliography/_index.adoc | 2 +- documentation/content/ja/books/handbook/book.adoc | 2 - .../content/ja/books/handbook/boot/_index.adoc | 2 +- .../ja/books/handbook/cutting-edge/_index.adoc | 6 +- .../content/ja/books/handbook/disks/_index.adoc | 6 +- .../ja/books/handbook/eresources/_index.adoc | 2 +- .../content/ja/books/handbook/l10n/_index.adoc | 6 +- .../content/ja/books/handbook/mail/_index.adoc | 6 +- .../content/ja/books/handbook/mirrors/_index.adoc | 2 +- .../content/ja/books/handbook/partiv.adoc | 2 +- documentation/content/ja/books/handbook/partv.adoc | 2 +- .../content/ja/books/handbook/pgpkeys/_index.adoc | 2 +- .../ja/books/handbook/ppp-and-slip/_index.adoc | 6 +- .../content/ja/books/handbook/security/_index.adoc | 8 +- .../ja/books/handbook/serialcomms/_index.adoc | 6 +- .../content/ja/books/handbook/users/_index.adoc | 527 --------------------- 17 files changed, 32 insertions(+), 561 deletions(-) diff --git a/documentation/content/ja/books/handbook/advanced-networking/_index.adoc b/documentation/content/ja/books/handbook/advanced-networking/_index.adoc index 6ada5ec7fa..1769fda877 100644 --- a/documentation/content/ja/books/handbook/advanced-networking/_index.adoc +++ b/documentation/content/ja/books/handbook/advanced-networking/_index.adoc @@ -1,10 +1,10 @@ --- -title: 第21ç« é«åº¦ãªãããã¯ã¼ã¯ +title: 第20ç« é«åº¦ãªãããã¯ã¼ã¯ part: ãã¼ãIV. ãããã¯ã¼ã¯éä¿¡ prev: books/handbook/mail next: books/handbook/partv showBookMenu: true -weight: 26 +weight: 25 path: "/books/handbook/" --- @@ -16,7 +16,7 @@ path: "/books/handbook/" :icons: font :sectnums: :sectnumlevels: 6 -:sectnumoffset: 21 +:sectnumoffset: 20 :partnums: :source-highlighter: rouge :experimental: diff --git a/documentation/content/ja/books/handbook/bibliography/_index.adoc b/documentation/content/ja/books/handbook/bibliography/_index.adoc index 352202bdfe..b1e15060b4 100644 --- a/documentation/content/ja/books/handbook/bibliography/_index.adoc +++ b/documentation/content/ja/books/handbook/bibliography/_index.adoc @@ -4,7 +4,7 @@ part: ãã¼ãV. ä»é² prev: books/handbook/mirrors next: books/handbook/eresources showBookMenu: true -weight: 29 +weight: 28 path: "/books/handbook/" --- diff --git a/documentation/content/ja/books/handbook/book.adoc b/documentation/content/ja/books/handbook/book.adoc index 68f597106f..004a57d9d7 100644 --- a/documentation/content/ja/books/handbook/book.adoc +++ b/documentation/content/ja/books/handbook/book.adoc @@ -89,8 +89,6 @@ include::{chapters-path}config/_index.adoc[leveloffset=+1] include::{chapters-path}boot/_index.adoc[leveloffset=+1] -include::{chapters-path}users/_index.adoc[leveloffset=+1] - include::{chapters-path}security/_index.adoc[leveloffset=+1] include::{chapters-path}disks/_index.adoc[leveloffset=+1] diff --git a/documentation/content/ja/books/handbook/boot/_index.adoc b/documentation/content/ja/books/handbook/boot/_index.adoc index aa9f28b298..3afda744ba 100644 --- a/documentation/content/ja/books/handbook/boot/_index.adoc +++ b/documentation/content/ja/books/handbook/boot/_index.adoc @@ -2,7 +2,7 @@ title: 第12ç« FreeBSD ã®èµ·åã®ããã»ã¹ part: ãã¼ãIII. ã·ã¹ãã 管ç prev: books/handbook/config -next: books/handbook/users +next: books/handbook/security showBookMenu: true weight: 16 path: "/books/handbook/" diff --git a/documentation/content/ja/books/handbook/cutting-edge/_index.adoc b/documentation/content/ja/books/handbook/cutting-edge/_index.adoc index e3ddb3e644..889ad80deb 100644 --- a/documentation/content/ja/books/handbook/cutting-edge/_index.adoc +++ b/documentation/content/ja/books/handbook/cutting-edge/_index.adoc @@ -1,12 +1,12 @@ --- -title: 第17ç« FreeBSD ã®ã¢ãããã¼ãã¨ã¢ããã°ã¬ã¼ã +title: 第16ç« FreeBSD ã®ã¢ãããã¼ãã¨ã¢ããã°ã¬ã¼ã part: ãã¼ãIII. ã·ã¹ãã 管ç prev: books/handbook/l10n next: books/handbook/partiv description: freebsd-update ããã㯠Git ã使ã£ã FreeBSD ã·ã¹ãã ãææ°ã®ç¶æ ã«æ´æ°ããæ¹æ³ããã¼ã¹ã·ã¹ãã å ¨ä½ãåæ§ç¯ãã¤ã³ã¹ãã¼ã«ããæ¹æ³ãªã©ã®èª¬æ tags: ["updating", "upgrading", "documentation", "FreeBSD-STABLE", "FreeBSD-CURRENT", "Security Patches"] showBookMenu: true -weight: 21 +weight: 20 path: "/books/handbook/" --- @@ -18,7 +18,7 @@ path: "/books/handbook/" :icons: font :sectnums: :sectnumlevels: 6 -:sectnumoffset: 17 +:sectnumoffset: 16 :partnums: :source-highlighter: rouge :experimental: diff --git a/documentation/content/ja/books/handbook/disks/_index.adoc b/documentation/content/ja/books/handbook/disks/_index.adoc index c6754f70ee..1689e847d5 100644 --- a/documentation/content/ja/books/handbook/disks/_index.adoc +++ b/documentation/content/ja/books/handbook/disks/_index.adoc @@ -1,10 +1,10 @@ --- -title: 第15ç« ã¹ãã¬ã¼ã¸ +title: 第14ç« ã¹ãã¬ã¼ã¸ part: ãã¼ãIII. ã·ã¹ãã 管ç prev: books/handbook/security next: books/handbook/l10n showBookMenu: true -weight: 19 +weight: 18 path: "/books/handbook/" --- @@ -16,7 +16,7 @@ path: "/books/handbook/" :icons: font :sectnums: :sectnumlevels: 6 -:sectnumoffset: 15 +:sectnumoffset: 14 :partnums: :source-highlighter: rouge :experimental: diff --git a/documentation/content/ja/books/handbook/eresources/_index.adoc b/documentation/content/ja/books/handbook/eresources/_index.adoc index 7ee384aa3b..2df394960b 100644 --- a/documentation/content/ja/books/handbook/eresources/_index.adoc +++ b/documentation/content/ja/books/handbook/eresources/_index.adoc @@ -6,7 +6,7 @@ next: books/handbook/pgpkeys description: ã¦ã§ããµã¤ããã¡ã¼ãªã³ã°ãªã¹ãããã©ã¼ãµã¤ãã¨ãã£ãã¤ã³ã¿ã¼ãããä¸ã®ãªã½ã¼ã¹ tags: ["eresources", "Websites", "Mailing Lists", "Usenet", "Newsgroups"] showBookMenu: true -weight: 30 +weight: 29 path: "/books/handbook/" --- diff --git a/documentation/content/ja/books/handbook/l10n/_index.adoc b/documentation/content/ja/books/handbook/l10n/_index.adoc index 21274c0b82..59234d7330 100644 --- a/documentation/content/ja/books/handbook/l10n/_index.adoc +++ b/documentation/content/ja/books/handbook/l10n/_index.adoc @@ -1,12 +1,12 @@ --- -title: 第16ç« å°åå (localization) - i18n/L10n ã®å©ç¨ã¨è¨å® +title: 第15ç« å°åå (localization) - i18n/L10n ã®å©ç¨ã¨è¨å® part: ãã¼ãIII. ã·ã¹ãã 管ç prev: books/handbook/disks next: books/handbook/cutting-edge description: FreeBSD ã¯å¤ãã®è¨èªã¸ã®å°ååã«å¯¾å¿ãã¦ããã ã¦ã¼ã¶ã¯ãè±èªä»¥å¤ã®è¨èªãè¦ãããå ¥åããããå¦çãããã§ãã¾ãã tags: ["i18n", "L10n", "localization", "Locale", "LANG", "MM_CHARSET", "cap_mkdb"] showBookMenu: true -weight: 20 +weight: 19 path: "/books/handbook/" --- @@ -18,7 +18,7 @@ path: "/books/handbook/" :icons: font :sectnums: :sectnumlevels: 6 -:sectnumoffset: 16 +:sectnumoffset: 15 :partnums: :source-highlighter: rouge :experimental: diff --git a/documentation/content/ja/books/handbook/mail/_index.adoc b/documentation/content/ja/books/handbook/mail/_index.adoc index cec908a3c6..7de83ca260 100644 --- a/documentation/content/ja/books/handbook/mail/_index.adoc +++ b/documentation/content/ja/books/handbook/mail/_index.adoc @@ -1,10 +1,10 @@ --- -title: 第20ç« é»åã¡ã¼ã« +title: 第19ç« é»åã¡ã¼ã« part: ãã¼ãIV. ãããã¯ã¼ã¯éä¿¡ prev: books/handbook/ppp-and-slip next: books/handbook/advanced-networking showBookMenu: true -weight: 25 +weight: 24 path: "/books/handbook/" --- @@ -16,7 +16,7 @@ path: "/books/handbook/" :icons: font :sectnums: :sectnumlevels: 6 -:sectnumoffset: 20 +:sectnumoffset: 19 :partnums: :source-highlighter: rouge :experimental: diff --git a/documentation/content/ja/books/handbook/mirrors/_index.adoc b/documentation/content/ja/books/handbook/mirrors/_index.adoc index 59e3898721..9aa8c1feb1 100644 --- a/documentation/content/ja/books/handbook/mirrors/_index.adoc +++ b/documentation/content/ja/books/handbook/mirrors/_index.adoc @@ -6,7 +6,7 @@ next: books/handbook/bibliography description: "FreeBSD ã®å ¥ææ¹æ³: CD ããã³ DVD ã»ãã, FTP ãµã¤ã, Git ã®ã¤ã³ã¹ãã¼ã«ããã³å©ç¨æ¹æ³" tags: ["å ¥ææ¹æ³", "CD", "DVD", "FTP", "Git"] showBookMenu: true -weight: 28 +weight: 27 path: "/books/handbook/" --- diff --git a/documentation/content/ja/books/handbook/partiv.adoc b/documentation/content/ja/books/handbook/partiv.adoc index b9a5161a9f..427bea675d 100644 --- a/documentation/content/ja/books/handbook/partiv.adoc +++ b/documentation/content/ja/books/handbook/partiv.adoc @@ -3,7 +3,7 @@ title: ãã¼ãIV. ãããã¯ã¼ã¯éä¿¡ prev: books/handbook/cutting-edge next: books/handbook/serialcomms showBookMenu: true -weight: 22 +weight: 21 path: "/books/handbook/" --- diff --git a/documentation/content/ja/books/handbook/partv.adoc b/documentation/content/ja/books/handbook/partv.adoc index 359580d680..c507360d28 100644 --- a/documentation/content/ja/books/handbook/partv.adoc +++ b/documentation/content/ja/books/handbook/partv.adoc @@ -3,7 +3,7 @@ title: ãã¼ãV. ä»é² prev: books/handbook/advanced-networking next: books/handbook/mirrors showBookMenu: true -weight: 27 +weight: 26 path: "/books/handbook/" --- diff --git a/documentation/content/ja/books/handbook/pgpkeys/_index.adoc b/documentation/content/ja/books/handbook/pgpkeys/_index.adoc index 5ed591f80b..bd695f05af 100644 --- a/documentation/content/ja/books/handbook/pgpkeys/_index.adoc +++ b/documentation/content/ja/books/handbook/pgpkeys/_index.adoc @@ -4,7 +4,7 @@ part: ãã¼ãV. ä»é² prev: books/handbook/eresources next: books/handbook/freebsd-glossary showBookMenu: true -weight: 31 +weight: 30 path: "/books/handbook/" --- diff --git a/documentation/content/ja/books/handbook/ppp-and-slip/_index.adoc b/documentation/content/ja/books/handbook/ppp-and-slip/_index.adoc index 1cdbf574cc..2566362cab 100644 --- a/documentation/content/ja/books/handbook/ppp-and-slip/_index.adoc +++ b/documentation/content/ja/books/handbook/ppp-and-slip/_index.adoc @@ -1,10 +1,10 @@ --- -title: 第19ç« PPP 㨠SLIP +title: 第18ç« PPP 㨠SLIP part: ãã¼ãIV. ãããã¯ã¼ã¯éä¿¡ prev: books/handbook/serialcomms next: books/handbook/mail showBookMenu: true -weight: 24 +weight: 23 path: "/books/handbook/" --- @@ -16,7 +16,7 @@ path: "/books/handbook/" :icons: font :sectnums: :sectnumlevels: 6 -:sectnumoffset: 19 +:sectnumoffset: 18 :partnums: :source-highlighter: rouge :experimental: diff --git a/documentation/content/ja/books/handbook/security/_index.adoc b/documentation/content/ja/books/handbook/security/_index.adoc index 56f1ad8df2..c35dd56eba 100644 --- a/documentation/content/ja/books/handbook/security/_index.adoc +++ b/documentation/content/ja/books/handbook/security/_index.adoc @@ -1,10 +1,10 @@ --- -title: 第14ç« ã»ãã¥ãªã㣠+title: 第13ç« ã»ãã¥ãªã㣠part: ãã¼ãIII. ã·ã¹ãã 管ç -prev: books/handbook/users +prev: books/handbook/boot next: books/handbook/disks showBookMenu: true -weight: 18 +weight: 17 path: "/books/handbook/" --- @@ -16,7 +16,7 @@ path: "/books/handbook/" :icons: font :sectnums: :sectnumlevels: 6 -:sectnumoffset: 14 +:sectnumoffset: 13 :partnums: :source-highlighter: rouge :experimental: diff --git a/documentation/content/ja/books/handbook/serialcomms/_index.adoc b/documentation/content/ja/books/handbook/serialcomms/_index.adoc index 60596b4a04..5ff625061b 100644 --- a/documentation/content/ja/books/handbook/serialcomms/_index.adoc +++ b/documentation/content/ja/books/handbook/serialcomms/_index.adoc @@ -1,10 +1,10 @@ --- -title: 第18ç« ã·ãªã¢ã«éä¿¡ +title: 第17ç« ã·ãªã¢ã«éä¿¡ part: ãã¼ãIV. ãããã¯ã¼ã¯éä¿¡ prev: books/handbook/partiv next: books/handbook/ppp-and-slip showBookMenu: true -weight: 23 +weight: 22 path: "/books/handbook/" --- @@ -16,7 +16,7 @@ path: "/books/handbook/" :icons: font :sectnums: :sectnumlevels: 6 -:sectnumoffset: 18 +:sectnumoffset: 17 :partnums: :source-highlighter: rouge :experimental: diff --git a/documentation/content/ja/books/handbook/users/_index.adoc b/documentation/content/ja/books/handbook/users/_index.adoc deleted file mode 100644 index 120c3ce312..0000000000 --- a/documentation/content/ja/books/handbook/users/_index.adoc +++ /dev/null @@ -1,527 +0,0 @@ ---- -title: 第13ç« ã¦ã¼ã¶ã¨åºæ¬çãªã¢ã«ã¦ã³ãã®ç®¡ç -part: ãã¼ãIII. ã·ã¹ãã 管ç -prev: books/handbook/boot -next: books/handbook/security -showBookMenu: true -weight: 17 -path: "/books/handbook/" ---- - -[[users]] -= ã¦ã¼ã¶ã¨åºæ¬çãªã¢ã«ã¦ã³ãã®ç®¡ç -:doctype: book -:toc: macro -:toclevels: 1 -:icons: font -:sectnums: -:sectnumlevels: 6 -:sectnumoffset: 13 -:partnums: -:source-highlighter: rouge -:experimental: -:images-path: books/handbook/users/ - -ifdef::env-beastie[] -ifdef::backend-html5[] -:imagesdir: ../../../../images/{images-path} -endif::[] -ifndef::book[] -include::shared/authors.adoc[] -include::shared/mirrors.adoc[] -include::shared/releases.adoc[] -include::shared/attributes/attributes-{{% lang %}}.adoc[] -include::shared/{{% lang %}}/teams.adoc[] -include::shared/{{% lang %}}/mailing-lists.adoc[] -include::shared/{{% lang %}}/urls.adoc[] -toc::[] -endif::[] -ifdef::backend-pdf,backend-epub3[] -include::../../../../../shared/asciidoctor.adoc[] -endif::[] -endif::[] - -ifndef::env-beastie[] -toc::[] -include::../../../../../shared/asciidoctor.adoc[] -endif::[] - -[[users-synopsis]] -== ãã®ç« ã§ã¯ - -FreeBSD ã¯ãè¤æ°ã®ã¦ã¼ã¶ãåæã«ã³ã³ãã¥ã¼ã¿ã使ããããã«ãã¾ãã ã¹ã¯ãªã¼ã³ã¨ãã¼ãã¼ãã®åã«ä¸åº¦ã«åº§ããã®ã¯ãã®ä¸ã®ä¸äººã ãã§ãã ã¦ã¼ã¶ã¯ä½äººã§ããããã¯ã¼ã¯ãéãã¦ãã°ã¤ã³ã§ãã¾ãã ã·ã¹ãã ã使ãããã«ã¯ã ã©ã®ã¦ã¼ã¶ãã¢ã«ã¦ã³ãããªããã°ãªãã¾ããã - -ãã®ç« ã§ã¯ã以ä¸ã®ãã¨ã説æãã¾ãã - -* FreeBSD ã·ã¹ãã ã«ããããã¾ãã¾ãªç¨®é¡ã®ã¦ã¼ã¶ã¢ã«ã¦ã³ãã«ã¤ã㦠-* ã¦ã¼ã¶ã¢ã«ã¦ã³ãã追å ãåé¤ããã³å¤æ´ããæ¹æ³ -* ã¦ã¼ã¶ãã°ã«ã¼ããå©ç¨ã§ãããªã½ã¼ã¹ã®ä¸éãå¶å¾¡ããæ¹æ³ -* ã°ã«ã¼ãã®ä½æã ããã³ã°ã«ã¼ãã«ã¦ã¼ã¶ãã¡ã³ãã¨ãã¦è¿½å ããæ¹æ³ - -[[users-introduction]] -== ã¢ã«ã¦ã³ãã®ç¨®é¡ - -FreeBSD ã·ã¹ãã ã¸ã¢ã¯ã»ã¹ããã«ã¯ã ããªããã¢ã«ã¦ã³ãã使ããã ã¾ããããã»ã¹ããã¹ã¦ã¦ã¼ã¶ã«ãã£ã¦å®è¡ãããã®ã§ã ã¦ã¼ã¶ã¨ã¢ã«ã¦ã³ãã®ç®¡çã¯ãéè¦ãªãã®ã§ãã - -ã¢ã«ã¦ã³ãã«ã¯å¤§ããåãã¦ä¸ç¨®é¡ããã¾ãã ã·ã¹ãã ã¢ã«ã¦ã³ã (system accounts)ãã¦ã¼ã¶ã¢ã«ã¦ã³ã (user accounts)ã ããã¦ã¹ã¼ãã¼ã¦ã¼ã¶ (superuser) ã§ãã - -[[users-system]] -=== ã·ã¹ãã ã¢ã«ã¦ã³ã - -ã·ã¹ãã ã¢ã«ã¦ã³ãã¯ãDNSãã¡ã¼ã«ã ã¦ã§ããµã¼ãã¨ãã£ãå種ãµã¼ãã¹ãéç¨ããããã«ä½¿ããã¾ãã ãã®ç®çã¯ãã»ãã¥ãªãã£ã確ä¿ããããã§ãã ãããã¹ã¦ã®ãµã¼ãã¹ãã¹ã¼ãã¼ã¦ã¼ã¶ã§å®è¡ããã¦ããã¨ã ãããã®ãµã¼ãã¹ã¯ã©ããªåä½ã§ãå¯è½ã¨ãªãã é©åãªå¶éãé©ç¨ãããã¨ãã§ãã¾ããã - -ã·ã¹ãã ã¢ã«ã¦ã³ãã®å ·ä½ä¾ã¯ã `daemon`, `operator`, `bind`, `news` ããã³ `www` ã¨ãã£ããã®ã§ãã - -`nobody` ã¯é常ã®ç¹æ¨©ãæããªãã·ã¹ãã ã¢ã«ã¦ã³ãã§ãã ãããã`nobody` ãå©ç¨ãããµã¼ãã¹ãå¢ããã°å¢ããã»ã©ã ããã«æå±ãããã¡ã¤ã«ãããã»ã¹ãå¢ãã ãã®ç¹æ¨©ã大ãããªãã¨ãããã¨ãå¿ããªãããã«ãã¦ãã ããã - -[[users-user]] -=== ã¦ã¼ã¶ã¢ã«ã¦ã³ã - -ã¦ã¼ã¶ã¢ã«ã¦ã³ãã¯ã 主ã«ç¾å®ã®ã¦ã¼ã¶ãã·ã¹ãã ã«ã¢ã¯ã»ã¹ããææ®µã¨ãã¦ç¨ãããããã®ã§ãã ã·ã¹ãã ã«ã¢ã¯ã»ã¹ãããã¹ã¦ã®ã¦ã¼ã¶ã¯ã ããããå¯ä¸ã®ã¦ã¼ã¶ã¢ã«ã¦ã³ããæã¤ã¹ãã§ãã ãããããã¨ã§ç®¡çè ã¯èª°ãä½ãè¡ãªã£ã¦ãããããããã¾ããã ä»ã®äººã®è¨å®ãå£ãã¦ãã¾ããããªãã¨ãé¿ãããã¨ãã§ãã¾ãã - -ããããã®ã¦ã¼ã¶ã¯å¿«é©ã«ã·ã¹ãã ãå©ç¨ããããã ã·ã§ã«ãã¨ãã£ã¿ããã¼è¨å®ãè¨èªãªã©ã åèªã®ç°å¢ãã»ããã¢ãããããã¨ãã§ãã¾ãã - -FreeBSD ã·ã¹ãã ä¸ã®ã©ã®ã¢ã«ã¦ã³ãã«ãã 以ä¸ã®ãããªæ å ±ããªã«ãããçµã³ä»ãããã¦ãã¾ãã - -ã¦ã¼ã¶å:: -`login:` ããã³ããã«å¯¾ãã¦å ¥åããã¦ã¼ã¶ã®ååã§ãã ã¦ã¼ã¶åã¯ãã®ã·ã¹ãã ã§ä¸æã§ãªããã°ãªããã 2 åã®ã¦ã¼ã¶ã«åãã¦ã¼ã¶åãã¤ãããã¨ã¯ã§ãã¾ããã æå¹ãªã¦ã¼ã¶åã使ããã«ã¯ man:passwd[5] ã«è¨è¼ããã¦ããããã¤ãã®è¦åãããã¾ãã ã¢ããªã±ã¼ã·ã§ã³ã®ä¸ä½äºææ§ãä¿ã¤ããã«ã 8 æå以ä¸ã®å°æåãããªãã¦ã¼ã¶åã使ããã¨ãæ¨å¥¨ããã¦ãã¾ãã - -ãã¹ã¯ã¼ã:: -ããããã®ã¦ã¼ã¶ã¢ã«ã¦ã³ãã«ã¯ãã¹ã¯ã¼ããããã¾ãã ãã¹ã¯ã¼ãã¯ç©ºç½ã«ãã§ãã¾ããã è¡ãã¹ãã§ã¯ããã¾ããã - -ã¦ã¼ã¶ ID (UID):: -ã¦ã¼ã¶ ID (UID) ã¯ã FreeBSD ã·ã¹ãã ãã¦ã¼ã¶ã䏿ã«èå¥ããããã®æ°å¤ã§ãã ã¦ã¼ã¶åãæå®ã§ããã³ãã³ãã¯ã ã¦ã¼ã¶åã UID ã«å¤æãã¦ããæ±ã£ã¦ãã¾ãã 65535 ãã大ã㪠UID ã¯ã32 ããã以ä¸ã®æ´æ°ã«å¯¾å¿ãã¦ããªãã½ããã¦ã§ã¢ã«ããã¦äºææ§ã®åé¡ãå¼ãèµ·ããå¯è½æ§ãããã®ã§ã 65535 以ä¸ã® UID ã使ç¨ãããã¨ãæ¨å¥¨ããã¦ãã¾ãã - -ã°ã«ã¼ã ID (GID):: -ã°ã«ã¼ã ID (GID) ã¯ã ã¦ã¼ã¶ãå±ãã第ä¸ã°ã«ã¼ãã䏿ã«èå¥ããããã®æ°å¤ã§ãã ã°ã«ã¼ãã¯ãUID ã§ã¯ãªãã ã¦ã¼ã¶ã® GID ã«åºã¥ãã¦è³æºã¸ã®ã¢ã¯ã»ã¹ãå¶å¾¡ããä»çµã¿ã§ãã ããã¯ããã種ã®è¨å®ãã¡ã¤ã«ã®ãµã¤ãºãå¤§å¹ ã«å°ãããã¾ãã ã¦ã¼ã¶ã¯ãè¤æ°ã®ã°ã«ã¼ãã«æå±ã§ãã¾ãã 65535 ãã大ã㪠GID ã¯ãã½ããã¦ã§ã¢ã«åé¡ãå¼ãèµ·ããå¯è½æ§ãããã®ã§ã 65535 以ä¸ã® GID ã使ããã¨ãæ¨å¥¨ãã¾ãã - -ãã°ã¤ã³ã¯ã©ã¹:: -ãã°ã¤ã³ã¯ã©ã¹ã¯ã°ã«ã¼ãã®ä»çµã¿ãæ¡å¼µãããã®ã§ã å¥ã ã®ã¦ã¼ã¶ã«å¯¾ãã¦ã·ã¹ãã ã調æ´ããæã«ã ãããªãæè»æ§ãæä¾ãã¾ãããã°ã¤ã³ã¯ã©ã¹ã®è©³ç´°ã«ã¤ãã¦ã¯ã <<users-limiting>> ã§èª¬æãã¾ãã - -ãã¹ã¯ã¼ã夿´æé:: -ããã©ã«ãã§ã¯ãFreeBSD ã¯å®æçã«ãã¹ã¯ã¼ãã夿´ãããã¨ãã¦ã¼ã¶ã«å¼·å¶ãã¾ããã ããã man:pw[8] ã使ç¨ãã¦ã¦ã¼ã¶ãã¨ã«è¨å®ãã ä¸é¨ã¾ãã¯ãã¹ã¦ã®ã¦ã¼ã¶ã«ã ä¸å®ã®æéããã£ãããã¹ã¯ã¼ããå¼·å¶çã«å¤æ´ããããã¨ãã§ãã¾ãã - -ã¢ã«ã¦ã³ã失广é:: -ããã©ã«ãã§ã¯ãFreeBSD ã¯ã¢ã«ã¦ã³ãã失å¹ããã¾ããã ãã¨ãã°å¦æ ¡ã§çå¾ã®ã¢ã«ã¦ã³ããããå ´åãªã©ã éãããæéã ãã®ã¢ã«ã¦ã³ãã使ãããªãã ãã®ã¢ã«ã¦ã³ãããã¤å¤±å¹ããã man:pw[8] ã使ã£ã¦æå®ã§ãã¾ãã æå¹æéãçµéãããã ãã®ã¢ã«ã¦ã³ãã®ãã£ã¬ã¯ããªããã¡ã¤ã«ã¯æ®ã£ã¦ãã¾ããã ã·ã¹ãã ã¸ã®ãã°ã¤ã³ã¯ã§ããªããªãã¾ãã - -ã¦ã¼ã¶ã®æ°å:: -FreeBSD ã§ã¯ã¦ã¼ã¶åã§ã¢ã«ã¦ã³ãã䏿ã«èå¥ãã¾ããã å¿ ãããã¦ã¼ã¶ã®æ¬åãåæ ãããã®ã§ã¯ããã¾ããã ãã®æ å ±ãã¢ã«ã¦ã³ãã«é¢é£ä»ãããã¨ãã§ãã¾ãã ãã®æ å ±ã¯ãã³ã¡ã³ãã®ããã«ã空ç½ã大æåãããã³ 8 å以ä¸ã§è¨è¼ã§ãã¾ãã - -ãã¼ã ãã£ã¬ã¯ããª:: -ãã¼ã ãã£ã¬ã¯ããªã¯ãã·ã¹ãã ä¸ã®ãã£ã¬ã¯ããªã¸ã®ãã«ãã¹ã§ãã ããã¯ã¦ã¼ã¶ããã°ã¤ã³ããæã«ä½æ¥ãéå§ãããã£ã¬ã¯ããªã§ãã ä¸è¬çãªæ £ç¿ã¯ããã¹ã¦ã®ã¦ã¼ã¶ã®ãã¼ã ãã£ã¬ã¯ããªã [.filename]#/home/username# ã [.filename]#/usr/home/username# ã®ä¸ã«ç½®ããã¨ã§ãã åã¦ã¼ã¶ã¯ãå人ã®ãã¡ã¤ã«ããµããã£ã¬ã¯ããªãã ã¦ã¼ã¶ã®ãã¼ã ãã£ã¬ã¯ããªã«ä¿åãã¾ãã - -ã¦ã¼ã¶ã·ã§ã«:: -ã·ã§ã«ã¯ã ã¦ã¼ã¶ãã·ã¹ãã ã¨å¯¾è©±ããããã©ã«ãã®ç°å¢ãæä¾ãã¾ãã ãããããªç¨®é¡ã®ã·ã§ã«ãããã çµé¨ãç©ãã ã¦ã¼ã¶ã¯ãããã好ã¿ãããã ãããã¢ã«ã¦ã³ãã®è¨å®ã«åæ ã§ãã¾ãã - -[[users-superuser]] -=== ã¹ã¼ãã¼ã¦ã¼ã¶ã¢ã«ã¦ã³ã - -ã¹ã¼ãã¼ã¦ã¼ã¶ã¢ã«ã¦ã³ãã¯é常 `root` ã¨å¼ã°ãã ã·ã¹ãã 管çãè¡ãªãããã«ä½¿ãããæ¨©éã«å¶éãããã¾ããã ãã®ããããã®ã¢ã«ã¦ã³ãã¯ã¡ã¼ã«ã®ããã¨ããã·ã¹ãã ã®èª¿æ»ã ããã°ã©ãã³ã°ã¨ãã£ãæ¥å¸¸çãªä½æ¥ãè¡ãªãããã«ä½¿ãããã¹ããã®ã§ã¯ããã¾ããã - -ãã®çç±ã¯ãã¹ã¼ãã¼ã¦ã¼ã¶ãé常ã®ã¦ã¼ã¶ã¢ã«ã¦ã³ãã¨ç°ãªãã æä½ã«ã¾ã£ããå¶éãåããªããã¨ã«ããã¾ãã ãã®ããã¹ã¼ãã¼ã¦ã¼ã¶ã¢ã«ã¦ã³ãã§æä½ãééããã¨ã ã·ã¹ãã ã«é大ãªå½±é¿ãä¸ãã¦ãã¾ãæããããã®ã§ãã ã¦ã¼ã¶ã¢ã«ã¦ã³ãã§ã¯ã ä»®ã«æä½ãééãã¦ãã·ã¹ãã ãå£ãã¦ãã¾ããããªãã¨ã¯ã§ããªãããã«ãªã£ã¦ãã¾ãã ãã®ãããã¦ã¼ã¶ã¢ã«ã¦ã³ãã§ãã°ã¤ã³ãã é«ã権éãå¿ è¦ãªã³ãã³ããå®è¡ããã¨ãã ãã¹ã¼ãã¼ã¦ã¼ã¶ã«ãªããã¨ãæ¨å¥¨ããã¦ãã¾ãã - -ã¹ã¼ãã¼ã¦ã¼ã¶ã§å®è¡ããã³ãã³ãã¯ãã¤ã§ãã äºåãä¸åã¨ç¢ºèªãã¦ãã ããã ãªããªãã¹ãã¼ã¹ãå¤ãã£ãããæåãæ¬ ãã¦ãããããã ãã§ã åãè¿ãã®ã¤ããªããã¼ã¿ã®ç ´å£ã«ã¤ãªããå¯è½æ§ãããããã§ãã - -ã¹ã¼ãã¼ã¦ã¼ã¶ã®æ¨©éãå¾ãã«ã¯ããã¾ãã¾ãªæ¹æ³ãããã¾ãã `root` ã¦ã¼ã¶ã¨ãã¦ãã°ã¤ã³ããæ¹æ³ãããã¾ããã ããã¯ã¾ã£ãããå§ãã§ãã¾ããã - -ã¹ã¼ãã¼ã¦ã¼ã¶ã®æ¨©éãæã«å ¥ããã«ã¯ããããã« man:su[1] ã使ã£ã¦ä¸ããã `-` ãªãã·ã§ã³ãã¤ãã¦å®è¡ããã¨ã å®è¡ããã¦ã¼ã¶ã« root ã¦ã¼ã¶ã®ç°å¢ãè¨å®ããã¾ãã ãã®ã³ãã³ã㯠`wheel` ã°ã«ã¼ãã«å ¥ã£ã¦ãã¦ã¼ã¶ã®ã¿ãå®è¡ã§ããä»ã®ã¦ã¼ã¶ã¯å®è¡åºæ¥ã¾ããã ã¾ããå®è¡æã«ã¯ `root` ã¦ã¼ã¶ã®ãã¹ã¯ã¼ããå¿ è¦ã¨ãã¾ãã - -以ä¸ã®ä¾ã§ã¯ã`make install` ãè¡ãã¨ãã«ã¹ã¼ãã¼ã¦ã¼ã¶ã®æ¨©éãå¿ è¦ãªã®ã§ã ãã®ã³ãã³ããå®è¡ããæã ãã¦ã¼ã¶ã¯ã¹ã¼ãã¼ã¦ã¼ã¶ã«ãªãã¾ãã ã³ãã³ããå®è¡ããããã¦ã¼ã¶ã¯ `exit` ãå®è¡ãã¦ã¹ã¼ãã¼ã¦ã¼ã¶ãããã°ã¢ã¦ããã é常ã®ã¦ã¼ã¶ã¢ã«ã¦ã³ãã®æ¨©éã«æ»ãã¾ãã - -.ã¹ã¼ãã¼ã¦ã¼ã¶æ¨©éã§ããã°ã©ã ãã¤ã³ã¹ãã¼ã«ãã -[example] -==== - -[source,shell] -.... -% configure -% make -% su - -Password: -# make install -# exit -% -.... - -==== - -1 人ã®ç®¡çè ãä¸å°ã®ãã·ã³ã ãããã¯å°è¦æ¨¡ãªãããã¯ã¼ã¯ã管çããå ´åã«ã¯ã man:su[1] ã®ãã¬ã¼ã ã¯ã¼ã¯ã¯ãã¾ãæ©è½ããã§ãããã ãã®ä»£ããã¨ãªãã®ã¯ã package:security/sudo[] package ã¾ã㯠port ã§ããããã¯ãã°æ©è½ãã ã¹ã¼ãã¼ã¦ã¼ã¶ã®æ¨©éã§å®è¡ã§ããã¦ã¼ã¶ãã³ãã³ããè¨å®ã§ãã¾ãã - -[[users-modifying]] -== ã¢ã«ã¦ã³ãæ å ±ã®ç®¡ç - -FreeBSD ã«ã¯ã ã¦ã¼ã¶ã¢ã«ã¦ã³ããæä½ããã®ã«ãã¾ãã¾ãªã³ãã³ããç¨æããã¦ãã¾ãã ãã£ã¨ãä¸è¬çãªã³ãã³ãã以ä¸ã«ç¤ºãã ããã«ç¶ãã¦è©³ãã使ç¨ä¾ã示ãã¾ãã - -[.informaltable] -[cols="1,1", frame="none", options="header"] -|=== -| ã³ãã³ã -| è¦ç´ - -|man:adduser[8] -|ã³ãã³ãã©ã¤ã³ããã¦ã¼ã¶ã追å ããããã®æ¨å¥¨ã¢ããªã±ã¼ã·ã§ã³ - -|man:rmuser[8] -|ã³ãã³ãã©ã¤ã³ããã¦ã¼ã¶ãåé¤ããããã®æ¨å¥¨ã¢ããªã±ã¼ã·ã§ã³ - -|man:chpass[1] -|ã¦ã¼ã¶ãã¼ã¿ãã¼ã¹ã®æ å ±ã夿´ããããã®æè»ãªãã¼ã« - -|man:passwd[1] -|ã¦ã¼ã¶ã®ãã¹ã¯ã¼ãã夿´ããç°¡åãªã³ãã³ãã©ã¤ã³ãã¼ã« - -|man:pw[8] -|ã¦ã¼ã¶ã¢ã«ã¦ã³ãã®ããããç®æã夿´ããå¼·åã§æè»ãªãã¼ã« -|=== - -[[users-adduser]] -=== `adduser` - -man:adduser[8] ã¯ã æ°ããã¦ã¼ã¶ãç»é²ããããã®ã·ã³ãã«ãªããã°ã©ã ã§ãã ã¦ã¼ã¶ã追å ããã¨ã ãã®ããã°ã©ã ã¯ã[.filename]#/etc/passwd# 㨠[.filename]#/etc/group# ãèªåçã«æ´æ°ãã¾ãã ã¾ããæ°è¦ã¦ã¼ã¶ã®ãã¼ã ãã£ã¬ã¯ããªã使ãã [.filename]#/usr/shared/skel# ãããããã©ã«ãã§ä½¿ç¨ãããè¨å®ãã¡ã¤ã«ãã³ãã¼ãã¾ãã ã¾ããæ°ãã使ãããã¦ã¼ã¶ã«å¯¾ãã¦ã ã¦ã§ã«ã«ã ã¡ãã»ã¼ã¸ãã¡ã¼ã«ã§éä¿¡ãããã¨ãå¯è½ã§ãã - -.FreeBSD ã«ãããã¦ã¼ã¶ã®è¿½å -[example] -==== - -[source,shell] -.... -# adduser -Username: jru -Full name: J. Random User -Uid (Leave empty for default): -Login group [jru]: -Login group is jru. Invite jru into other groups? []: wheel -Login class [default]: -Shell (sh csh tcsh zsh nologin) [sh]: zsh -Home directory [/home/jru]: -Home directory permissions (Leave empty for default): -Use password-based authentication? [yes]: -Use an empty password? (yes/no) [no]: -Use a random password? (yes/no) [no]: -Enter password: -Enter password again: -Lock out the account after creation? [no]: -Username : jru -Password : **** -Full Name : J. Random User -Uid : 1001 -Class : -Groups : jru wheel -Home : /home/jru -Shell : /usr/local/bin/zsh -Locked : no -OK? (yes/no): yes -adduser: INFO: Successfully added (jru) to the user database. -Add another user? (yes/no): no -Goodbye! -# -.... - -==== - -[NOTE] -==== -å ¥åãããã¹ã¯ã¼ãã¯ç»é¢ã«è¡¨ç¤ºããã¾ããã®ã§ã ã¦ã¼ã¶ã¢ã«ã¦ã³ãã使ããéã«ã¯ã ãã¹ã¯ã¼ããééãã¦å ¥åãã¦ãã¾ããªãããã«æ³¨æãã¦ãã ããã -==== - -[[users-rmuser]] -=== `rmuser` - -ã·ã¹ãã ããå®å ¨ã«ã¦ã¼ã¶ãåé¤ããã«ã¯ã man:rmuser[8] ã使ãã¾ãã ãã®ã³ãã³ãã¯ãæ¬¡ã®æé ãå®è¡ãã¾ãã - -[.procedure] -==== -. æå®ãããã¦ã¼ã¶ã® man:crontab[1] ã¨ã³ããªãåå¨ããå ´åã«ã¯åé¤ã -. æå®ãããã¦ã¼ã¶ã® man:at[1] ã¸ã§ãããã¹ã¦åé¤ã -. æå®ãããã¦ã¼ã¶ãææãããã¹ã¦ã®ããã»ã¹ãå¼·å¶çµäºã -. ãã¼ã«ã«ãã¹ã¯ã¼ããã¡ã¤ã«ããã æå®ãããã¦ã¼ã¶ã®ã¨ã³ããªãåé¤ã -. æå®ãããã¦ã¼ã¶ã®ãã¼ã ãã£ã¬ã¯ããªãåé¤ (ãã£ã¬ã¯ããªã®ææè ãæå®ãããã¦ã¼ã¶ã®ãã®ã ã£ãå ´å)ã -. [.filename]#/var/mail# ãããæå®ãããã¦ã¼ã¶ã®å°çã¡ã¼ã«ãã¡ã¤ã«ãåé¤ã -. [.filename]#/tmp# ã®ãããªä¸æãã¡ã¤ã«ä¿åé åããã æå®ãããã¦ã¼ã¶ã®ææãããã¡ã¤ã«ãåé¤ã -. ããã¦æå¾ã«ã [.filename]#/etc/group# ã«ãã ãã¹ã¦ã®ã°ã«ã¼ããããæå®ãããã¦ã¼ã¶ãåé¤ãã¾ãã -+ -[NOTE] -====== -æå®ãããã¦ã¼ã¶ã¨åãååã®ã°ã«ã¼ãã§ã ãã®ã¦ã¼ã¶ãåé¤ãããã¨ç©ºã®ã°ã«ã¼ãã¨ãªãå ´åã¯ã ãã®ã°ã«ã¼ãèªä½ãåé¤ããã¾ãã ãã㯠man:adduser[8] ã«ãã£ã¦ã¦ã¼ã¶ãã¨ã«ä½æãããã ã¦ãã¼ã¯ãªã°ã«ã¼ãã«å¯¾å¿ãããã®ã§ãã -====== -==== - -ã¹ã¼ãã¦ã¼ã¶ã¢ã«ã¦ã³ãã®åé¤ã« man:rmuser[8] ãå©ç¨ãããã¨ã¯ã§ãã¾ããã ã¹ã¼ãã¦ã¼ã¶ã¢ã«ã¦ã³ãã®åé¤ã¯ã»ã¨ãã©ãã¹ã¦ã®å ´åã å¤§è¦æ¨¡ãªã·ã¹ãã ã®ç ´å£ãæå³ããããã§ãã - -ããã©ã«ãã§ã¯ã以ä¸ã®ä¾ã®ãããªå¯¾è©±ã¢ã¼ãã使ããã¾ãã - -.`rmuser` ã«ãã対話çãªã¢ã«ã¦ã³ãã®åé¤ -[example] -==== - -[source,shell] -.... -# rmuser jru -Matching password entry: -jru:*:1001:1001::0:0:J. Random User:/home/jru:/usr/local/bin/zsh -Is this the entry you wish to remove? y -Remove user's home directory (/home/jru)? y -Updating password file, updating databases, done. -Updating group file: trusted (removing group jru -- personal group is empty) done. -Removing user's incoming mail file /var/mail/jru: done. -Removing files belonging to jru from /tmp: done. -Removing files belonging to jru from /var/tmp: done. -Removing files belonging to jru from /var/tmp/vi.recover: done. -# -.... - -==== - -[[users-chpass]] -=== `chpass` - -man:chpass[1] ãç¨ãã¦ã ãã¹ã¯ã¼ããã·ã§ã«ããã®ä»ã®å人æ å ±ã¨ãã£ãã ã¦ã¼ã¶ãã¼ã¿ãã¼ã¹æ å ±ã夿´ã§ãã¾ãã - -ã¹ã¼ãã¦ã¼ã¶æ¨©éã«éãã man:chpass[1] ãç¨ãã ä»ã®ã¦ã¼ã¶ã®æ å ±ããã¹ã¯ã¼ãã夿´ã§ãã¾ãã - -ã¦ã¼ã¶åã®ä»ã«ãªãã·ã§ã³ãæå®ããªãã¨ã man:chpass[1] ã¯ã¦ã¼ã¶æ å ±ãç·¨éããã¨ãã£ã¿ã表示ãã¾ãã ã¦ã¼ã¶ãã¨ãã£ã¿ãçµäºããã¨ã ã¦ã¼ã¶ãã¼ã¿ãã¼ã¹ãæ°ããæ å ±ã«æ´æ°ããã¾ãã - -[NOTE] -==== -ã¹ã¼ãã¦ã¼ã¶ã§ãªãå ´åã¯ã ã¨ãã£ã¿ãæããå¾ã«ãã¹ã¯ã¼ããèããã¾ãã -==== - -.ã¹ã¼ãã¦ã¼ã¶ã«ãã対話ç㪠`chpass` -[example] -==== - -[source,shell] -.... -#Changing user database information for jru. -Login: jru -Password: * -Uid [#]: 1001 -Gid [# or name]: 1001 -Change [month day year]: -Expire [month day year]: -Class: -Home directory: /home/jru -Shell: /usr/local/bin/zsh -Full Name: J. Random User -Office Location: -Office Phone: -Home Phone: -Other information: -.... - -==== - -ã¦ã¼ã¶ã¯ããã®æ å ±ã®éãããé¨åã®ã¿å¤æ´ãå¯è½ã§ãã ã¾ãã夿´ã§ããã®ã¯ãã®ã¦ã¼ã¶èªèº«ã®ã¢ã«ã¦ã³ãæ å ±ã®ã¿ã§ãã - -.é常ã®ã¦ã¼ã¶ã«ãã対話ç㪠`chpass` -[example] -==== - -[source,shell] -.... -#Changing user database information for jru. -Shell: /usr/local/bin/zsh -Full Name: J. Random User -Office Location: -Office Phone: -Home Phone: -Other information: -.... - -==== - -[NOTE] -==== -man:chfn[1] ããã³ man:chsh[1] ã¯ããããã man:chpass[1] ã¸ã®ãªã³ã¯ã§ãã ã¾ããman:ypchpass[1], man:ypchfn[1] ããã³ man:ypchsh[1] ãåæ§ã§ãã NIS ã®ãµãã¼ãã¯èªåçã«è¡ãªããã¾ãã®ã§ã ã³ãã³ãã®å é ã« `yp` ãã¤ããå¿ è¦ã¯ããã¾ããã NIS ã®è¨å®ã«ã¤ãã¦ã¯ã ã§èª¬æããã¦ãã¾ãã -==== - -[[users-passwd]] -=== `passwd` - -man:passwd[1] ã¯ã ã¦ã¼ã¶ãèªåã®ãã¹ã¯ã¼ãã夿´ããéå¸¸ã®æ¹æ³ã§ãã ã¹ã¼ãã¦ã¼ã¶æ¨©éã§ã¯ã ä»ã®ã¦ã¼ã¶ã®ãã¹ã¯ã¼ãã夿´ããã®ã«ä½¿ããã¾ãã - -[NOTE] -==== -誤ã£ã¦ãã¾ãã¯ä¸æ£ãªãã¹ã¯ã¼ãã®å¤æ´ãé¿ããããã æ°ãããã¹ã¯ã¼ããè¨å®ããåã«ã ãã¨ã®ãã¹ã¯ã¼ããå ¥åããªããã°ãªãã¾ããã ã¹ã¼ãã¼ã¦ã¼ã¶ã®æ¨©éã§ã¦ã¼ã¶ã®ãã¹ã¯ã¼ãã夿´ããéã«ã¯ã ãã¨ã®ãã¹ã¯ã¼ããå ¥åããå¿ è¦ã¯ããã¾ããã -==== - -.èªåã®ãã¹ã¯ã¼ãã®å¤æ´ -[example] -==== - -[source,shell] -.... -% passwd -Changing local password for jru. -Old password: -New password: -Retype new password: -passwd: updating the database... -passwd: done -.... - -==== - -.ã¹ã¼ãã¼ã¦ã¼ã¶æ¨©éã§ã®ä»ã®ã¦ã¼ã¶ã®ãã¹ã¯ã¼ã夿´ -[example] -==== - -[source,shell] -.... -# passwd jru -Changing local password for jru. -New password: -Retype new password: -passwd: updating the database... -passwd: done -.... - -==== - -[NOTE] -==== -man:chpass[1] åæ§ãman:yppasswd[1] ã¯ã man:passwd[1] ã¸ã®ãªã³ã¯ã«ãªã£ã¦ãã¾ãã®ã§ã NIS ã¯ã©ã¡ãã®ã³ãã³ãã§ãåä½ãã¾ãã -==== - -[[users-pw]] -=== `pw` - -man:pw[8] ã¯ãã¦ã¼ã¶ãã°ã«ã¼ãã®ä½æãåé¤ã 夿´ããã³è¡¨ç¤ºãè¡ãªãã³ãã³ãã©ã¤ã³ã®ã¦ã¼ãã£ãªãã£ã§ãã ããã¯ãã·ã¹ãã ã¦ã¼ã¶ãã¡ã¤ã«ãã·ã¹ãã ã°ã«ã¼ããã¡ã¤ã«ã® ããã³ãã¨ã³ãã¨ãã¦åãã¾ããman:pw[8] ã¯ã¨ã¦ãå¼·åãªä¸é£ã®ã³ãã³ãã©ã¤ã³ãªãã·ã§ã³ãæãã¦ããã ã·ã§ã«ã¹ã¯ãªããã§ä½¿ãã®ã«åãã¦ãã¾ãããæ°ããã¦ã¼ã¶ã¯ã ãã®ç« ã§ç´¹ä»ããã¦ããä»ã®ã³ãã³ãã«æ¯ã¹ã¦é£ããã¨æããããããã¾ããã - -[[users-limiting]] -== ã¦ã¼ã¶ã¸ã®å¶é - -FreeBSD ã¯ã åã ã®ã¦ã¼ã¶ãå©ç¨ã§ããã·ã¹ãã è³æºã®éã管çè ãå¶éã§ããæ¹æ³ãããã¤ãç¨æãã¦ãã¾ãã ãã®ç¨®ã®å¶éã¯ããã£ã¹ã¯ã¯ã©ã¼ã¿ (quota) ã¨ãã®ä»ã®è³æºã®å¶éã® 2 ã¤ã®ç« ã§èª¬æãã¾ãã - -ãã£ã¹ã¯ã¯ã©ã¼ã¿ã¯ãã¦ã¼ã¶ãå©ç¨ã§ãããã£ã¹ã¯å®¹éãå¶éãã ãã®é½åº¦è¨ç®ããªãã¦ããã£ã¹ã¯ä½¿ç¨éãç°¡åã«ç¢ºèªã§ããææ®µãæä¾ãã¦ãã¾ãã ã¯ã©ã¼ã¿ã«ã¤ãã¦ã¯ãcrossref:disks[quotas,ããã¡ã¤ã«ã·ã¹ãã ã¯ã©ã¼ã¿ã] ã§è§£èª¬ãã¦ãã¾ãã - -ãã®ä»ã®ãªã½ã¼ã¹ã®å¶éã¨ã¯ãã¦ã¼ã¶ãæ¶è²»ã§ãã CPUãã¡ã¢ãªãªã©ã®ãªã½ã¼ã¹ãå¶éããææ®µã®ãã¨ã§ãã ããã¯ãã°ã¤ã³ã¯ã©ã¹ãç¨ãã¦å®ç¾©ããã¦ãããã®ã§ã ãã®å¾ã§è§£èª¬ãã¦ãã¾ãã - -ãã°ã¤ã³ã¯ã©ã¹ã¯ [.filename]#/etc/login.conf# ã§å®ç¾©ãã¾ãã詳細ãªèª¬æã¯ man:login.conf[5] ã«è©³ããè¨è¼ããã¦ãã¾ãã åã¦ã¼ã¶ã¢ã«ã¦ã³ãã«ã¯ãã°ã¤ã³ã¯ã©ã¹ãå²ãå½ã¦ããã¦ã㦠(ããã©ã«ãã§ã¯ `default` ã§ã)ã ããããã®ãã°ã¤ã³ã¯ã©ã¹ã«ã¯ãã°ã¤ã³ã±ã¼ãããªãã£ã®éåãå²ãå½ã¦ããã¦ãã¾ãã ãã°ã¤ã³ã±ã¼ãããªãã£ã¨ã¯ã `åç§°=å¤` ã®çµã®ãã¨ã§ã_åç§°_ ã¯å¨ç¥ã®èå¥åã_å¤_ ã¯ã_åç§°_ ã«å¿ãã¦å¦çãããä»»æã®æååã§ãã ãã°ã¤ã³ã¯ã©ã¹ã¨ã±ã¼ãããªãã£ãè¨å®ããã®ã¯ã©ã¡ããã¨ããã°ç°¡åãªãã¨ã§ã man:login.conf[5] ã§ã説æããã¦ãã¾ãã - -[NOTE] -==== -FreeBSD ã¯é常ãç´æ¥ [.filename]#/etc/login.conf# ããè¨å®ãèªã¿è¾¼ã¾ãã ããéãæ¤ç´¢ã§ãã [.filename]#/etc/login.conf.db# ãã¼ã¿ãã¼ã¹ããèªã¿è¾¼ã¿ã¾ãã[.filename]#/etc/login.conf# ãç·¨éããæã«ã¯ [.filename]#/etc/login.conf.db# ãæ¬¡ã®ã³ãã³ããå®è¡ãã¦ã¢ãããã¼ãããå¿ è¦ãããã¾ãã - -[source,shell] -.... -# cap_mkdb /etc/login.conf -.... - -==== - -ãªã½ã¼ã¹ã®å¶éã¯ã 2 ã¤ã®ç¹ã§æ¨æºçãªãã°ã¤ã³ã±ã¼ãããªãã£ã¨ç°ãªã£ã¦ãã¾ãã 第ä¸ã«ãã©ã®å¶éã«ã¤ãã¦ããã½ãã (ç¾å¨ã®) ãªãããã¨ãã¼ããªããããããã¾ãã ã½ãããªãããã¯ãã¦ã¼ã¶ãã¢ããªã±ã¼ã·ã§ã³ã調æ´ã§ãã¾ããã ãã¼ããªããããè¶ ãããã¨ã¯ã§ãã¾ããã ã¦ã¼ã¶ã¯ãã¼ããªããããä¸ãããã¨ã¯ã§ãã¾ããã ä¸ãããã¨ã¯ã¹ã¼ãã¦ã¼ã¶ã®ã¿ãã§ãã¾ãã 第äºã«ãã»ã¨ãã©ã®ãªã½ã¼ã¹ã®å¶éã¯ç¹å®ã®ã¦ã¼ã¶ã«å¯¾ãã¦ããã»ã¹æ¯ã«é©ç¨ããããã®ã§ã ãã®ã¦ã¼ã¶ãå©ç¨ãããªã½ã¼ã¹ã®ç·éãå¶éãããã®ã§ã¯ããã¾ããã ãã ãããã®éãã¯å¶éãç¹å¥æ±ãããã ã¨ã§å®ç¾ããããã®ã§ããã ãã°ã¤ã³ã±ã¼ãããªãã£ãã¬ã¼ã ã¯ã¼ã¯ã®å®è£ ã«ãããã®ã§ã¯ããã¾ããã - -以ä¸ãæããã使ããããªã½ã¼ã¹ã®å¶éã«ãªãã¾ãã æ®ãã¯ãä»ã®ãã¹ã¦ã®ãã°ã¤ã³ã±ã¼ãããªãã£ã¨ä¸¦ãã§ man:login.conf[5] ã«æ¸ããã¦ãã¾ãã - -`coredumpsize`:: -ããã°ã©ã ãçæãã core ãã¡ã¤ã«ã®ãµã¤ãºã«ãããå¶éã¯ã `filesize` ããã£ã¹ã¯ã¯ã©ã¼ã¿ãªã©ã®ã ã»ãã®ãã£ã¹ã¯ä½¿ç¨ã«é¢ããå¶éã«å¾å±ãã¾ãã ãã®å¶éã¯ããã£ã¹ã¯é åã®æ¶è²»ãå¶å¾¡ãããã¾ãå³ãããªãææ®µã¨ãã¦ãã使ããã¦ãã¾ãã ã¦ã¼ã¶ã¯ core ãã¡ã¤ã«ãèªåã§çæããããã§ã¯ãªãã åé¤ããªããã¨ãå¤ãã®ã§ã ãããè¨å®ããã°å¤§ããªããã°ã©ã ãç°å¸¸çµäºãã¦ããã£ã¹ã¯ã®ç©ºãããªããªããã«æ¸ã¿ã¾ãã - -`cputime`:: -ãã®ã¦ã¼ã¶ã®ããã»ã¹ãæ¶è²»ã§ãã CPU æé ã®ä¸éã§ãã ãããè¶ ããããã»ã¹ã¯ãã«ã¼ãã«ã«ããçµäºããã¾ãã -+ - -[NOTE] -==== -ããã¯ãæ¶è²»ããã CPU _æé_ ã«ã¤ãã¦ã®å¶éã§ãã£ã¦ãman:top[1] ã man:ps[1] ã®ãã£ã¼ã«ãã§è¡¨ç¤ºããã CPU ã®å²åã«é¢ãããã®ã§ã¯ããã¾ããã -==== - -`filesize`:: -ã¦ã¼ã¶ãææã§ãããã¡ã¤ã«ã®å¤§ããã®ä¸éã§ããcrossref:disks[quotas,ãã£ã¹ã¯ã¯ã©ã¼ã¿] ã¨éãã ãã®å¶éã¯ã¦ã¼ã¶ã®ãã¡ã¤ã«ããã¹ã¦ã¾ã¨ããéåã«ã§ã¯ãªãã åã ã®ãã¡ã¤ã«ã«ãããã¾ãã - -`maxproc`:: -ã¦ã¼ã¶ãå®è¡ã§ããããã»ã¹æ°ã®ä¸éã§ãã ãã©ã¢ã°ã©ã¦ã³ãããã»ã¹ã¨ããã¯ã°ã©ã¦ã³ãããã»ã¹ã®ä¸¡æ¹ãæ±ãã¾ãã ãã®ä¸éã¯ãman:sysctl[8] 夿° `kern.maxproc` ã§æå®ãããã·ã¹ãã ã®å¶éãè¶ ãããã¨ã¯ã§ãã¾ããã åæã«è¤æ°ãã°ã¤ã³ãããã¨ãã ãã¤ãã©ã¤ã³å®è¡ãããã¨ã¯ä¾¿å©ãªãã¨ãå¤ãã®ã§ã ãã®å¤ããã¾ãå°ããªå¤ã«è¨å®ããã¨ã ãã®ã¦ã¼ã¶ã®çç£æ§ãæªåããå¯è½æ§ãããã¾ãã 大ããªããã°ã©ã ãã³ã³ãã¤ã«ããå ´åã®ããã«ã ã¿ã¹ã¯ã«ãã£ã¦ã¯è¤æ°ã®ããã»ã¹ãããªããã»ããµãå®è¡ããã¾ãã - -`memorylocked`:: -ããã¯ã1 ã¤ã®ããã»ã¹ã man:mlock[2] ã«ããã¡ã¤ã³ã¡ã¢ãªã«ããã¯ããããã¨ãè¦æ±ã§ããã¡ã¢ãªã®æå¤§å®¹éã§ãã man:amd[8] ã®ãããªã·ã¹ãã ã§éè¦ãªããã°ã©ã ã¯ã ã¡ã¤ã³ã¡ã¢ãªã¸ããã¯ãã¦ãã·ã¹ãã ãã¹ã¯ããããéã«ã ãã£ã¹ã¯ã®ã¹ã©ãã·ã³ã°ãå¼ãèµ·ãããªãããã«ãã¾ãã - -`memoryuse`:: -ããã¯ãã©ã®æç¹ããåããã ããããã»ã¹ãæ¶è²»ã§ããæå¤§ã®ã¡ã¢ãªå®¹éã§ãã ããã¯ãã¡ã¤ã³ã¡ã¢ãªã¨ã¹ã¯ããã®ä½¿ç¨éãåããããã®ã§ãã ã¡ã¢ãªæ¶è²»ãæããããã®å æ¬çãªå¶éã§ã¯ããã¾ãããã æå§ãã«ã¯ããã§ãããã - -`openfiles`:: -ããã¯ãããããã»ã¹ãéãã¦ãããæå¤§ã®ãã¡ã¤ã«æ°ã§ãã FreeBSD ã§ã¯ããã¡ã¤ã«ã¯ã¾ããã½ã±ããã IPC ãã£ã³ãã«ã表ããã®ã«ã使ããã¦ãã¾ãã ã§ãããããã¾ãä½ãå¤ã«è¨å®ããªãããæ³¨æãã¦ãã ããã ããã«å¯¾å¿ããã·ã¹ãã å ¨ä½ã®å¶é㯠man:sysctl[8] `kern.maxfiles` ã§å®ç¾©ããã¦ãã¾ãã - -`sbsize`:: -ããã¯ãããã¦ã¼ã¶ãæ¶è²»ã§ãããããã¯ã¼ã¯ã¡ã¢ãª (ã¤ã¾ã mbuf) ã®ä¸éã®éã§ããã¦ã¼ã¶ã¯ã ãããã¯ã¼ã¯éä¿¡ãå¶éããã®ã«ä½¿ãã¾ãã - -`stacksize`:: -ããã¯ãããã»ã¹ã®ã¹ã¿ãã¯ãµã¤ãºã®ä¸éã§ãã ããããã°ã©ã ã使ç¨ãããã¡ã¢ãªã®éãå¶éããã«ã¯ã ããã ãã§ã¯ååã§ã¯ããã¾ããã ãããã£ã¦ãä»ã®å¶éã¨çµã¿åããã¦ä½¿ããªããã°ãªãã¾ããã - -ãªã½ã¼ã¹ã®å¶éãè¨å®ããã«ãããã ã»ãã«ãããã¤ãè¦ãã¦ãããªããã°ãªããªããã¨ãããã¾ãã 以ä¸ã¯ãä¸è¬çãªãã¤ããå§ãããã¾ãã¾ãªã³ã¡ã³ãã«ãªãã¾ãã - -* ã·ã¹ãã èµ·åæã« [.filename]#/etc/rc# ããèµ·åãããããã»ã¹ã¯ã`daemon` ãã°ã¤ã³ã¯ã©ã¹ã«å²ãå½ã¦ããã¾ãã -* ã·ã¹ãã ã«ä»å±ãã¦ãã [.filename]#/etc/login.conf# ã¯ã»ã¨ãã©ã®å¶éã«ã¤ãã¦å¦¥å½ãªå¤ã«ãªã£ã¦ãã¾ããã ãã¹ã¦ã®ã·ã¹ãã ã«ããã¦ãµããããã¨ããããã§ã¯ããã¾ããã å¶éããã¾ãç·©ãããã¨ã·ã¹ãã ãæªç¨ãããããã¦ãã¾ãã¾ããã å³ããããããã¨çç£æ§ãæªåããã¦ãã¾ãã¾ãã -* Xorg ã®ã¦ã¼ã¶ã«ã¯ã ä»ã®ã¦ã¼ã¶ããå¤ãã®ãªã½ã¼ã¹ãä¸ããã¹ãããããã¾ããã Xorg ãã®ãã®ãå¤ãã®ãªã½ã¼ã¹ã使ãã ãã§ãªãã ããå¤ãã®ããã°ã©ã ã並è¡ãã¦ä½¿ããã¨ãã¦ã¼ã¶ã«ä¿ãã¾ãã -* å¤ãã®å¶éã¯åã ã®ããã»ã¹ã«ããããã®ã§ã ä¸äººã®ã¦ã¼ã¶ã«ã¾ã¨ãã¦ããããã®ã§ã¯ããã¾ããã ä¾ãã°ã`openfiles` ã 50 ã«è¨å®ãããã¨ã¯ã ã¦ã¼ã¶ãåããããããã®ããã»ã¹ãæå¤§ 50 åã®ãã¡ã¤ã«ãéããã¨ãããã¨ã§ãã ããã¦ã¼ã¶ãéãããã¡ã¤ã«ã®ç·æ°ã¯ã `openfiles` ã®å¤ã« `maxproc` ãããããã®ã«ãªãã¾ãã åããã¨ãã¡ã¢ãªæ¶è²»éã«ããã¦ã¯ã¾ãã¾ãã - -ãªã½ã¼ã¹ã®å¶éã¨ããã°ã¤ã³ã¯ã©ã¹ã ãã°ã¤ã³ã±ã¼ãããªãã£ä¸è¬ã«ã¤ãã¦ã®è©³ããæ å ±ã¯ã man:cap.mkdb[1], man:getrlimit[2] ããã³ man:login.conf[5] ãã覧ãã ããã - -[[users-groups]] -== ã°ã«ã¼ãã®ç®¡ç - -ã°ã«ã¼ãã¨ã¯ãã¦ã¼ã¶ãç¾ åãããã®ã§ãã ã°ã«ã¼ãã¯ãã°ã«ã¼ãå㨠GID ã§èå¥ããã¾ãã FreeBSD ã§ã¯ã ããããã»ã¹ãä½ãããã®ã許å¯ãããã©ãããã«ã¼ãã«ã夿ããéã«ã ããã»ã¹ã® UID ã¨ãã®ã¦ã¼ã¶ãæå±ããã°ã«ã¼ãã®ä¸è¦§ãå©ç¨ãã¾ãã ã»ã¨ãã©ã®å ´åãã¦ã¼ã¶ãããã¯ããã»ã¹ã® GID ã¯ä¸è¦§ã®æåã®ã°ã«ã¼ããæãã¦ãã¾ãã - -ã°ã«ã¼ãåãã GID ã¸ã®åå㯠[.filename]#/etc/group# ã«ããã¾ãã ããã¯ãã³ãã³ã§åºåããã 4 é ç®ãããªãããã¹ããã¡ã¤ã«ã§ãã 1 çªç®ã®é ç®ã¯ã°ã«ã¼ãåã 2 çªç®ã¯æå·åããããã¹ã¯ã¼ãã 3 çªç®ã GIDã 4 çªç®ãã«ã³ãã§åºåãããã¡ã³ãã®ä¸è¦§ã§ãã ææ³ã«ã¤ãã¦ã®å®å ¨ãªèª¬æã¯ãman:group[5] ãã覧ãã ããã - -ã¹ã¼ãã¼ã¦ã¼ã¶ã¯ã[.filename]#/etc/group# ãããã¹ãã¨ãã£ã¿ã§ç·¨éã§ãã¾ãã ãããã¯ãman:pw[8] ã使ã£ã¦ã°ã«ã¼ãã®è¿½å ãç·¨éãã§ãã¾ãã ãã¨ãã°ã`teamtwo` ã¨ããã°ã«ã¼ãã追å ãã¦ããã®åå¨ã確èªããã«ã¯ã 次ã®ããã«ä½¿ãã¾ãã - -.man:pw[8] ã«ããã°ã«ã¼ãã®è¿½å -[example] -==== - -[source,shell] -.... -# pw groupadd teamtwo -# pw groupshow teamtwo -teamtwo:*:1100: -.... - -==== - -ãã®ä¾ã§ã¯ã`1100` ã¨ããçªå·ã¯ã `teamtwo` ã® GID ã§ãã ãã®æç¹ã§ã¯ã`teamtwo` ã«ã¡ã³ãã¯ãã¾ããã 以ä¸ã®ã³ãã³ãã¯ã `jru` ã `teamtwo` ã®ã¡ã³ãã«è¿½å ãã¾ãã - -.man:pw[8] ã«ããæ°ããã°ã«ã¼ãã«ã¡ã³ãã追å ãã -[example] -==== - -[source,shell] -.... -# pw groupmod teamtwo -M jru -# pw groupshow teamtwo -teamtwo:*:1100:jru -.... - -==== - -`-M` ã®å¼æ°ã¯ã ã«ã³ãã§åºåãããæ°ãã (空ã®) ã°ã«ã¼ãã«è¿½å ãããããã¯åå¨ããã°ã«ã¼ãã®ã¡ã³ããç½®ãæããã¦ã¼ã¶ã®ä¸è¦§ã§ãã ã¦ã¼ã¶ã«ã¨ã£ã¦ã¯ããã®ã°ã«ã¼ãã®ã¡ã³ãã¼ã·ããã¯ãã¹ã¯ã¼ããã¡ã¤ã«ã«è¨è¼ããã¦ãããã©ã¤ããªã®ã°ã«ã¼ãã¨ã¯ç°ãªãã¾ãã man:pw[8] ã® `groupshow` ã³ãã³ãã使ã£ãæã¯ã ãã®ã¦ã¼ã¶ã¯ã°ã«ã¼ãã®ä¸å¡ã¨ãã¦è¡¨ç¤ºããã¾ããããman:id[1] ãªã©ã®ãã¼ã«ã使ã£ã¦æ å ±ãåãåãããã°ã ãã®æ å ±ãå¼ãåºãã¾ããã¦ã¼ã¶ãã°ã«ã¼ãã«è¿½å ãããéã«ãman:pw[8] 㯠[.filename]#/etc/group# ããæ±ããã [.filename]#/etc/passwd# ãã追å ã®ãã¼ã¿ãèªãã ãã¯ãã¾ããã - -.man:pw[8] ã«ããã°ã«ã¼ãã¸ã®ã¦ã¼ã¶è¿½å -[example] -==== - -[source,shell] -.... -# pw groupmod teamtwo -m db -# pw groupshow teamtwo -teamtwo:*:1100:jru,db -.... - -==== - -ãã®ä¾ã§ã¯ã`-m` ã®å¼æ°ã¯ã ã«ã³ãã§åºåãããã°ã«ã¼ãã«è¿½å ããã¦ã¼ã¶ã®ä¸è¦§ã§ãã åã®ä¾ã¨ç°ãªãããããã®ã¦ã¼ã¶ã¯ã°ã«ã¼ãä¸è¦§ã«è¿½å ããã ã°ã«ã¼ãã®ã¦ã¼ã¶ä¸è¦§ãç½®ãæãããã¨ã¯ããã¾ããã - -.ã°ã«ã¼ãã«æå±ãã¦ããã¦ã¼ã¶ã調ã¹ãããã® man:id[1] ã®ä½¿ãæ¹ -[example] -==== - -[source,shell] -.... -% id jru -uid=1001(jru) gid=1001(jru) groups=1001(jru), 1100(teamtwo) -.... - -==== - -ãã®ä¾ã§ã¯ã`jru` 㯠`jru` ã°ã«ã¼ã㨠`teamtwo` ã°ã«ã¼ãã®ã¡ã³ãã§ãã - -ãã®ã³ãã³ãã [.filename]#/etc/group# ã®ãã©ã¼ãããã®è©³ç´°ã«ã¤ãã¦ã¯ã man:pw[8] ããã³ man:group[5] ãã覧ãã ããã