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?

【Virtualbox】ユーザの作成

Posted at

1.目的

管理ユーザと一般ユーザを分け、セキュリティリスクを抑えるために、一般ユーザを作成する。

2.前提

PC:Windows11
Virtualbox:Virtualbox 7.1.4
OS:Centos Stream release 10
管理者ユーザ:root
作業用ユーザ:user

3.作業

①前回起動したCentosにログインする。
②ユーザ一覧を表示させる

cut -d: -f1 /etc/passwd

③ユーザの作成

sudo useradd username

④ユーザへのパスワード付与

sudo passwd username

プロンプトが表示されるため2回パスワードを入力する。
⑤ユーザの作成確認

cat /etc/passwd | grep username

4.最後に

最後までお読みいただきありがとうございます。
来週は、作成したサーバにwebサーバとしての機能を追加していこうとおもいまs。
では、また来週^^

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?