tailieunhanh - Creating Groups in Linux

In this lab, the student will learn how to create, rename, and delete groups using the Linux operating system. The student will then add members to that group. | Lab Creating Groups in Linux Estimated Time 30 minutes Objective In this lab the student will learn how to create rename and delete groups using the Linux operating system. The student will then add members to that group. Equipment The following equipment is required for this exercise A computer system with Linux Red Hat operating system installed. Scenario A few members in the Engineering Department who are using Linux are going to be working on classified documents. They need to have their own group created so they can keep these documents in certain folders that only their group will have permissions to. A group must be created and members added to this group. Procedures In this lab the student will first create the engineering group and then add the localuser1 user account to this group. The student will then rename the group. For the last step the student will delete the group. Tips Before You Begin Remember User permissions apply to the owner of the file or directory. Group permissions apply to the members of the group that are assigned to a file or directory. Linux stores group information in the etc group file. Step 1 Creating a Group and Adding Users to the Group Note The account studentA5 will be used throughout this lab as an example. Ask the instructor for the appropriate account for the particular lab situation. 1. Login with the root account. 1 - 5 IT Essentials II - Lab Copyright 2002 Cisco Systems Inc. 2. At the command prompt type groupadd Engineering Press Enter. This will create the Engineering group. 3. Next add a student account to the new Engineering group by typing usermod -G Engineering studentA5 Press Enter. This will add the studentA5 account to the Engineering Group. 4. Verify that the new group has been created by typing grep studentA5 etc group The grep command looks for strings of text. In this case the user asked the grep command to look in the etc group file for anything named studentA5. What were the results .

TỪ KHÓA LIÊN QUAN
crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.