Linuxでのuseraddとadduserの違い



Difference Between Useradd



useraddコマンドとadduserコマンドは、Linuxでユーザーを作成するときに使用されます。違いは次のとおりです。
1. useraddを使用するときに、パラメータオプションを追加しない場合、次に例を示します。#sudo useradd testは、デフォルトのユーザー「three no」を作成します。ホームディレクトリ、パスワード、システムシェルはありません。
2. adduserを使用する場合、ユーザーを作成するプロセスは人間と機械の対話のようなものであり、システムはさまざまな情報の入力を求め、この情報に基づいて新しいユーザーを作成するのに役立ちます。

Adduser will prompt for a password, and useradd will not. Adduser will create a user directory, such as /home/freebird freebird is the user, useradd will not Dduser will create a user directory, such as /home/freebird freebird is the user, useradd will not Adduser will ask for the full name, room number, phone number and other user information, useradd will not

Linuxでは、面倒なパラメータオプションを覚えておく必要がないため、adduserは初心者に適しています。システムプロンプトに従って、ステップバイステップで実行してください。欠点は、作成プロセス全体がより複雑で長く、useraddが一部の高レベルのエクスペリエンスに適していることです。多くの場合、単一のコマンドとパラメーターを使用するユーザーは、多くの問題を解決できるため、作成すると非常に便利です。

著者:ScutEthan
出典:CSDN
元の: https://blog.csdn.net/u011499425/article/details/52397014
著作権表示:この記事はブロガーのオリジナル記事です。ブログ投稿リンクを添付してください。