Web Hosting Talk







View Full Version : FTP question


Jen
09-11-2000, 08:26 PM
I use CuteFTP and whenever i use a .htaccess file and upload it i can not see it? How do you fix this i mailed them but never recived a reply but i thought just maybe someone here new how to fix it :)

Félix C.Courtemanche
09-11-2000, 08:42 PM
You can also add -a to your REMOTE mask in your FTP client... That will solve the problem and show all files beginning with .

It is easy to set if you are using CuteFTP and WsFTP.

Enjoy!

DanielP
09-11-2000, 08:44 PM
Well I'll be.....

heh, thanks for the tip, thats a new one for me! :)

A couple clients of mine will find that very useful!

Thanks a ton :)

Félix C.Courtemanche
09-11-2000, 09:15 PM
As I said Anette... using cuteFTP or WsFTP it works just fine... and it is even easy to set up.
You have
> Local Mask (put nothing)
> Remote Mask (put -a or -la)

That's it :)

Laci
09-11-2000, 09:30 PM
Can see hidden files(you set the option from the options menu) *G* its called Leap FTP http://www.leapware.com or from Tucows its shareware 30$

Duster
09-11-2000, 09:32 PM
Pardon, Ms. Den Mother, but that is not accurate with the present version of WS FTP. With no alteration from the stock configuration, I see all my files, even those beginning with a dot.

May I have a brownie now?

BC
09-11-2000, 09:51 PM
*chortle chortle chortle*

Too bad Annette... Join the Joneses.com ;)

Félix C.Courtemanche
09-11-2000, 09:56 PM
Originally posted by Duster
Pardon, Ms. Den Mother, but that is not accurate with the present version of WS FTP. With no alteration from the stock configuration, I see all my files, even those beginning with a dot.

In fact Duster, it depends on the system you are FTPing to. If the system settings declare the .files to be hidden, your FTP clients will not see them unless otherwise advised. Of course, there might be a newest version of WsFTP that I didn't try that automagically shows the .files but that would be somehow stupid because by definitions .files are supposed to be hidden, thus you shouldn't need to play with them.

When someone don't see the '.', doing what I wrote will solve the problem.

Martie
09-11-2000, 09:59 PM
:blush:
Dont feel bad Annette---cough cough--I use a VERY old version of CuteFTP myself. I even UPdated it long ago and didnt like the newer version so went back to this :blush: REAL old one.

BC
09-11-2000, 10:50 PM
I plead total ignorance on the matter :p

Jen
09-12-2000, 02:24 AM
Ok how do i use <<REMOTE mask in your FTP client>>> i have cuteFTP 4.0 i messed with it some with no luck!! I've been with a few host and on some i could see .htaccess files but not with this one i can't deleted if i can't see it :)

oh how do you guys post thouse litte faces i see you have ones posted thats not one to chose from?

Martie
09-12-2000, 03:06 AM
Jen----if you reply to a message--look at top and you see smilies link OR just go to the faq area, where member info,profile and such is located and click on- what are smilies link---they both show you the smilies and give you the code to type for the smiley to appear :eek: Pretty cool!

DanielP
09-12-2000, 04:00 AM
:emlaugh:

Well I'm using WS_FTP 95 Version 4, does that date me well enough? hehe Wait.... Guess not lol :)

:scatter:


I guess its time for me to download cuteFTP to see what all the fuss is about so I can explain stuff hu? :)

Chicken
09-12-2000, 10:21 AM
Originally posted by Jen
i can't deleted if i can't see it :)

Jen, you can open notepad, save the blank page and upload it. Then once it is on the server change whatever.txt to .htaccess --- No, this isn't deleting it exactly, but uploading a blank one has the same effect.

Ohhh, and smilies? More than you could ever want to see at: http://smilecwm.tripod.com (free to use within messages, but don't use them with your board without permission.

Félix C.Courtemanche
09-12-2000, 10:22 AM
In fact, My own personaly opinion about the latest cute FTP is that it s.... I have a... 1-2 years old version and it works just fine. It is fast, easy to use and does everything without trying to be TOO user friendly (wich gets on my nerves really quickly)

In cute FTP, the remote mask thing is where you create an "account"
you can edit the accoutn to modify things such as the ip, the username and password... remote starting directory, local starting directory, etc...
By there is an area called Local Mask and Remote Mask.

You just found where to put '-a' or '-la'!

Jen
09-12-2000, 12:50 PM
Thanks Félix that worked you guys are the best :)

Learner
09-14-2000, 11:54 PM
Most of the dumb computer institutes out here don't even teach a fraction of what i am picking up from you guys, gurus and gods in this forum.

And that too with sooooo much entertainment!!!!

I'd call this INFOTAINMENT!!!!!! Great Stuff!!!!!

Learner

gthorley
10-20-2000, 03:47 PM
I set up my WS_FTP with the remote mask -a and when I look at a users directory I see two files now visible one is .bash_history and the other is .ftphelp. Can someone tell me what these are for? The fact that I don't know tells me I probably don't need to know but just curious.

Also to password protect my directories does the .htaccess file get loaded into just the main web folder or all folders?

While I am at it. Is there any reason to use cuteftp over ws_ftp. The latter is free unless you use the pro vs?

Chicken
10-20-2000, 04:04 PM
Originally posted by gthorley
Also to password protect my directories does the .htaccess file get loaded into just the main web folder or all folders?

While I am at it. Is there any reason to use cuteftp over ws_ftp. The latter is free unless you use the pro vs?

You'll want to upload .htaccess into the directory you want to protect. If you upload it to your main directory, no one will be able to access your site without a password (guessing this isn't what you want). This will also protect directories within that directory -eh? Example below assumes your home directory is "web" and that you want to protect "here":

/web/here/another/file.html

Putting .htaccess in "here" will also prevent people from accessing your "another" directory.

Also, I use ws_ftp, but personal preference wins this debate.

jonelin
10-20-2000, 04:13 PM
i'm using 95le version that i downloaded about three years ago. i haven't had a reason to switch. :D i recently switched hosts and have only ever been on unix servers, and this was the first one i wasn't able to see my .htaccess files. so i'm glad i caught this thread. i put the -a where you said and voila!

as for password protection, you need to upload a specific .htaccess and .htpasswd only to the directory (or directories) you want password protected.

Félix C.Courtemanche
10-20-2000, 04:45 PM
Originally posted by gthorley
I set up my WS_FTP with the remote mask -a and when I look at a users directory I see two files now visible one is .bash_history and the other is .ftphelp. Can someone tell me what these are for? The fact that I don't know tells me I probably don't need to know but just curious.

.ftphelp is the file that is displayed when you log on your ftp session (I assume that you have a RAQ with telnet access enabled here). IT shows where to upload files, general welcome message, etc.

.bash_history is the file that contains the last X number of lines typed in telnet (or ssh) by that user.

For example, in linux if you hit he up arrow, your last typed line will come up, be it that you typed it 1 second ago or 4 days ago. This is all stored in the .bash_history.

Security note. Since this file is NOT deleted by default, if you typed in your password to root too quickly and it was displayed in your shell, your .bash_history will contain it.

Finally, for the .htaccess, it is always in the base WEB directory from which you want it to take effect.
so...
if it is in the dir members, members/img, members/data/user/img, members/some/other/dir will also be affected by it (it is recursive). If you put another .htaccess file in members/data, it will complement / override the previous settings of the .htaccess file set earlier.

Final note... Overusage of .htaccess file will only slow down your web site, so try to keep it simple and straight-forward!

Mirco
10-20-2000, 05:14 PM
If you use proftpd for example, add following line to conf file:

LsDefaultOptions "-a"

webfors
10-20-2000, 07:07 PM
I use WSFTP and it shows hidden files by default. I also use AceFtp and you can go into "Options" - "General Preferences" - "Viewer" - click on show hidden files.

That's all there is to it.

webfors
10-20-2000, 07:16 PM
Here's a post I made before regarding how to set up a .htaccess file:

--------
For the password protected directory, all you have to do is add the users to the .htaccess file that you want to give access to.

To see the .htaccess file you have to use the following command to show hidden files:

ls -ails

And to edit it you can use pico or vi:

pico .htaccess

And then add the following to add a user to it:

require user username

Where username is any user you want to grant access to.

Here is a sample of a basic .htaccess file:

AuthType Basic
AddHandler cgi-script .cgi
AuthName "Enter At Your Own Risk!"
require user frank
require user john
-----------

Hope this helps.

gthorley
10-20-2000, 07:33 PM
Thanks for the replies. I seem to be okay on the FTP thing and WS_FTP is what I will use.

I have further questions on password protection and directory structure but will start a new thread with a pertinent title.

If I had the time and inclination I would love to read every thread posted on this site. The wealth of information is astounding and the contribuors are to be commended for taking the time to share their knowledge