File:  [MW Coherent from dump] / coherent / c / etc / newusr
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:41 2019 UTC (7 years, 2 months ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent

sort -n '-t:' +2 -3 -o /etc/passwd /etc/passwd
uid=`tail -1 /etc/passwd | sed -n "s/[^:]*:[^:]*:\\([^:]*\\).*/\\1/p"`

while expr $# "!=" "0" > /dev/null
do
	if grep "$1:.*" /etc/passwd
	then
		echo "user name '$1' already taken"
		shift
	else
		uid=`expr $uid "+" "1"`
		echo "$1::$uid:5::/u/$1:/bin/sh" >> /etc/passwd
		mkdir /u/$1
		chown $1 /u/$1
		shift
	fi
done

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.