SUMMARY:changing password only.

From: jacques.rall@za.eds.com
Date: Fri Nov 15 1996 - 04:45:35 CST


My original question:

How can I allow someone just to change their password when logging
into the system?

Summarised answers:

1. Change the login shell to:

        miked:x:1001:1000:POP user:/tmp:/usr/bin/passwd

or
2. Leave the shell as normal to /bin/ksh and change the .profile to:

        trap 'echo "!! You are not allowed to do that !!"' 2 3
        /usr/bin/passwd
        exit

or
3. Write you own c program with the flow of:

        main()
        
        system("passwd")
        
        exit()

and change the login shell to the c program like /usr/bin/cpasswd

Thanks for the myriad of answers I recieved.

               JR



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:15 CDT