June 27, 2007

What are the permissions of (ass1.c, ass1, and CIT497A) at each stage of the following command (Unix)?

What are the permissions of (ass1.c, ass1, and CIT497A) at each stage of the following command:?

  1. umask 027
  2. ./ass1 > CIT497A/ass1
  3. cc -o ass1 ass1.c
  4. vi assl.c
  5. chmod 640 ass1.c
  6. umask 027

    after this all files created by your username will have the default permition that looks like this " rwxr-x—"

    vi assl.c

    >rwxr-x— assl.c

    chmod 640 ass1.c

    >rw-r—– ass1.c

    chmod og+w ass1.c

    >-rw-rw–w- ass1.c

    cc -o ass1 ass1.c

    >rwxr-x— ass1

    chmod a+x ass1

    >-rwxrwx-wx ass1

    umask 077
    mkdir CIT497A

    > drwx—— CIT497A

    ./ass1 > CIT497A/ass1

    > -rwx—— CIT497A/ass1

    there you go.

  7. chmod og+w ass1.c
  8. ls -l
  9. ls -l
  10. mkdir CIT497A
  11. (Red Hat Linux)
  12. umask 077
  13. chmod a+x ass1

Tags: ,

Tell a Friend Today!

del.icio.us Digg Furl Reddit Ask BlinkList blogmarks Blogg-Buzz Google Ma.gnolia Netscape ppnow Rojo Shadows Simpy Socializer Spurl StumbleUpon Tailrank Technorati Windows Live Wists Yahoo! Help

Permalink • Print

Track this entry

RSS BlogPulse

RSS Technorati Cosmos

Related Searches

, , , ,