User Tools

Site Tools


cs471:cs-471_sp13_useraddpw

The useraddpw script of Assignment 4

#!/bin/bash

userid=$1
password=$2

# Generate encrypted hash of $password:
hash=$(echo $password | openssl passwd -1 -stdin)

# Create user account for $userid while assigning $hash as password:
useradd -m -p $hash $userid
cs471/cs-471_sp13_useraddpw.txt · Last modified: 2013/04/01 23:04 by jchung

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki