Steps for Script

  1. Create a file named work.sh in your hw05 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.
    Show the access permissions of 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.
    Show the access permissions of this file.
  3. Give yourself read, write and execute permissions to the file work.sh.
    Give everyone else, including the group, execute permissions only.
    Show the access permissions of this file.
  4. Create a directory named dir1 in your hw05 directory.
    Give all users, including the group, read, write and execute access to this directory.
    Show the permissions on this directory.
  5. Create a directory named dir2 in your hw05 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.
    Show the permissions on this directory.
  6. Create a directory named dir3 in your hw05 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.
    Show the permissions on this directory.
  7. Make sure you are in your hw05 directory.
    Create a symbolic link named homework in your current directory to your hw directory.
    Show the permissions on this link.
  8. Use the homework link you just created to go to your hw directory.
    Show me you are in the correct location.
  9. Go back to your hw05 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.