IT 244: Introduction to Linux/Unix
Homework 5

Due

Sunday, October 6th at 11:59 PM

What You Need to Do

Setup

You Must Use Numeric Format When Using chmod

Specification

  1. Using touch create a file named work.sh in your hw5 directory.
    Give this file read and write permission (no execute permissions) for you alone.
    No other account should have any access privileges to this file.
  2. Change the permissions on the work.sh file so you have read and write permissions.
    Give everybody else, including the group, read permissions only.
  3. Give yourself read, write and execute permissions to the file work.sh.
    Give everyone else, including the group, execute permissions only.
  4. Create a directory named dir1 in your hw5 directory.
    Give all users read, write and execute access to this directory.
  5. Create a directory named dir2 in your hw5 directory.
    Give yourself read, write and execute permissions on this directory.
    Give the group and everyone else only those permissions which will let them run ls on this directory, but nothing else.
  6. Create a directory named dir3 in your hw5 directory.
    Give yourself full permissions to this directory.
    Give only the group the ability to run ls on this directory and to cd into it.
    Give everyone else no privileges on this directory.
  7. You should be in your hw5 directory.
    Create a symbolic link named homework in your current directory to your hw directory.
  8. Use the homework link you just created to go to your hw directory.
  9. Go back to your hw5 directory.
    Show the true location of this directory in the /courses hierarchy.
  10. Go to your home directory.
    Perform a long listing to see the absolute pathname of your it244 directory.
    cd into this directory using an absolute pathname.
    This pathname must include the /courses directory.
    Show your new location.

Testing

Copyright © 2020 Glenn Hoffman. All rights reserved. May not be reproduced without permission.