filebrowser 支持多用户,直接使用 filebrowser 默认情况只有个admin用户。 密码也是admin
查看当前的用户
filebrowser users ls ID Username Scope Locale V. Mode Admin Execute Create Rename Modify Delete Share Download Pwd Lock 1 admin . en mosaic true true true true true true true true false
用户管理的帮助信息
filebrowser users help Users management utility. Usage: filebrowser users [command] Available Commands: add Create a new user export Export all users to a file. find Find a user by username or id import Import users from a file ls List all users. rm Delete a user by username or id update Updates an existing user Flags: -h, --help help for users Global Flags: -c, --config string config file path -d, --database string database path (default "./filebrowser.db") Use "filebrowser users [command] --help" for more information about a command.
添加一个用户
filebrowser users add zhansan 123456 添加一个用户zhangsan 密码是 123456
filebrowser users add zhangsan 123456 ID Username Scope Locale V. Mode Admin Execute Create Rename Modify Delete Share Download Pwd Lock 2 zhansan . en mosaic false true true true true true true true false
修改用户名和密码
filebrowser users update zhangsan --username lisi --password 666 ID Username Scope Locale V. Mode Admin Execute Create Rename Modify Delete Share Download Pwd Lock 2 lishi . en mosaic false true true true true true true true false
删除用户
[root@ filebrowser.cn]$filebrowser users rm lisi user deleted successfully
Was this helpful?
5 / 4