This topic has been archived. It cannot be replied.
-
工作学习 / 专业技术讨论 / 请教一个UNIX PASSWD问题How to quickly change a massive number of passwords (assuming username and password is listed in a text file)? Using passwd command would take days to do this. If C programming is the least interested, Is there an easy way to do this?
-diresu(makeITwork);
2007-5-18
{234}
(#3685204@0)
-
there may be command line utility crypt or encrypt to do the same job. depend your unix relase.i know HP 10.01 and 10.10 has the command, And did not see it AIX 5.
the input is the string (plan password) output is encript passwd.
-647i(流浪的步行万里);
2007-5-18
{137}
(#3685211@0)
-
There ares planty of commands do encryption for example makekey and crypt. However, I don't know any easy way know to install them into password database.
-diresu(makeITwork);
2007-5-18
(#3685373@0)
-
install the encription function to password database?? u mean add new encript method to your passwd/secure system? If it is Unix, better check the support manual.
-647i(流浪的步行万里);
2007-5-18
(#3685388@0)
-
put password harsh value into the second filed of /etc/shadow. First manually reset password on a system. Then get the harsh value by command "grep userid /etc/shadow | cut -d: -f2".the default permission of /etc/shadow is 400. If you want to reset password for multiple systems in a shell script, you have to change the permission to root writable, otherwise you need to do it one by one manually.
-guest1(guest);
2007-5-19
{216}
(#3687017@0)
-
try using expect.
-chenrulai(海底毛毛虫);
2007-5-19
(#3687401@0)
-
This will work. I don't have expect on the box. I had made the change on source code of passwd_local.c. Thanks.
-diresu(makeITwork);
2007-5-22
(#3691304@0)