Ubuntu10.04 root account enabling + modifying file attributes

Source: Internet
Author: User

Ubuntu10.04 the root account enabled + permission to modify file attributes was viewed online for a long time, but it was not completed by myself. When it was achieved, I suddenly realized that it was easy to share my experience with cainiao, in system> System Management> users and groups, change the Account type to ROOT. Of course, you can change your name to root, everything is simple ????????? Www.2cto.com Method 2: $ sudo gedit/etc/TPD/custom. conf: [daemon] AutomaticLoginEnable = trueAutomaticLogin = rootTimedLoginEnable = trueTimedLogin = rootTimedLoginDelay = 5 restart to find the Ubuntu that is logged on with the root user. NOTE: If there is no file, you can create it. I found that Alternate 10.04 does not have this file. Also, root must not be locked. By default, Ubuntu disables root and uses the sudo passwd root command to enable root. Custom. conf is a read-only file and cannot be modified. The following describes how to modify the file attributes. The first character specifies the file type. In general, a directory is also a file. If the first character is a horizontal line, it indicates a non-directory file. If it is d, it indicates a directory. The second part is the attributes of the file owner, the third part is the attributes of the group to which the file belongs, and the fourth part is the attributes of other users. Ls-l to view the directory information-rwxr-xr-x 1 xura 1753786 2010-05-09 Grad respectively corresponds to: File Attribute connection file owner group file size file modification time file name example: the first character of d rwx r-x specifies the file type. In general, a directory is also a file. If the first character is a horizontal line, it indicates a non-directory file. If it is d, it indicates a directory. The second part is the attributes of the file owner, the third part is the attributes of the group to which the file belongs, and the fourth part is the attributes of other users. Three commands: (1) chmod -----> Modify file permissions (2) chgrp ------> modify the syntax of the file or directory group: chgrp [Option] group filename? This command changes the user group to which the specified file belongs. The group can be either the user group ID or the group name of the user group in the/etc/group file. A file name is a list of files separated by spaces to change the group. Wildcards are supported. If the user is not the owner or super user of the file, the file group cannot be changed. Parameter:-R recursively modifies the group of all subdirectories and files under a specified directory. Example 1: $ chgrp-R book/opt/local/book changes the group of all files in/opt/local/book/and its subdirectories to book. (3) chown -------> change the owner and group of a file or directory, for example: # chown-R xura ubuntu9.04 ------> change the user in the ubuntu9.04 directory to the xura Syntax: chown [Option] user or group file Description: chown changes the owner of the specified file to the specified user or group. Users can be user names or user IDs. A group can be a group name or group ID. Files are separated by spaces to change the permission list. Wildcards are supported. Parameter:-R recursively modifies the owner of all subdirectories and files under a specified directory. -V: displays the work done by the chown command. Example 1: Change the owner of the shiyan. c file to wang. $ Chown wang shiyan. c Example 2: Change the owner of the directory/his and all files and subdirectories to wang and change the group to users. $ Chown-R wang. users/his

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.