Jump to content

Emegency!!!!!! (due by midnight)

- - - - -

  • Please log in to reply
2 replies to this topic

#1
coltonf93

coltonf93

    Newbie

  • Members
  • PipPip
  • 11 posts
I have been trying to figure this stuff out for a week and I honestly have no idea what i'm doing. I would go and talk to the teacher but it is due by midnight. =(

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 the
C 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

#2
untitled_1

untitled_1

    Learning Programmer

  • Members
  • PipPipPip
  • 89 posts
hmmm...this usually happens when you try do your homework an hour before its due, oh well good luck man...

#3
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
1) Have you read the man pages on touch? It's not a very big program. UNIX man pages : touch ()

2) Well, what programs control user access to files folders in *nix?

3) What part of it are you having issues with? For editor, you could use kate, vi, emacs, or most any other editor?

As a starting point, trying listing out ALL the commands you've been shown. You should be able to complete this assignment in about an hour, two hours if you're not a good typer. The fact that you haven't indicated what you've tried so far suggests you haven't sat down at a terminal and tried anything.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users