User Tools

Site Tools


linux_security

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

linux_security [2017/01/05 06:37] (current)
felixonmars created
Line 1: Line 1:
 +==== Reset Root Password ====
 +Add this to your (grub'​s kernel line or grub2'​s linux line) and boot:
 +<​code>​
 +init=/​bin/​bash
 +</​code>​
 +Then remount the filesystem and just use passwd to reset the root password:
 +<​code>​
 +mount -o remount,rw /
 +passwd
 +</​code>​
 +
 +==== Sudo Without Password ====
 +/​etc/​sudoers
 +<​code>​
 +username ALL=(ALL) NOPASSWD: ALL
 +</​code>​
  
linux_security.txt ยท Last modified: 2017/01/05 06:37 by felixonmars