Fudo createuser

fudo_createuser is a tool that creates LDAP users for the Fudo system, mostly that means athens.

Command line help
Usage: /fudo/sbin/fudo_createuser [options] -c, --common-name [name]        User's common name (Familiar name) -G, --given-name [name]         User's given name -S, --surname [name]            User's surname -H, --home-directory [path]     Home directory -e, --email [address]           Email address -E, --notify-user [address]     Email user with account details -p, --password [password]       Password -P, --generate-password         Generate a password -u, --userid [uid]              User id (numeric) -g, --group [group]             Group name or gid -s, --shell [shell]             Shell -d, --description [desc]        User Description -l, --language [code]           Preferred language code (default: en) -h, --help                      Show this message

Usage Notes

 * Does not create home directory for the user, even if a home dir is specified with -H (which simply overrides the default path, /home/ / ). This is because it in run with the executing user's permissions, and usually the executing user will not have root access.  However, if the user logs in with SSH, PAM will create a skel directory for them.  This may work for other PAM authentication methods (it used to be broken, ages ago).


 * fudo_createuser requires most attributes to be set.

Step-by-step

 * login via SSH to athens
 * execute kinit to authenticate with Kerberos. It will prompt for your kerb password
 * Do a command like this:
 * /fudo/sbin/fudo_createuser -c "Joe" -G "Joe" -S "Blow" -H "/home/fudo/joeblow" -e "joeblow@example.com" -P -s /bin/bash joeblow
 * create the user's home directory:
 * sudo mkdir /home/fudo/joeblow
 * copy the skel files:
 * sudo cp /etc/skel/.bashrc /etc/skel/.bash_logout /etc/skel/.profile /home/fudo/joeblow/