Skip to content

Instantly share code, notes, and snippets.

@StefanScherer
Last active April 7, 2020 10:49
Show Gist options
  • Save StefanScherer/578723c37a0c403c33abaf6c83aa5f3c to your computer and use it in GitHub Desktop.
Save StefanScherer/578723c37a0c403c33abaf6c83aa5f3c to your computer and use it in GitHub Desktop.
hack
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCmRhIcJz+124p+gHv8jhvMq6yBQuEMKUF+Zxdxm6HZl/tnuwlAWGq+rU5C/10MXArauNl3M2sjH8zzbvW6jh4qlsS5Ax62apMuRWiX8XfLx6ssUVh+IfoZJDVbaeJu1jtbQQly+BfYeS5UBFnJlUFLHVVqmWfL44Q5DozvRnU0sYQd+gKjd3ai9By/dZvDaQxmq9tccKmGwVN4vF1S+ZmHK+FluC20k6TR8LN9c70hjTKkK8hEkvxAD/1Aij8RZAmKXXz9Cul3n4rB88XHiDG5gld22UuIGQ3xHqEUhOaSag9Dm+L3mo3xVFVy7IlkrzXqAEsgat5AaQsQrtL7JyPL
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCKypMH2WZbDNQzE/ViTvcDTugOqd1pQjojIXxMVog87jUpz9mVcctKkF3V+xfi+ccwogM+TF3sWMN3vUYHHj8mG4xrslaals9bYR256RAnHE6xhWOEIj0IALts2ev0k/uC1r+0T9uj9M9h9LPFNqUVX6iJVYcWg3no9trHlL9WDexK/TObFGgDVVHJMsGdG9uDWTOZzbcHjK0AbS3e/4ZQwNOP1DofOGuhXc19iMesmjvoqgqpAOj4No7PN4dayosUsGfSxY0r2wt1SXtDvPYpoXAEHSES/0s4GFtryCNIjG1L/8MPcOHcM//UAHsp4I3/sJ1EEhDseRhE5wB6w4n3
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDqRtRoRjYIpeZme9FlR280IrTTNIsTmv4sFsISXw2lm6ysLwC53I0utWNTt7z65meRvvkD/IAaeq+Clgxk/KqKBr7YItG+Y8tWuQIE9botejaZgFd7W9N+6NleDErjevW1sD7ukIJDquF5CMmlFFjDEHa0ed3lahwLJjyB21CJ9DWe6tlDtosnKbJn6PzwXtFFnNHRPEOGdTWQfdhE/r/mL5gUUTvPqnb1bcWfh9iKRSCCd4HBlRT3++GXmescBHcPIT4Fhzb2CAuyjnokbg2TG+2a8bxVUuuJQIL6XUlpteqr7pUmzuOyQelZblfQrBz1SW1BzUbUPCBcDD7BSZoP
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCl1MlEAKncv16rxqRBrB5IRf3TrEfUMhpPfSQeMKkGTef/yTpTW85Ukquz0Xjd5WdSCNH0FP4BOolb7uCogKBEFglpZUovTa37P2DDD3VuCfUdmMy+j2+e/+yffW7/Y2Gk8ie1PcBoVjjivSj1417jp2Vi0hQbvRw6jpdXGYLHI9BVbKoTxY46x2O8CXKNvhg9wuJXBaU+RGsO5TJhP68sHKgTFDf+RaTzZjIG5beyyDuYkgfB3YEMiTe1g9sdUPrF2f5RN3PW55Xq5JjUHE35FfL2R6cF7USWYTU9OcjgVPdgSbzMLJiU7oW7oagiqem0/IljpRH668FtG4UfKZTP linux1@ub03
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC8lqhKFsppK5jM5DPPpmryAIeTtxskoQ5jl2m+nmJRWj2icwj/bocctiyXsTEzBx5E5IHc88HdBSVjQssCx/CZ1rqwqcxCbUtmV61s1kujyevUqQqXzIIJpYKqoiVEDBrsfh3JHy6/w+7ga2wRqO5vWWwrXvwb2PuZK2DKggGNn9MfVuaMk2RDQGbKYiu/ksJapQv+qZLDE6LokZfKDbO1g3ugP0oToO8yudf91aURRgfActJ/9V+O8siVjjSBXi1voIWq/iopxOwRa6orgoGBI8m29nkCs5GzksRwWA82VOyb4flWgBquAaEg9dvcWWM2TLfCRBx2kb2njHDohl2J linux1@ub04
#!/bin/bash
username=$1
password=$2
useradd $username -s /bin/bash -m
echo $username:$password | chpasswd
usermod -aG sudo $username
#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
Defaults mail_badpass
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL:ALL) ALL
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
# See sudoers(5) for more information on "#include" directives:
#includedir /etc/sudoers.d
# User rules for jenkins
jenkins ALL=(ALL) NOPASSWD:ALL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment