Password change

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
Interesting question... probably related to this:

Code:
Warning: the supported mechanisms for making configuration changes
are the TrueNAS WebUI and API exclusively. ALL OTHERS ARE
NOT SUPPORTED AND WILL RESULT IN UNDEFINED BEHAVIOR AND MAY
RESULT IN SYSTEM FAILURE.


From the CLI, a user can change their password with passwd, but as indicated above, that method isn't a supported one, and doesn't result in the required update of the config DB, so won't be effective after a reboot.

There's no clear path to doing that in the documentation in a way that the user can do it themselves, so maybe better to change to either a directory service (LDAP or Active Directory if you use SMB) or use key auth exclusively if you can get away with that and don't have user passwords.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
You may or may not be able to establish something, either via a direct command for the user(s) or via some kind of front-end that you would need to engineer (like a website or something that runs the command behind the scenes):

The api call: user.set_attribute would probably be the one.
 
Top