02 September 2009

Password protecting the right place

A question:
I've been trying to complete subtask 1.4. I think I am running into some problems, but I'm honestly not sure. I'm a little concerned that I have password protected my public html directory. I followed the steps on the class website exactly, and what I came up with is this:
directory: /afs/isis.unc.edu/home/o/n/onyen/public_html
username: something
password: something else (that was a typo, which reminds me, is the backspace key functional in UNIX?)
Response:
It looks to me as if you have indeed password protected your public_html directory and not a subdirectory that is contained inside the public_html directory. I would recommend that you go back into your file structure and remove the protection from the public_html directory and then put in on a subdirectory within that directory. The steps go like the following. I have used colors only to highlight the commands and arguments. The colors have no relevance in the shell where you are operations.
  • connect to Isis
  • choose option 6 to enter shell
  • as the $ or the BASH prompt, check where you are with pwd
  • you are probably at your top level, so check to see what's at that level with ls (that's an ELL ESS)
  • if you see the public_html directory in your list of directories and files, change to that subdirectory with the cd command and the name of the subdirectory as the argument. It will look like this cd public_html
  • once there, look to see what's in there, but this time list all of the contents using the command ls and the argument -a. It will look like ls -a
  • If you see a file with a name like .htaccess (there may also be another file with a similar name there, but this one is the one to note), this directory is password protected. You don't want this, so run the protect command one more time
  • once in the protect dialog, work your way to the options and select the option that removes the protection from the public_html directory, then exit the protect dialog.
  • check again to be sure where you are by using pwd. You should still be in the public_html directory.
  • run the ls command one more time to see the name of the subdirectory within the public_html directory that you really want to protect
  • change directories to go down into that new directory using cd name_of_directory
  • once inside that new directory, use the command protect one more time and, by going through the steps in the protect dialog, protect only the new directory, not the public_html directory.
The backspace sometimes works, but sometimes it doesn't. Whether is works or not is a matter of what server module you are working in at the time. Some of them recognize the backspace, others don't. The protect dialog is one that doesn't seem to. If you make an error, and can't rectify it, finish the action and then go back to either edit your mistake or to delete your mistake and then restart the process.

1 comments:

Justin said...

Control + H is also recognized as backspace on most shells in linux. I've used it before when the backspace key doesn't work (or just types gibberish instead of backspacing).