• Home
  • Blog
blog.shmn7iii.net
  • About
  • Links
  • 🔍
  • Home
  • Blog
  • About
  • Links
September 7th, 2021

CentOSでユーザー操作

CentOS

こんなんすぐ忘れるんでね!!

メモしときましょね!!!!!!

一覧表示

$ cat /etc/passwd

追加・削除

$ useradd [name] # -r でユーザーディレクトリも削除 $ userdel [name] -r

切り替え

$ su [name] # 環境ごと切り替え $ su - [name] # rootになる $ su -

参考

CentOSでユーザーの一覧を確認する - Qiita
CentOSでユーザ一覧を確認したいことあります。 ユーザ一覧を表示 catコマンドで/etc/passwdを見るとユーザーの一覧を表示できます。 ユーザー一覧を表示 cat /etc/passwd 略 pugiemonn:x:500:500::/home/pugi…
Favicon of the bookmark site
https://qiita.com
Site image of the bookmark
Userの追加・削除(CentOS) - Qiita
Userの追加・削除を行うためには管理者権限が必要なので、suコマンドでrootになってから始める。 Userの追加 useraddコマンドを使ってユーザーの追加。 $ useradd [username] # [username]は追加したいユーザー名 オプション…
Favicon of the bookmark site
https://qiita.com
Site image of the bookmark
【CentOS】ユーザーの切り替えを行う。
suコマンドにユーザー名を渡してやることでユーザーの切り替えが可能。 ■ユーザー切替を行い、切替後ユーザーの環…
Favicon of the bookmark site
http://note.onichannn.net
Site image of the bookmark
Powered by astro-notion-blog
GitHub
X
Wantedly