It is currently Sat, 05 Dec 2020 12:40:59 GMT



 
Author Message
 Changing UNIX pwd via c-shell script
I need to write a script which will change a user's UNIX
pwd.  If I could run the script as root, there would be no
problem because I could issue
%passwd <uname> <newpassword>.
However, I cannot run as root and therefore need to run the
passwd utility interactively.  Is there any way to script
this?  I would have to have my script provide the responses
to the passwd utility and pass it old pwd, new pwd, and
confirmation of pwd?  Thanks in advance!
Kerry

* Sent from AltaVista http://www.**-**.com/ Where you can also find related Web Pages, Images, Audios, Videos, News, and Shopping.  Smart is Beautiful



 Fri, 17 May 2002 03:00:00 GMT   
 Changing UNIX pwd via c-shell script
Wouldn't this be better in one of the shell.programming groups?

Tom

PS. AFAIK you could use 'read' in csh (??) to get user input from the
terminal.

news:0d7a716e.8eb649a0@usw-ex0110-073.remarq.com...
related Web Pages, Images, Audios, Videos, News, and Shopping.  Smart is
Beautiful



 Sat, 18 May 2002 03:00:00 GMT   
 
   [ 2 post ] 

Similar Threads

1. changing password via shell script

2. running bourne shell script from cshell

3. chng usr's pwd via script??

4. Changing Unix Passwd with Korn Shell Script??

5. Changing your shells's pwd from subprocess

6. Changing $PWD from a script

7. Script that changes the caller's PWD

8. flexible prompt in shells via shell-script

9. UNIX shell differences and how to change your shell (Monthly Posting)

10. UNIX shell differences and how to change your shell (Monthly Posting)


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software