Linux General error

Source: Internet
Author: User
Tags create directory

1.There is a problem with the configuration server. (/usr/libexec/gconf-sanity-check-2 exited with status 256

There are two reasons: 1,/tmp permission Issue 2,/tmp directory is deleted

TMP occupies 400M of space

Delete/tmp directory

can only boot into console mode

1. Create directory: #mkdir/tmp result system repeatedly switches between console mode login and x Windows mode login status, unable to enter the system

2, change the permissions: #chmod a+rwx,o+t/tmp

That is: DRWXRWXRWT 4 root root 4096 September 15:18 tmp

System back to normal

Under normal circumstances, the/TMP directory has the following permissions: DRWXRWXRWT 4 root root 4096 September 15:18 tmp

It means that all users can create files (or directories) in which everyone has write access to the TMP directory, but unless the owner of the TMP directory and the owner of the file, others cannot overwrite (or delete, rename) Others ' files (or directories) in the/tmp directory.

If you delete the TMP directory of the system and use MKDIR/TMP to establish the directory, then according to Umask, the default recommended directory permissions are:

Drwxr-xr-x 3 root root 4096 September 15:31 tmp

Then the other person will not be able to set up files in the/tmp directory, then the system will fail (such as: Can not start or enter x Windows);

If you use: chmod a+w/tmp the permissions to change the/tmp directory are:

DRWXRWXRWX 3 root root 4096 September 16:34 tmp

Then anyone can delete the files in the/tmp directory, including the deletion of root files created in the/tmp directory;

If you use: chmod o+t/tmp for the/tmp directory with sticky bit T, then others can not overwrite (or delete, rename) Other people's files (or directories) in the TMP directory, play the role of the/tmp directory.

In addition, the "Suid" and "sgid" special flags can enable a normal user to run a program that allows the program to access or modify files that only the file owner or root user can access or modify directly, provided that the normal user has the appropriate permissions on a part of the file.


Linux General error

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.