0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Linux(主にAWS)でのユーザー追加方法

Posted at

ユーザーの追加とSSHの認証用の鍵を生成する。

# useradd ユーザー名 
# su - ユーザー名
$ ssh-keygen -t rsa

sudoをパスワード無しで利用するためvisudoで下記のコメントアウトを外す。

%wheel  ALL=(ALL)       NOPASSWD: ALL

対象ユーザーをwheelグループに追加する。

usermod -aG wheel ユーザー名

所属グループを確認する。

groups

下記は単体ユーザーを設定するやり方。
sudoを使用する場合はvisudoでユーザーを追加する。

# Allow root to run any commands anywhere
ユーザー名 ALL=(ALL) NOPASSWD:ALL
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?