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

29
pages.zh/netbsd/chpass.md Normal file
View File

@@ -0,0 +1,29 @@
# chpass
> 添加或更改用户数据库信息,包括登录 shell 和密码。
> 另见:`passwd`。
> 更多信息:<https://man.netbsd.org/chsh>。
- 交互式地为当前用户设置特定的登录 shell
`su -c chpass`
- 为当前用户设置特定的登录 [s]hell
`chpass -s {{path/to/shell}}`
- 为特定用户设置登录 [s]hell
`chpass chsh -s {{path/to/shell}} {{username}}`
-`passwd` 文件格式中指定用户数据库条目:
`su -c 'chpass -a {{username:encrypted_password:uid:gid:...}} -s {{path/to/file}}' {{username}}`
- 仅更新 [l]ocal 密码文件:
`su -c 'chpass -l -s {{path/to/shell}}' {{username}}`
- 强制更改数据库 [y]P 密码数据库条目:
`su -c 'chpass -y -s {{path/to/shell}}' {{username}}`