Everyone has read only Change the ownership of the file ABC to c12130 You will

Everyone has read only change the ownership of the

This preview shows page 1 - 2 out of 2 pages.

Everyone has read only. Change the ownership of the file “ABC” to c12130. (You will need to create the file.) Chown c12130 ABC Change the group of file “ABC” to mygrp. (Note: If you have changed the ownership, you can't change the group.) Chown mvgrp ABC The ls –l line for a file is (in part)
Image of page 1
- - - - r - - r - - 1 jimbob thefirm a. Who can read the file? Everyone and others. b. Who can modify the file? Owner c. Who can change the group? Owner What does umask do? The unmask command sets up a masking sequence to control the permissions of new files. What is the effect of typing umask 077? Only the owner can read or execute newly created files. I’m copying a file that has permissions of r w x r w - r - x and my umask is 027, what are the permissions of the new file? u=no permissions, g=write only, a= read, write and execute. Change the ownership of everything in and under the directory dir1 to fred. (Note: Since “fred” does not exist as a user, you will an error.) Chown -R fred dir1 What is dangerous about write permission on a directory? Anyone can create write to the file in the directory. Who can delete a file if the permissions in the directory are r w x r - x r w x and the file permissions are r w x r w x r w x? Everyone List three ways to create a user. 1. Edit the configuration files, manually create directories, etc. 2. Use a GUI interface, usually initiative. 3. Use the command line to run useradd and group add.
Image of page 2

You've reached the end of your free preview.

Want to read both pages?

  • Fall '19
  • File system permissions, Chmod, umask

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes