Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat Mar 16, 2013 5:53 pm 
Offline
Newbie

Joined: Sat Mar 16, 2013 5:43 pm
Posts: 3
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"


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group