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 1 year has passed since last update.

ubuntu(virtual box)でユーザーにsudo権限を付与してみた

Last updated at Posted at 2023-09-13

参照サイト
https://www.server-memo.net/ubuntu/ubuntu_add_sudo.html#:~:text=sudo%E3%82%B0%E3%83%AB%E3%83%BC%E3%83%97%E3%81%ABsudo%E3%82%92,%E3%82%B0%E3%83%AB%E3%83%BC%E3%83%97%E3%81%AB%E8%BF%BD%E5%8A%A0%E3%81%97%E3%81%BE%E3%81%99%E3%80%82

ユーザーを追加する

terminal
adduser user

sudoグループに追加する

terminal
gpasswd -a user sudo

設定を確認する

terminal
cat /etc/group | grep sudo
  • sudoにユーザーが追加されている
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?