User and file Rights management

Source: Internet
Author: User

Experimental case: User and file Rights management

Lab Environment:

The company's Linux host will be provided to the technical Department as a development server to use, according to the composition of the project team within the Department, the need to set up the corresponding group accounts, user accounts, and set permissions for the relevant directory; You also need to set up a common data storage directory for data exchange between colleagues

Requirements: Create a user directory

Add a group account

Add user account

Set directory Permissions and attribution

Create a common data store directory

Steps:

1 Use the mkdir command to create the Techbenet TECHACCP directory at once:

650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; margin:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" clip_image002 "border=" 0 "alt=" clip_image002 "src=" http://s3.51cto.com/wyfs02/M02/77/8E/ Wkiom1zpg6-gveobaaaq7uov2pi983.jpg "" 244 "height="/>

2 using Groupadd you make a field tech Benet ACCP group account number, with the "-G" option to specify GID

:

650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; margin:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" clip_image004 "border=" 0 "alt=" clip_image004 "src=" http://s3.51cto.com/wyfs02/M00/77/8E/ Wkiom1zpg6_jc9fmaaapu_nkisw248.jpg "" 244 "height=" "/>

650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; margin:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" clip_image006 "border=" 0 "alt=" clip_image006 "src=" http://s3.51cto.com/wyfs02/M02/77/8C/ Wkiol1zpg7cgaiobaaayn7s5uck455.jpg "" 244 "height="/>

3 using the Useradd command to add each user, with the "-d" option to specify the host directory, "-G" option to specify the basic group of options, "-g" option to specify additional groups, "-S" option to specify the login shell program, "-e" option to specify the expiration date of the account:

650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; margin:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" clip_image004[1] "border=" 0 "alt=" clip_image004[1] "src=" http://s3.51cto.com/wyfs02/M01/77 /8e/wkiom1zpg7gat0-0aaapu_nkisw708.jpg "" 244 "height=" "/>

650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; margin:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" clip_image008 "border=" 0 "alt=" clip_image008 "src=" http://s3.51cto.com/wyfs02/M01/77/8C/ Wkiol1zpg7lhsfasaaatsyforis752.jpg "" 244 "height="/>

4 Use pass my command to set the initial password for the Kylin tsengia handy user account:

650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; margin:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" clip_image010 "border=" 0 "alt=" clip_image010 "src=" http://s3.51cto.com/wyfs02/M02/77/8E/ Wkiom1zpg7ktegdmaaami5gspmm108.jpg "244" height= "/>"

5 Use the Chown chmod command to set the rights attribution of the tech tech Benet and TECHACCP directories:

To set the directory and file format:

Chmod [Ugoa] [+-=] [RXW] file or directory ...

To set the attribution format for directories and files:

Chown owner [: [Genus]] file or directory ....

650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; margin:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" clip_image012 "border=" 0 "alt=" clip_image012 "src=" http://s3.51cto.com/wyfs02/M02/77/8D/ Wkiol1zpg7ojvsexaaaoqn5xeb0972.jpg "" 244 "height="/>

650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; margin:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" clip_image014 "border=" 0 "alt=" clip_image014 "src=" http://s3.51cto.com/wyfs02/M00/77/8E/ Wkiom1zpg7oyountaaamv5vammg420.jpg "" 244 "height="/>

650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; margin:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" clip_image015 "border=" 0 "alt=" clip_image015 "src=" http://s3.51cto.com/wyfs02/M00/77/8E/ Wkiom1zpg7sckhmtaaap-jgr_gw034.jpg "" 244 "height="/>

650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; margin:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" clip_image017 "border=" 0 "alt=" clip_image017 "src=" http://s3.51cto.com/wyfs02/M01/77/8E/ Wkiom1zpg7xqyddcaaatezvs_qk855.jpg "" 244 "height="/>

6 Create the public folder and use the chmod chown command to set directory permissions. Belong:

650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; margin:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" clip_image019 "border=" 0 "alt=" clip_image019 "src=" http://s3.51cto.com/wyfs02/M01/77/8E/ Wkiom1zpg7wsqxdtaaat_9lepyw527.jpg "244" height= "/>650" this.width=650; "style=" background-image:none; border-bottom:0px; border-left:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" clip_image020 "border=" 0 "alt=" clip_image020 "src=" http://s3.51cto.com/wyfs02/M02/77/8E/ Wkiom1zpg7agtjs4aaapcainwsc640.jpg "" 244 "height=" "/>

User and file Rights management

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.