When the default installation is complete and you do not know the root user's password, how do I apply root permissions? (1) Sudo command This allows you to enter the current administrator user password to get superuser privileges. However, by default, 5 minutes of root access is disabled.
(2) sudo-i
This way, you can enter the password of the current administrator user to go to the root user. (3) If you want to use root permissions all the time, switch to the root user through Su. Let's first reset the root user's password:
sudo passwd root
This allows you to set the root user's password. Then you can switch to the root user freely.
Su
Enter the root user's password. 1. Turn off ASLR: Check whether it starts: Cat/proc/sys/kernel/randomize_va_space off Aslr:echo 0 >/proc/sys/kernel/randomize_va_ Space2. Turn off Canary and Nx:gcc-fno-stack-protector-zexecstack-m32-o 0 0.c0 is the program name, not the parameter Viewer protection status: checksec filename
"Notes" how Ubuntu switches to root user &&linux How to turn off various protections