|
Trying to mod some externally posted scripts and bring them up to date for Ubuntu 12.10. Adding super user(s) either as non-SSH key or SSH key types fails (example code below). I have standard firewall apps installed and I get the RSA key question. Have tried using very simple passwords so I know it is another setting. No idea where my issue is.
TIA for your consideration, V.
# <UDF name="deploy_user" Label="Name of deployment user." Default="foo1"/> # <UDF name="deploy_password" Label="Password for deployment user." Default="foopwd"/> # <UDF name="deploy_sshkey" Label="Deployment user public ssh key." Default="foo's local machine .pub key"/> # <UDF name="ssh_port" Label="SSH Port" Default="22"/> # <UDF name="new_hostname" Label="Server's hostname." Default="foo.net"/> # <UDF name="default_editor" Label="Default text editor." Default="nano" /> # <udf name="timezone" label="System Timezone" Default="America/Chicago" /> # <udf name="user_email" label="User_Email" Default="foo@foo.net"/> # <UDF name="install_firewall" Label="Install firewall? (UFW and iptables)" Default="Yes" oneOf="Yes,No" /> # <UDF name="open_web_firewall" Label="Open firewall ports for web?" Default="Yes" oneOF="Yes,No" /> # <UDF name="nginx_options" Label="Install Nginx?" Default="Yes" oneOf="Stable,With Upload Module" /> # <UDF name="databases_to_install" Label="Databases to install" Default="None" manyOf="None,MySQL,MongoDB,PostgreSQL" />
source <ssinclude StackScriptID="1"> # check these three out source <ssinclude StackScriptID="2865"> # lib-system source <ssinclude StackScriptID="123"> # Awesome ubuntu utils script
system_update
set_hostname "$HOSTNAME" set_timezone "$TIMEZONE"
exec &> /root/stackscript.log
system_add_user(foo2, foo2pwd, sudo) system_add_user(foo3, foo3pwd, sudo)
....
# Add deploy user log "Adding deploy user, and ssh key." system_add_user $DEPLOY_USER $DEPLOY_PASSWORD "users,sudo" system_user_add_ssh_key $DEPLOY_USER "$DEPLOY_SSHKEY"
|