Linux redhat目录下用户管理
生活随笔
收集整理的這篇文章主要介紹了
Linux redhat目录下用户管理
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1.添加用戶
useradd username(添加一個以username為用戶名的用戶)
passwd username(指定給username添加密碼)
例如:
[root@localhost ~]#?useradd test ? ? ? ? ? ? ? ? ?
[root@localhost ~]# passwd test
Changing password for user test.
New password:?
BAD PASSWORD: it is too simplistic/systematic
BAD PASSWORD: is too simple
Retype new password:?
passwd: all authentication tokens updated successfully.
[root@localhost ~]#
接著是兩次密碼輸入。
2.刪除用戶
userdel username(刪除username)
3.刪除用戶以及用戶主目錄
userdel -r username
4.從root用戶中退出的方式:logout
5.登錄某個用:login,接著是輸入用戶
?
總結
以上是生活随笔為你收集整理的Linux redhat目录下用户管理的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 百行征信可以冻结我的银行卡吗
- 下一篇: Linux RedHat下安装eclip