Ubuntu-based armv7 File System porting permission issues

Source: Internet
Author: User
After so many errors have occurred in the Ubuntu file system built by myself, I feel it is necessary to write about the permissions of the file system. Previous errors mainly occur due to file permissions. Linux system permissions are its security and also its troubles. I. First of all, I would like to explain why a permission error occurs: My ubuntu armv7 file system is built on my computer, and my computer is also ubuntu, use the Administrator account to log on. Run this file on the Development Board

After so many errors have occurred in the Ubuntu file system built by myself, I feel it is necessary to write about the permissions of the file system. Previous errors mainly occur due to file permissions. Linux system permissions are its security and also its troubles.

I. First, I would like to explain why a permission error occurs:

Because my ubuntu armv7 file system is built on my computer, while my computer is also ubuntu, using the Administrator account to log on. To run the file system on the Development Board, copy the file system to the root directory of the SD card and set the kernel to boot the file system from the SD card. The file system of the SD card is EXT4.

Copy command:

Sudo cp-r */sd_dir

Here, a permission problem occurs. Because sudo is used, the owner of the files and folders copied to sd is root. Because the SD card is mounted to a computer, the root directory owner of the SD card is the user currently logged on to my computer, uid = 1000;

Previously, on the computer, use chroot to enter the arm environment and set the root password, and create the user myuser:

Passwd
Adduser mySUSEr
Gpasswd-a myuser sudo

Ii. Problems and Solutions:

Solve the following problem:

Root User Login

Cd/
Chown root: root ./
Chmod + r ./
Chmod + x ./
Chmod 1777/tmp

This will solve many problems, including the forbidden problem of apache and the problem that sudo cannot be used.

If sudo is still unavailable, reinstall it:

Apt-get install -- reinstall sudo

After xfce4 is installed, normal users cannot log on to the lightdm interface to solve the problem:

Cd/home
Mkdir myuser
Chown myuser: myuser

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

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.