Class Session: Monday Jan 28, 2019
If you get an internal service error on your tasks file, it is probably because something went wrong with this setup: Task01.05c Password Protect Directory
If you can't get the following steps to work, or if you are overwhelmed, see me for office hours and I will help you get it fixed.
Maybe you did not finish the process, or you accidentally deleted one of the hidden files with your sftp program. It does not matter, it is broken and it needs to be fixed.
If you already have a tasks directory and you have screen shots in there, you will still be able to correct it. You do not need to delete the tasks directory or the screen shots.
Log into your opal account on the command line; do not use sftp for the following steps. Mac users should use terminal, PC users should use Secure Shell. This will take you to your user directory.
Change the directory to you tasks directory. You can do it in one step:
To confirm that you are in your
public_html/tasks directory, you can type in
pwd (present working directory)
if you see this:
/fs1/home/yourOnyen/public_html/tasks then you are in the right place.
Now run the list all command (ls -a):
If you do not see the
.htpasswd file, then that is the reason that your tasks folder is has an internal service error. You probably only have the
Next run this command again:
and hit Enter. This will activate a script that will prompt you to create a user account and a password. Do not use your onyen password, but you can use your onyen user name. Since I will be the only other person logging into your tasks directory, you can use
larry. But you can use any name you like, as long as you let me know the user name and password. You should not use your onyen password, because you will need to provide me with the password, and you should not share that with anyone, including UNC professors or instructors. Repeating this step will just overwrite the files.
Verify that you are in the directory you want to protect and follow the instructions on the screen.
The program creates two files in the directory you are protecting:
You won't see these files on a regular
ls command, you must type