Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

UNIX & C class UNIX Homework - File Permissions Please show how to do it or your screen and answer the questions thank you CSC-292

UNIX & C class
UNIX Homework - File Permissions
Please show how to do it or your screen and answer the questions thank you
image text in transcribed
image text in transcribed
image text in transcribed
CSC-292 UNIX&C UNIX Homework - File Permissions 1. What are the permissions for your home directory set by your system administrator? What command did you use to answer the question? Show your session Command usedred and Permissions on my home directory in: 755 for wat 2. Consider the following files for directories /. /etc/passwd, which of.. bash_profile fin your home directory). Show the long listings for these files. What is the meaning of each field in the output of the is command? a. The permission for root directory is partially listed in the following screenshot The figure below shows the long list of /ete. The file permission for passwd is 644 (or w.) The "which of command find the location of file named - The permission for ofis 777 see the figure below for located in /in The acces person The "which command find the location of file name of - It is located in /bin The permission for dfis 777 see the figure below for www . 1 d. The access permission for listed in the following are 102 There is no bash profile in our UNIX system The permission for profile in my home directory is: 6 ore 3. For files and directories given above, show permissions as octal numbers. See answers in question 2 4. Change directory to your home directory. If there is not a directory in your home directory called temp, create it. Set permissions for temp to execute only and run the is td temp command. Now execute the is-temp command. What happens? Does it make sense to you? What are the minimum permissions required on a directory for the s-temp command to execute successfully. Set permissions for the temp directory to the minimum required and re- execute the is temp command. Show your session a After create the temp directory. I set permission to only b. temp command get temp: Permission denied error Conclusion in order to use "s-temp" command, the permission need read permission 11 c. Conclusions in order to uses temp command, the permission need read permission 3 of 3 SER total 5. Create a new directory. Use the ls -ld command to determine the permissions of the directory. Use the id command to determine your current group id number (adj. Now execute the command newgrp cmt270 and create another directory. Use the id command and is for the new directory to determine all the effects of the newer command This question is not working in NSU UNIX system and it will to be grated. 6. Use the we command with the letc/passwd file to determine how many accounts are your system. What does the head /etc/passwd command tell you about the first several accounts isted in /etc/passwd? Use the command cat-n /etc/passwd more to determine the line number of your entry in the file. Now combine the head and tail commands to list just the line for your account. Do you know of any other commands that will display the content? 7. Execute the command getent passwd. For your user id, execute the getent passwd userid. How does the getent command relate to the contents of the /etc/passwd fie? When do you think it would be better to use the getent command instead of the fetc/passwd file? You may want to read the man page to determine this. January February

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Relational Database Design A Practical Approach

Authors: Marilyn Campbell

1st Edition

1587193175, 978-1587193170

More Books

Students also viewed these Databases questions

Question

What is an SPV, true sale, bankruptcy-remote?

Answered: 1 week ago

Question

Q: Are training efforts appraised? How is this done?

Answered: 1 week ago

Question

2 What supply is and what affects it.

Answered: 1 week ago

Question

3 How supply and demand together determine market equilibrium.

Answered: 1 week ago