Skip to content

Instantly share code, notes, and snippets.

@felippepuhle
Last active September 20, 2017 11:45
Show Gist options
  • Select an option

  • Save felippepuhle/c30df151df75864c2d2be2d90c14ade4 to your computer and use it in GitHub Desktop.

Select an option

Save felippepuhle/c30df151df75864c2d2be2d90c14ade4 to your computer and use it in GitHub Desktop.
mkpasswd --local > /etc/passwd
mkgroup --local > /etc/group
chmod +r /etc/passwd
chmod u+w /etc/passwd
chmod +r /etc/group
chmod u+w /etc/group
chmod 755 /var
touch /var/log/sshd.log
chmod 664 /var/log/sshd.log
editrights -l -u sshd
editrights -a SeAssignPrimaryTokenPrivilege -u sshd
editrights -a SeCreateTokenPrivilege -u sshd
editrights -a SeTcbPrivilege -u sshd
editrights -a SeServiceLogonRight -u sshd
editrights -l -u sshd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment