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)
- - - - 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.
You've reached the end of your free preview.
Want to read both pages?
- Fall '19
- File system permissions, Chmod, umask