#! /bin/sh #---------------------------------------------------------------------------- # change-password - change password of a user # # Copyright (c) 2001-2003 Frank Meyer <frank@eisfair.org> # # Creation: 04.11.2001 fm # Last Update: 19.07.2003 fm # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. #---------------------------------------------------------------------------- clrhome colecho "Change password" gn echo echo echo -e "User: \c" read user if [ "$user" != "" ] then echo grep "^$user:" /etc/passwd >/dev/null if [ $? = 0 ] then echo "Changing password of user $user:" passwd $user else colecho "User $user does not exist!" br x br fi else colecho "Command aborted" br x br fi echo /var/install/bin/anykey