Raspberry Pi-root user and sudo, raspberry rootsudo

Source: Internet
Author: User

Raspberry Pi-root user and sudo, raspberry rootsudo

Linux is a multi-user operating system that allows multiple users to log on to and use one computer. To protect the privacy of computers (and other users), users are limited to what they can do.


Most users are allowed to run most programs on their computers and edit and save files in their home directory. Generally, users are not allowed to edit files and system files of other users. However, in Linux, a special user is called a Super User. Generally, the user name is root. This super user has no restrictions on accessing the computer and can do almost everything.


SUDO


You do not usually log on to the computer as a root user, but you can useSudoCommand to obtain the superuser permission. If you log on to Raspberry pi using a pi user, you are logged on as a common user. You can add the sudo command before the program you want to run the program as a root user.


For example, if you want to install additional software on Raspberry Pi, you usually need to useApt-getTool. To update the list of available software, you needAgt-getAddSudoCommand Prefix:Sudo apt-get update.


View more apt command information.


You can also useSudo suCommand to run a Super User shell terminal. Once you run commands as a Super User, there is no error that can prevent system damage. It is equivalent to disabling security protection on the machine. Although it is easier to access something inside the system, the risk of damage is greater. It is recommended that you run commands as a Super User only when the super user permission is required, and immediately exit the Super User shell terminal when the super user permission is not required.


Who can use sudo? (Who can use sudo)


If sudo can be added to any user before the command, the security will be compromised. Therefore, only the specified user can use sudo to obtain the permissions of the Computer Administrator. Pi users already includeSudoerFile. Allows other users to use the superuser permission. You can add these users to The sudo group, or useMongodoAdd them.


For more information, see user management.



Address: http://www.raspberrypi.org/documentation/linux/usage/root.md



In Raspberry Pi, root is the user with the highest Permissions

Yes. In linux, root is the highest permission. Raspberry Pi's system is based on debian (a release of linux.

Raspberry Operating System

Raspberry Pi uses the debian system in linux, So Raspberry Pi uses the same root and debian.
The root account In debian does not have a password by default, but the account is locked.
When the root permission is required, the default account runs through sudo, And the Raspbian In the Raspberry pi System
The default user is pi and the password is raspberry.
Re-enable the root account. After the pi user logs on, execute
Sudo passwd root
After executing this command, the system will prompt you to enter the root password twice, enter the password you want to set, and then execute
Sudo passwd -- unlock root
In this way, you can unlock the root account.

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.