• Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/sh
2#
3# Set Password for a specific new user
4# This script should be run as 'root'
5#
6# Example:
7#		./su_set_passwd USER ENCRYPTED_PASSWD
8#
9
10USER=$1
11ENCRYPTED_PASSWD=$2
12
13usermod -p $ENCRYPTED_PASSWD $USER
14exit $?
15