while read uid gid user; do groupadd -g=$gid $user adduser -u=$uid -g=$gid -f $user done < <(ls -ld | awk '{print $3, $4, $9}' )