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.
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.
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
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.
- 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
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 6 images
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:
- 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.
- Create a file in this directory and put your name in it.
- Log in as Tess or Jessie and show that you can see the contents of the file.
- 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)
- 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.
- 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.
- Log back in as yourself and show that you can modify the contents of the file.
- 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
- 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
by Bartleby Expert
Follow-up Question
Use file permissions along with the chown, chmod, and chgrp commands to create a couple of folders:
- 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.
- Create a file in this directory and put your name in it.
- Log in as Tess or Jessie and show that you can see the contents of the file.
- 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)
- 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.
- 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.
- Log back in as yourself and show that you can modify the contents of the file.
- 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
by Bartleby Expert
Knowledge Booster
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.Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education