Files
aquar-build-helper/details/truenas下配置用户及权限.md
2024-04-03 12:20:38 +08:00

17 lines
1.1 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
truenas下配置用户及权限
1.在TureNAS Web页面的Accounts->users页面中点击ADD创建aquar用户指定uid=1000并勾选New Primary Group这样一来他的gid也是1000这样会天然对应上ubuntu环境下的第一个用户从而解决NFS的用户权限问题。
![9f2f8d15a5de142b7f850b470c28cf92.png](../_resources/2a0a3ba374b84fccbf463341b1299b04.png)
2.在下面的设置中在存储池中新建一个aquar目录作为aquar的家目录可以在TrueNAS的Shell页面中`mkdir /mnt/aquarpool/aquar`目录权限勾选如下图所示并勾选Samba Authentication选项。
![f01f2a2d36e745f4a5c50632d4ee83ef.png](../_resources/f01f2a2d36e745f4a5c50632d4ee83ef.png)
3.设置nfs共享选项的高级映射所有用户到aquar用户详见[NFS设置章节](./TrueNAS下的NFS服务配置.md)
4.在truenas的终端中chown -R aquar:aquar /mnt/aquarpool
~~5.把aquar用户添加到gid=666组中与webdav用户同组~~
~~6.设置webdav共享目录权限为775实验后发现不行所以目前webdav目录的所有者必需是webdav用户~~