Here is the assignment
--------------------------------
NOTE: Completely answer all questions. Presentation is as important as the
correctness of your results. Super
uous writing will count against you. The
softcopy of the homework is due on 21st Sept, 2011 at 11:59 PM.
Problem 1. Reading Assignment: Read the man page for touch. Please
brie
y explain touch command along with some examples.(25 Points)
Problem 2. Suppose that you want to block everyone at the main door of
your home directory hierarchy. Explain the necessary steps you will take to do
this.(25 Points)
Problem 3. Give a command to display the current value of your `umask'.
Change to your home directory and create a le le1 and a directory dir12
under the /temp/dir1 directory. Use the touch command for creating le1.
Change directory to /temp/dir1. Use an editor to create a le hello.c that
contains the following C program.
#include <stdio.h>
main(void)
{
printf (\Hello, world!nn");
}
Now run the gcc -o greeting hello.c command to generate the executable for theC program in the hello.c le and place it in the greeting le. Display long listing
of dir1 to display permissions for le1, hello.c, greeting, and dir12. Show your
results.
Change the mask value to 077 and repeat the above task but use the /temp/dir2
directory this time. Do the permissions for le1, hello.c, greeting, and dir12 un-
der the /temp/dir2 directory make sense with the new umask value? Show your result.
sorry to ask for help on my homework but im desperate. I have less than an hour to get this turned in.
Thanks a ton


Sign In
Create Account


Back to top









