I am trying to change user password with script but I’m having trouble using the -t option. Here’s what I try:
echo -e "12345\n12345\n" | pdbedit -t -u username
So this is wrong somehow. Any ideas what I am missing or what should I try?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
does not appear to work either
According to http://git.samba.org/?p=samba.git;a=blob;f=source3/utils/pdbedit.c
the
--password-from-stdinparameter (pw_from_stdin) only affects account creation.Thus, you’ll rather prefer smbpasswd
( Piping password to smbpasswd )