add new chinese translations

This commit is contained in:
2024-12-30 15:25:56 +08:00
parent a850046d7b
commit 0d798759fd
5418 changed files with 105800 additions and 7052 deletions

24
pages.zh/linux/runuser.md Normal file
View File

@@ -0,0 +1,24 @@
# runuser
> 以不同用户和组的身份运行命令无需输入密码需要root权限
> 更多信息:<https://manned.org/runuser>。
- 以不同用户身份运行命令:
`runuser {{user}} -c '{{command}}'`
- 以不同用户和组身份运行命令:
`runuser {{user}} -g {{group}} -c '{{command}}'`
- 以特定用户身份启动登录shell
`runuser {{user}} -l`
- 指定一个shell来运行而不是默认的shell也适用于登录
`runuser {{user}} -s {{/bin/sh}}`
- 保留root的整个环境仅在未指定`--login`时):
`runuser {{user}} --preserve-environment -c '{{command}}'`