25 lines
269 B
Markdown
25 lines
269 B
Markdown
# user
|
|
|
|
|
|
## create user
|
|
|
|
```bash
|
|
useradd git
|
|
|
|
# 制定用户默认的shell
|
|
chsh git -s /bin/bash
|
|
|
|
|
|
# 更改权限
|
|
chown -R git:git /home/git
|
|
```
|
|
|
|
|
|
|
|
## auth
|
|
|
|
```bash
|
|
## 只修改文件权限 -type d 为修改目录权限
|
|
find workspace -type f -exec chmod 644 {} \;
|
|
```
|