In this week, we will again use our virtual machine. This time, we will be creating two users and granting selected permissions from one user to the other.
First, create a new user with “useradd -m <username>”. Then, repeat the command for a second user. Set a password for each user with “passwd <username>”.
Next, we will create a group for our users with “groupadd <groupname>”. Add your users to the group with “usermod -G <groupname> <username>”.
Test out logging in as your first user with the command “su – <username>”. Next, we will create three files using the following commands:
You can validate the contents of file1 with “cat file1”. Let’s validate the file permissions of our files with “ls -l”. Take a screenshot of the output. Every file has nine permissions, ignoring the first one. The first three are for the user, the next three are for the group, and the final three are for others.
Next, we are going to adjust permissions so that:
To make these changes, you’ll use the “chmod” command to adjust permissions, and you’ll need to add file2 to the group our users are in using “chown :<groupname> file2”. To use the chmod command, there are two syntaxes: octal syntax and letter syntax. We are going to use the letter syntax in these examples. If you know octal syntax, feel free to use that instead.
The format is going to be “chmod <who><operation><permissions> <filename>”. The <who> value will be one of u for user, g for group, o for others, or a for all. The <operation> will be + to add permissions and – to remove permissions. The <permissions> will be any of r for read, w for write, or x for execute. Set the permissions of the files to the bulleted list above. Validate your permissions with “ls -l” and take a screenshot of the output.
Then, switch to the second user account and verify the permissions using the following commands.
Take a screenshot of the results of these commands. If the results don’t match expectations, you can switch back to your user1 and adjust permissions again to get it right.
In your submission, include:
Why Work with Us
Top Quality and Well-Researched Papers
Our writers have been trained on how to handle papers placed by our clients. The writer must read and understand before embarking on writing the papers. In case of any issue that needs clarification, writers are encouraged to ask the client or support.
Professional and Experienced Academic Writers
Our team comprises of the best writers and editors. We do thorough vetting during recruitment to make sure that our writers have the knowledge and experience we aspire in the team.
Free Unlimited Revisions
Our aim is to give the client the best outcome. If for some reason you are not satisfied with the wok done, you can ask the paper to be revised or rewritten. This will be done to your satisfaction with no extra charges.
Prompt Delivery and 100% Money-Back-Guarantee
We have writers who work round the clock. This helps in making sure that all our clients’ papers are delivered on time. If we have issues with the deadline, we will ask for extension. If its not possible, the money is fully refunded.
Original & Confidential
Our clients’ confidentiality is highly respected. We can never disclose our clients’ details to third parties. In the same regard, we strive to give our clients 100% original papers. We do not tolerate plagiarism from our writers.
24/7 Customer Support
Clients can reach us any time of the day, and any day of the week. There is a live chat, email or phone numbers to help in ease of communication.
Try it now!
How it works?
Follow these simple steps to get your paper done
Place your order
Fill in the order form and provide all details of your assignment.
Proceed with the payment
Choose the payment system that suits you most.
Receive the final file
Once your paper is ready, we will email it to you.
Our Services
You should never be worried about your papers even in the middle of the night. Our team will work round the clock to deliver.
Essays
We have an able team that can deliver your work in the shortest time possible. The academic level or the type of work should never be a hindrance. Our highly competent support team is always around (24/7) to give you any assistance you may need.
Admissions
Admission Essays & Business Writing Help
Do you need to be admitted in your dream institution but find it challenging to write an admission essay? Our team is in a position to write the best letter that will guarantee you an admission. We do as well write the best business proposals and reports.
Reviews
Editing Support
Writing can be fun and enjoyable when everything has been done right. Writing is not just enough without proper editing and proofreading. We have a team of editors that ensure everything falls in place, whether its issues to do with grammar or referencing styles.
Reviews
Revision Support
Once the paper has been done and submitted, that is not the end of it. You can always ask for amendment or improvement if you feel something has not been done right. Our team of writers and editors will gladly assist you to your satisfaction. Revision is free of charge.