User added by shell is gone when restarted

chocobo01

Dabbler
Joined
Feb 2, 2021
Messages
15
Hello I'm trying to make a samba server with TrueNAS, I typed at the shell the command
Code:
adduser myusername
smbpasswd -a myusername

But when I restarted my system I can't access my samba server with my user again, I have to manually add that everytime it turned on.
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
This is by design. Please create the user via the web GUI.
 

chocobo01

Dabbler
Joined
Feb 2, 2021
Messages
15
and what about the samba password? Is there any gui for it?
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Navigate to Accounts->Users. You will create a user using the Add button.

1612316495983.png


In the user options, set the password, and check the Microsoft Account box to designate this as a Samba account. For the Shell, set /nologin so this account only works with Samba shares. If this will be a SMB account for home directories, set the Home Directory path to the dataset where your home shares will reside.
 

chocobo01

Dabbler
Joined
Feb 2, 2021
Messages
15
ok thanks, I will try later
 
Top