LoginSignup
0
0

More than 5 years have passed since last update.

Centos7:user設定方法

Last updated at Posted at 2018-02-23

rootユーザーにスイッチ

登録作業はrootユーザーで行う

$ sudo su - root

ユーザー登録

ユーザーとパスワードを設定

# useradd study
# passwd study

wheelグループにユーザーを登録

# usermod -aG wheel study

ユーザーにsudo権限を持たせる

# visudo

~中略~


## Allow root to run any commands anywhere
root    ALL=(ALL)       ALL
study ALL=(ALL)         ALL ←この行を追加


~中略~

作成したユーザーにスイッチ

# su - study
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