Re: [Solaris-Users] How to change a password in a shell script

2004-04-02 Thread Glenn Abraham Contreras
alvaro, You may want to used 'expect' as well. thanks, Glenn A.S. Contreras From: "Alvaro Torres F." <[EMAIL PROTECTED]> Reply-To: Solaris-Users mailing list <[EMAIL PROTECTED]> To: Solaris-Users mailing list <[EMAIL PROTECTED]> Subject: Re: [Solaris-User

Re: [Solaris-Users] How to change a password in a shell script

2004-04-02 Thread Glenn Abraham Contreras
Alvaro, try also using 'expect' command. thanks, Glenn A.S. Contreras From: "Alvaro Torres F." <[EMAIL PROTECTED]> Reply-To: Solaris-Users mailing list <[EMAIL PROTECTED]> To: Solaris-Users mailing list <[EMAIL PROTECTED]> Subject: Re: [Solaris-Users] How

Re: [Solaris-Users] How to change a password in a shell script

2004-03-28 Thread Alvaro Torres F.
Hello again. I found the way to insert the encripted password in de /etc/shadow Here is the code: echo $nombre_usuario:`perl -e '$x=crypt('$clave','nusuario'); print $x'`::: >> /etc/shadow where $nombre_usuario = username $clave = The password (to be encripted) nusu

Re: [Solaris-Users] How to change a password in a shell script

2004-03-28 Thread Mike Mestnik
I think your best bet is PAM or using htpasswd and an ed script to change the correct file in /etc. There could be webmin and other admin programs that have this code that you could borrow. --- "Alvaro Torres F." <[EMAIL PROTECTED]> wrote: > hello. > I need add 112 users on a solaris 9 machine. >

Re: [Solaris-Users] How to change a password in a shell script

2004-03-28 Thread Mike Mestnik
This is blastfomy!! In this case ps becomes your worst enamey. Also keep in mind programs like snmpd could export this info and ftpd explots that allow reading outside the chroot. --- Mahfuz Imran <[EMAIL PROTECTED]> wrote: > I faced the same problem for changing password. I agree on your way >

Re: [Solaris-Users] How to change a password in a shell script

2004-03-28 Thread Mahfuz Imran
I faced the same problem for changing password. I agree on your way about random password, but is there anyway to set this password from the runtime argument? I think that would be much helpful if I can define my password myself for each user.   Thanks Mahfuz Dimitar Vassilev <[EMAIL PROTECTED]> wr

Re: [Solaris-Users] How to change a password in a shell script

2004-03-28 Thread Dimitar Vassilev
В отговор на "Alvaro Torres F." <[EMAIL PROTECTED]>: > hello. > I need add 112 users on a solaris 9 machine. > I make a shell script for adduser, but I don't know how can I made > with the passwords. > Somebody can tell me a way to add a password for an user without the > interactivity of the com

[Solaris-Users] How to change a password in a shell script

2004-03-27 Thread Alvaro Torres F.
hello. I need add 112 users on a solaris 9 machine. I make a shell script for adduser, but I don't know how can I made with the passwords. Somebody can tell me a way to add a password for an user without the interactivity of the command "passwd" in order put inside my shell script. Atte Alvaro To