1753776 Members
7085 Online
108799 Solutions
New Discussion юеВ

Design a script

 
unixadmin_1
Frequent Advisor

Design a script

Please design a authentication form which got following fields with shell script


|----------------------------------|
| |
| UserName:------------- |
| Old Password:------------- |
| New Password:------------ |
| Confirm Password:------- |
| |
| [Update] |
| |
|-----------------------------------

Can you please write the script for the functionality of the option [Update] where it should upadte all the users in passwd file
9 REPLIES 9
James R. Ferguson
Acclaimed Contributor

Re: Design a script

Hi:

Sure. Send $$$.

It helps _you_ to try yourself and then ask when/where you are stuck!

...JRF...
Pete Randall
Outstanding Contributor

Re: Design a script

I would be tempted to just use the passwd command.


Pete

But you can send me $$$, too! (Good idea, Jim)

Pete
MarkSyder
Honored Contributor

Re: Design a script

You're probably right, Pete, but the wording looks suspiciously like an exam question to me. The examiner might not like the answer "Just use passwd"!

Mark
The triumph of evil requires only that good men do nothing
Michael Mike Reaser
Valued Contributor

Re: Design a script

Mark:> ...but the wording looks suspiciously like an exam question to me...

This "unixadmin" has been posting many of his work assignments to the HP Forums, expecting the folks here to perform his job functions on his behalf.
There's no place like 127.0.0.1

HP-Server-Literate since 1979
Pete Randall
Outstanding Contributor

Re: Design a script

So you mean the name "unixadmin" is either a joke on us or wishful thinking on their part?

Wow! Just paint me gullible and naive - - NOT!


Pete

Pete
Patrick Wallek
Honored Contributor

Re: Design a script

And his/her point assignment ratio is really poor as well:

I have assigned points to 10 of 102 responses to my questions.
MarkSyder
Honored Contributor

Re: Design a script

I don't think any of us were expecting points for these replies Patrick!

Mark
The triumph of evil requires only that good men do nothing
Pete Randall
Outstanding Contributor

Re: Design a script

Well, exams generally only have 100 points so it seems obvious that "unixadmin" can't hand them out too freely - there's just not enough to go around!


Pete

Pete
Patrick Wallek
Honored Contributor

Re: Design a script

I didn't figure you were.

I was just trying to make the point (sic.) that overall his/her assignment ratio sucks.