Debian 11.2に管理者権限のユーザを追加する

2021年12月24日

1.OSの基本情報を確認します

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye
# lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 11 (bullseye) Release: 11 Codename: bullseye
# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 11 (bullseye)
Release:        11
Codename:       bullseye

2.管理者権限のユーザを追加します

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# adduser arkgame
Adding user `arkgame' ...
Adding new group `arkgame' (1002) ...
Adding new user `arkgame' (1002) with group `arkgame' ...
Creating home directory `/home/arkgame' ...
Copying files from `/etc/skel' ...
New password: #パスワードを入力
Retype new password: #確認パスワードを入力
Changing the user information for arkgame
Enter the new value, or press ENTER for the default
Full Name []: arkgame
Room Number []: 101
Work Phone []: 000
Home Phone []: arkgame.com
Other []: skill
Is the information correct? [Y/n] y
# adduser arkgame Adding user `arkgame' ... Adding new group `arkgame' (1002) ... Adding new user `arkgame' (1002) with group `arkgame' ... Creating home directory `/home/arkgame' ... Copying files from `/etc/skel' ... New password: #パスワードを入力 Retype new password: #確認パスワードを入力 Changing the user information for arkgame Enter the new value, or press ENTER for the default Full Name []: arkgame Room Number []: 101 Work Phone []: 000 Home Phone []: arkgame.com Other []: skill Is the information correct? [Y/n] y
# adduser arkgame
Adding user `arkgame' ...
Adding new group `arkgame' (1002) ...
Adding new user `arkgame' (1002) with group `arkgame' ...
Creating home directory `/home/arkgame' ...
Copying files from `/etc/skel' ...
New password:             #パスワードを入力
Retype new password:      #確認パスワードを入力
Changing the user information for arkgame
Enter the new value, or press ENTER for the default
        Full Name []: arkgame
        Room Number []: 101
        Work Phone []: 000
        Home Phone []: arkgame.com
        Other []: skill
Is the information correct? [Y/n] y

3.管理者権限付与は以下のようにグループ追加で行います。
書式
usermod -aG グループ名 ユーザ名
# usermod -aG sudo arkgame

Debian 11

Posted by arkgame