如何在Linux系統(tǒng)中新建跟刪除賬號(hào),以下以紅帽的Fedora25系統(tǒng)為例,向大家詳細(xì)介紹。
1、使用超級(jí)帳號(hào)即root賬號(hào)登陸終端(terminal)。

2、在Linux中新建賬號(hào)有兩種:普通用戶賬號(hào)和系統(tǒng)賬號(hào)。
新建普通用戶賬號(hào)test命令:#useradd test
新建系統(tǒng)賬號(hào)test1命令:#useradd -r test1


3、普通用戶賬號(hào)默認(rèn)包含有home目錄,而系統(tǒng)賬號(hào)不包含有home目錄。
可以通過(guò)以下命令查看:
#ll -d /home/test
#ll -d /home/test1

4、為普通用戶賬號(hào)test和系統(tǒng)賬號(hào)test1設(shè)置密碼:#passwd test#passwd test1
5、刪除普通用戶賬號(hào)test和系統(tǒng)賬號(hào)test1:
#userdel -r test (參數(shù)-r表示連同home目錄一起刪除)
#userdel test1


相關(guān)推薦:
fedora21系統(tǒng)怎么把英語(yǔ)改變中文?
Fedora系統(tǒng)怎么設(shè)置常用命令的快捷鍵?
Fedora怎么把home下文件夾名改成英文?