Uid-related content of linux Users

Source: Internet
Author: User


The uid-related content of linux users is in linux. Users have user names and uid. Uid is a number used to uniquely identify a user. In linux, the File Permission is actually bound to the uid, rather than the seemingly user name. Specify the uid method when creating a user:
Shell code useradd [usernamen]-u [uid] www.2cto.com uid must be a number, must not be occupied, must be greater than or equal to 500, (uid less than 500 is managed by the System) modify the uid of a user:
Shell code usermod-u [username] [uid] Replace the File Permission uid in the file system;
Shell code find/path/xxx/-user [uid_1]-exec chown [uid_1] {}\;: recursively traverse the files in the/path/xxx/path, uid is the owner information of the uid_1 file, which is changed to uid_2;
 

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.