"Notes" how Ubuntu switches to root user &&linux How to turn off various protections

Source: Internet
Author: User
Tags switches root access
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.