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