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
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
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
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.
>
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
>
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
В отговор на "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
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