アカウント作成オプションを使用すると、どういう意味があるのか疑問に思います-r
。
# useradd -r ...
ヘルプは次のように言います。
-r, --system
Create a system account.
System users will be created with no aging information in /etc/shadow, and their
numeric identifiers are chosen in the SYS_UID_MIN-SYS_UID_MAX range, defined in
/etc/login.defs, instead of UID_MIN-UID_MAX (and their GID counterparts for the
creation of groups).
Note that useradd will not create a home directory for such an user, regardless
of the default setting in /etc/login.defs (CREATE_HOME). You have to specify the
-m options if you want a home directory for a system account to be created.
しかし、より低い値を割り当てることに加えて、UID、ジドそしてグループ。
質問1 どのファイルが影響を受けますか?
質問2 このタイプのシステムアカウントにはどのような追加機能がありますか?
質問3 コミットを無視または停止する動作は何ですか?
質問4 「-r」オプションを使用して作成されたアカウントを、そのオプションなしで作成されたアカウントに変更できますか?
ベストアンサー1
現在を見るとuseraddソース-r
、指定すると、正確に何が変わるかを確認できます。
- スレーブuid/gid機能が無効
- メールディレクトリが作成されませんでした。
したがって、通常のユーザーアカウントと大きな違いはありません。パフォーマンスには自動利得や損失はありません。 Q1とQ3が何を意味するのかよくわかりません。技術的にはそうです。ただし、これにはユーザーIDの変更が含まれるため、古いUIDが所有するすべてのファイルはchown
新しいファイルに変更する必要があります。