How can I, as a simple user, change my own password with one command (in one line) in FreeBSD. I tried using passwd --stdin
but that seems like it's a Linux command only.
Changing a password with one command in FreeBSD
5.4k Views Asked by Nickl At
2
Just type
passwd
and follow the prompts.Also
man 1 passwd
for documentation.Update with a copy of my comment, below, from September 2013:
The whole point about passwd is to make that hard for automated password changers to guess passwords. If you have a port like expect on the system you could script it. If you are root, you could use pw usermod username -h0. If you're just an ordinary user, just do it interactively.