[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] making the .htaccess file visible
- Subject: Re: [cobalt-users] making the .htaccess file visible
- From: "Robert Davis" <rdavis@xxxxxxxxxxx>
- Date: Tue Dec 7 16:08:19 1999
Ahoy CW
The whole idea behind a file with a dot in front of it is to make it
invisible. You cannot view it from your FTP, nor can you make it viewable.
That would defeat the purpose.
What you need to do is telnet to the RaQ2, and view it from the "shell".
Here's how:
On Windows 95, click Start, then Run, and type telnet and hit Enter
Now click Connect, then Remote System.
In the slot labeled Host Name, enter the IP address of your RaQ2 (if you
don't know it, Click Start, Run, type "ping www.anysiteonyourraq.com" and
hit enter. There's the number.)
Port should be telnet, Term Type can be VT100. Hit Enter
By and by, you will se "login:" -- enter "admin"
Then you'll see "password", so enter that
You are now working at your keyboard, but operating that remote machine,
your RaQ2. That's the "shell".
Type "cd
/home/sites/www.thesitewhereyourhtaccessfileis.com/thedirectorywhereyourhtac
cessfileis"
Now you are in the directory where you hope to view your .htaccess file.
List this directory by typing "ls -lA | more" ("ls" does the listing, "-"
throws a switch to activate the options which follow, "l" is an option which
makes it list all the permissions and ownerships, "A" is an option which
makes it list hidden files like .htaccess, the "|" [which you find third key
to the right of your zero, looking like two vertical dashes] is a pipe which
sends the output through what follows, and "more" makes the list come down
to you one page at a time). Hit the spacebar to advance a page at a time.
To view your file, type "more .htaccess". Again, hit the spacebar to advance
a space at a time.
To change ownerships, use "chown admin:flubber .htaccess". "chown" changes
ownership, "admin" specifies the user, "flubber" specifies the group, and
".htaccess" is the file whose ownership you want to change.
To change permissions, type, for instance, "chmod 755 .htaccess" "chmod"
changes permission. "755" (or whichever number) is the permission. First
digit is the permission of the owner. Second is permission for the group.
Third is permission for the public. Each digit is up to three numbers added
together. 1 is permission to execute the file. 2 is permission to write the
file. 4 is permission to read the file. So 7 is all three permissions. 5 is
read and execute. 6 is write and read.
To edit the file ........... well, these primitive Unix editors are a pain
in the ass.
Congratulations! You are now a certified Unix geek!
Aloha
Davis
p.s. Look around for an old 486. You should be able to score one free.
Install Debian from floppy disk (get it free at www.debian.org). Now you
have a simple little Linux machine where you can learn to geek around. It
didn't cost you anything, but you will find it absolutely invaluable while
learning to work the shell.
p.p.s /dev/null is the Unix trash can, not a file status.
-----Original Message-----
From: Internet Account <vma@xxxxxxxxxxxx>
To: cobalt-users@xxxxxxxxxxxxxxx <cobalt-users@xxxxxxxxxxxxxxx>
Date: Tuesday, December 07, 1999 6:13 PM
Subject: [cobalt-users] making the .htaccess file visible
>Does anyone know how to make the .htacces file visible for just one site on
>the RAQ2? Because of this null dev status, I cannot visually verify an
>upload nor can I access an .htacess document to visually verify it is not
>corrupted during an upload. Additionally,
>because I cannot view an .htaccess, I cannot visually verify its permission
>status nor can I verify permission changes. More over, I cannot rename an
>.htaccess document
>during beta testing. htaccess file visible for just one site on the RAQ2?
>
>Thanks for the help
>CW
>
>
>_______________________________________________
>cobalt-users mailing list
>cobalt-users@xxxxxxxxxxxxxxx
>http://list.cobalt.com/mailman/listinfo/cobalt-users
>