Hi,
I 'd like add a user on multiple servers and automatize password's prompt.
I have tried this command to pass the password through the pipe but that isn't word with passwd.
Someone know who automatize this step ?
Thank you.
(Openserver 6.0)
Last edited by rbatte1; 06-08-2017 at 04:03 AM..
Reason: Added CODE tags
I have to change more then 200 User at once
the password (security-dday).
The programm passwd will answers (new password + again)
How can i do this in a script?
thanks for answers (5 Replies)
hello,
I don't why I can't change the password, when ever I try to run passwd I get the problem??!!!
unixws1:ldb> passwd
passwd: Changing password for ldb
Permission denied
regards,
me (2 Replies)
I have left unix for a long time.Almost forget everthing.:(
Anybody can tell me what is the meaning?
wc /etc/passwd
9 16 1155 /etc/passwd
and
$ wc -l /etc/passwd
wc -l /etc/passwd
9 /etc/passwd (1 Reply)
Hi Folks,
I have Solaris 10, latest release.
We have passwd aging set in /etc/defalut/passwd.
I have an account that passwd should never expire. Acheived by emptying associated users shadow file entries for passwd aging.
When I reset the users passwd using passwd command, it re enables... (3 Replies)
Hi,
I've a problem regarding understanding of result of passwd -s command.
> passwd -s
abc PS 05/24/12 0 441
I'm not a super user. But i need to write a simple code for checking password expiry and send an email to the team id. Is there any other command or way to achieve this?... (6 Replies)
how to Change the % prompt to - prompt in unix
:wall:
---------- Post updated at 07:40 AM ---------- Previous update was at 07:38 AM ----------
How To display the last modification time of any file in unix
---------- Post updated at 07:40 AM ---------- Previous update was at 07:40 AM... (2 Replies)
Hi,
on sunfire v890 unable to move from rsc prompt to ok prompt, i have executed the command break. (9 Replies)
Discussion started by: manoj.solaris
9 Replies
LEARN ABOUT REDHAT
des_read_pw_string
ui_compat(3) OpenSSL ui_compat(3)NAME
des_read_password, des_read_2passwords, des_read_pw_string, des_read_pw - Compatibility user interface functions
SYNOPSIS
int des_read_password(DES_cblock *key,const char *prompt,int verify);
int des_read_2passwords(DES_cblock *key1,DES_cblock *key2,
const char *prompt,int verify);
int des_read_pw_string(char *buf,int length,const char *prompt,int verify);
int des_read_pw(char *buf,char *buff,int size,const char *prompt,int verify);
DESCRIPTION
The DES library contained a few routines to prompt for passwords. These aren't necessarely dependent on DES, and have therefore become
part of the UI compatibility library.
des_read_pw() writes the string specified by prompt to standard output turns echo off and reads an input string from the terminal. The
string is returned in buf, which must have spac for at least size bytes. If verify is set, the user is asked for the password twice and
unless the two copies match, an error is returned. The second password is stored in buff, which must therefore also be at least size
bytes. A return code of -1 indicates a system error, 1 failure due to use interaction, and 0 is success. All other functions described
here use des_read_pw() to do the work.
des_read_pw_string() is a variant of des_read_pw() that provides a buffer for you if verify is set.
des_read_password() calls des_read_pw() and converts the password to a DES key by calling DES_string_to_key(); des_read_2password() oper-
ates in the same way as des_read_password() except that it generates two keys by using the DES_string_to_2key() function.
NOTES
des_read_pw_string() is available in the MIT Kerberos library as well, and is also available under the name EVP_read_pw_string().
SEE ALSO ui(3), ui_create(3)AUTHOR
Richard Levitte (richard@levitte.org) for the OpenSSL project (http://www.openssl.org).
0.9.7a 2001-10-25 ui_compat(3)