static password for a user in aix

Hi
i have a user named "sybase" in my aix box ?
i need a script to be run every minute which will always make the password of the user "sybase" to be set as : dbadmin
even if root user changes the password of the user, the script should run via cron and again set the password of the user sybase to be set as : dbadmin
can any one assist in writing the script :wall:

Why in the world would you want to set a password to the same thing every minute? Do you have someone else changing it to something else every other minute?

Why not just set the password to never expire?

Hi, I agree with juredd1 this is stupid but if you need it add to cron
echo "sybase:db2admin" |chpasswd -c set it as every minute or 10 :slight_smile:

Why? Can't you set the password to never expire?