Question: Help in Linux Operation system command. Display the complete command that will accomplish the following actions. (ie. If you were asked to extract the second

Help in Linux Operation system command.

Display the complete command that will accomplish the following actions. (ie. If you were asked to extract the second column of information from a file called food you would display the following: cut f2 food (NOT just the word cut))

1. What are two different ways to determine the ownership of the /etc/passwd file? (2 pts)

2. Create a file in your home directory named myfile. What sequence of commands will allow you to transfer ownership of this file to the root user? (2 pts)

3. Who is now listed as the user owner and the group owner for the file myfile?

4. What are two different ways to determine which groups you are a member of? (2 pts)

5. What is the primary group of the sysadmin user?

6. What command would you use to change the sysadmin users primary group to the adm group?

7. What command would you use to verify this change took place? What was the GID of this group?

8. Create a directory called spreadsheets in your home directory.

What command would you use to remove read, write, and execute permissions from group and others for the spreadsheets directory using the rwx symbols? (2 pts)

What command can you use to verify this change took place??

9. Using octal permissions, assign the following permissions to the myfile file: -rwxrw-r- -?

10. What command would you use so that all new files created by you have default permissions of: -rw-r- - - - -?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!