# 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.

Read more
https://en.wikipedia.org/wiki/Principle_of_least_privilege

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.

Go to Credentials -> Local Groups -> Add and create the new group as followed.

Settings

Group Configuration
Name: media-writer


# 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.

Settings

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.