Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- uid = prompt("Enter username:")
- eid = prompt("Enter user's email address:")
- password = generate_passwd()
- run('adduser -g vpn -c %s %s') % (eid, uid)
- run("echo -e '%sn' | passwd %s") % (password, uid)
- print (password)
- File "/tmp/hardway/fabfile.py", line 56, in addvpnuser
- run('adduser -g vpn -c %s %s') % (eid, uid)
- TypeError: not all arguments converted during string formatting
- run('adduser -g vpn -c %s %s' % (eid, uid))
- run('adduser -g vpn -c %s %s') % (eid, uid)
- run("echo -e '%sn' | passwd %s" % (password, uid))
- run("echo -e '%sn' | passwd %s") % (password, uid)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement