# 使用者管理

### **如何建立使用者** <a href="#how-to-create-a-user" id="how-to-create-a-user"></a>

**使用adduser或useradd命令將新用戶添加到您的系統。**

```
$ sudo adduser username
```

```
sudo adduser user
正在新增使用者 `user' ...
增加新群組 `user' (1001) ...
正在新增新使用者 `user' (UID 1001) 到群組 `user' ...
正在新增家目錄 `/home/user' ...
正在從 `/etc/skel'複製檔案 ...
輸入新的 UNIX 密碼： 
再次輸入新的 UNIX 密碼： 
passwd：密碼已成功地變更
正在改變 user 的使用者訊息
請輸入新值，或直接按 ENTER 鍵以使用預設值
	全名 []: 測試使用者
	房間號碼 []: 
	工作電話 []: 
	住家電話 []: 
	其它 []: 測試用的使用者
chfn: name with non-ASCII characters: '測試使用者'
chfn: '測試用的使用者' contains non-ASCII characters
以上輸入的資料正確嗎？[Y/n] y

```

### 檢視設定：grep user /etc/passwd


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://kawsing.gitbook.io/opensystem/andoid-shou-ji/untitled-4/linux-cli/shi-yong-zhe-guan-li.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
