Examine the UNIX commands  addgroup,   adduser, and  useradd commands Use the addgroup command to create a new group on your system called cs260. Using either the addgroup or adduser command, add your user account to the cs260 group Use the adduser command to add a new user to your system. This user should have the following stats: Username: testuser Default Group: testuser Shell: /bin/bash Full Name: Tess Tuser Room Number: 115 Work Phone: 858-3007 Leave Home Phone Empty Other: Likes the smell of new tires. Use the useradd command to add a new user to your system. This user should have the following stats: Username: jestuser Default Group: jestuser Shell: /bin/bash Full Name: Jessie Tuser Room Number: 119 Work Phone: 858-3008 Leave Home Phone Empty Other: Thinks fish are secretly plotting to take over the world. Use addgroup to put both new users into the cs260 group (in addition to their default groups). Save screenshots (View->Take Screenshot in VirtualBox) of each command’s execution and the entries that were created in your password and group file. Additionally, write a short explanation of what the difference is between adduser and useradd as well as an explanation of what each of the fields in your new entries in the group file (located at /etc/group) and password file are used for.

LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
5th Edition
ISBN:9781337569798
Author:ECKERT
Publisher:ECKERT
Chapter7: Working With The Bash Shell
Section: Chapter Questions
Problem 5DE
icon
Related questions
Question
Examine the UNIX commands  addgroup,   adduser, and  useradd commands
  1. Use the addgroup command to create a new group on your system called cs260.
  2. Using either the addgroup or adduser command, add your user account to the cs260 group
  3. Use the adduser command to add a new user to your system. This user should have the following stats:
    1. Username: testuser
    2. Default Group: testuser
    3. Shell: /bin/bash
    4. Full Name: Tess Tuser
    5. Room Number: 115
    6. Work Phone: 858-3007
    7. Leave Home Phone Empty
    8. Other: Likes the smell of new tires.
  4. Use the useradd command to add a new user to your system. This user should have the following stats:
    1. Username: jestuser
    2. Default Group: jestuser
    3. Shell: /bin/bash
    4. Full Name: Jessie Tuser
    5. Room Number: 119
    6. Work Phone: 858-3008
    7. Leave Home Phone Empty
    8. Other: Thinks fish are secretly plotting to take over the world.
  5. Use addgroup to put both new users into the cs260 group (in addition to their default groups).
Save screenshots (View->Take Screenshot in VirtualBox) of each command’s execution and the entries that were created in your password and group file. Additionally, write a short explanation of what the difference is between adduser and useradd as well as an explanation of what each of the fields in your new entries in the group file (located at /etc/group) and password file are used for.
  • Note: Most of the biographical information is stored in what is typically referred to as the GECOS field of the password file (located at /etc/passwd). Useradd uses the -c or –comment option for this setting information. You may have to examine how adduser added the first user to the file in order to add the second user in the same format.
  • When finished, restart your virtual system (or log out and back in again) so that your new group membership take place
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 6 images

Blurred answer
Follow-up Questions
Read through expert solutions to related follow-up questions below.
Follow-up Question
Use file permissions along with the  chown, chmod, and  chgrp commands to create a couple of folders:
  1. Create a directory (mkdir command) inside your home directory and set the permissions using the symbolic mode of chmod. The directory should be named dir1 and both you and the group cs260 should be able get into the directory and read from files. Only you should be able to write to the directory and no one other than you and the cs260 group should be able to access these files in any way.
    1. Create a file in this directory and put your name in it.
    2. Log in as Tess or Jessie and show that you can see the contents of the file.
    3. Save screenshots of both your commands to set up the folder, a listing of your home directory that shows the folder’s permissions, and you logged in as jesse/tess along with the contents of the file printed out on the screen (use vi or cat for this)
  2. Create a directory inside your home directory that both you and the cs260 group have full permissions on. No one else should have any permissions. Use the absolute mode of chmod to set these permissions.
    1. Log in as Tess or Jessie and put a file in the directory with their name in it. The cs260 group should have write access to this file.
    2. Log back in as yourself and show that you can modify the contents of the file.
      1. Save screenshots of both the commands you use to create the folder as well as those you use to create and modify the files. Also include a listing of your home directory that shows the folder’s permissions

        show step by step and show screenshots
Solution
Bartleby Expert
SEE SOLUTION
Follow-up Question
Use file permissions along with the  chown, chmod, and  chgrp commands to create a couple of folders:
  1. Create a directory (mkdir command) inside your home directory and set the permissions using the symbolic mode of chmod. The directory should be named dir1 and both you and the group cs260 should be able get into the directory and read from files. Only you should be able to write to the directory and no one other than you and the cs260 group should be able to access these files in any way.
    1. Create a file in this directory and put your name in it.
    2. Log in as Tess or Jessie and show that you can see the contents of the file.
    3. Save screenshots of both your commands to set up the folder, a listing of your home directory that shows the folder’s permissions, and you logged in as jesse/tess along with the contents of the file printed out on the screen (use vi or cat for this)
  2. Create a directory inside your home directory that both you and the cs260 group have full permissions on. No one else should have any permissions. Use the absolute mode of chmod to set these permissions.
    1. Log in as Tess or Jessie and put a file in the directory with their name in it. The cs260 group should have write access to this file.
    2. Log back in as yourself and show that you can modify the contents of the file.
      1. Save screenshots of both the commands you use to create the folder as well as those you use to create and modify the files. Also include a listing of your home directory that shows the folder’s permissions
Solution
Bartleby Expert
SEE SOLUTION
Knowledge Booster
Linux
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
Computer Science
ISBN:
9781337569798
Author:
ECKERT
Publisher:
CENGAGE L