#
Users & Groups
We create a new user who adds and organizes the media on our server. Because we need the group for the user configuration, we will first create the group and then the user.
Technically yes, but it's highly recommended to create a dedicated user for that. For best practice, you should always follow PoLP (Principle of Least Privilege): The principle means giving any users or processes only those privileges which are essentially vital to perform its intended functions.
Also note that TrueNAS does not allow the root/admin user to authenticate against Samba by default. If you really need that, you have to give the permission manually.
#
Groups
Create a new group media-writer
. This group will be given permission to add new media files to our storage.
Wherever possible, use group permissions instead of user permissions, as you will be more flexible when the requirements change in the future.
Go to Credentials -> Local Groups -> Add and create the new group as followed.
#
Users
Create a new user crawler
. This user will access the storage via an SMB share and add new media. Go to
Credentials
->
Local Users
->
Add
and create the user.
Idenfitication
Full Name:
crawler
Username:
crawler
Password:
************
Confirm Password:
************
User ID and Groups
Create New Primary Group:
Disable
Primary Group:
media-writer
Because of the primary group, the owner will be
media-writer
by default for all files/folders created by this user.