From 14192cfa96826e220289f2011b7b13fa4ecf6fbe Mon Sep 17 00:00:00 2001 From: Lunatictwo Date: Wed, 8 Aug 2018 15:36:23 +0800 Subject: [PATCH] Update ansible-deployment.md `useradd` command By default, `useradd` will not create home dir for new user automatically, and `useradd` is a low level utility for adding users. Set -m and -d will create tidb dir. --- op-guide/ansible-deployment.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/op-guide/ansible-deployment.md b/op-guide/ansible-deployment.md index c9443922b566..817d38d01b96 100644 --- a/op-guide/ansible-deployment.md +++ b/op-guide/ansible-deployment.md @@ -61,7 +61,7 @@ Ansible 是一款自动化运维工具,[TiDB-Ansible](https://github.com/pingc 创建 `tidb` 用户 ``` -# useradd tidb +# useradd -m -d /home/tidb tidb ``` 设置 `tidb` 用户密码