changing password only.

2007-12-25 11:43:00

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

Comments

Got something to say?

You must be logged in to post a comment.