try chpasswd instead of passwd