Skip to content

Instantly share code, notes, and snippets.

@ahhh
Created March 25, 2015 16:12
Show Gist options
  • Save ahhh/e587df7d678e7b934d9c to your computer and use it in GitHub Desktop.
Save ahhh/e587df7d678e7b934d9c to your computer and use it in GitHub Desktop.
Add user script for Vyatta router
#!/bin/vbash
source /opt/vyatta/etc/functions/script-template
configure
set system login user jsmith full-name "John Smith"
set system login user jsmith authentication plaintext-password foobar123
set system login user jsmith level admin
commit
rm /tmp/adduserscript
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment