PDA

View Full Version : HELP??? How to edit .htpasswrd files in new manager?



the1percentsolution
09-13-2003, 10:31 AM
In the old plusmail system one could check an advanced or expert box and edit the "hidden" files. Under the "new and improved??" manager system no such thing is apparent.

Where is the editor I need? I really need this to work at a minimum. Since the upgrade my Paypal link has been broken and I'm losing $$$. Yes, I put in a ticket for all the good it has done me so far.

The "manual" is a joke - says you can edit files but does not tell how to edit the "hidden" ones.

HELP
t1ps

FZ
09-13-2003, 10:55 AM
I found the same thing - the new File Manager is totally useless. It doesn't even work for basic files... Not properly anyway. But that's not a major problem for me - there is always FTP and SSH.

Anyway, to answer your question I don't think there is an advanced mode for this FM. You'll have to do it one of the other ways described here: http://forums.westhost.com/phpBB2/viewtopic.php?t=603

jalal
09-13-2003, 11:09 AM
Login with SSH and use an editor? Such as pico or vi.

wildjokerdesign
09-13-2003, 11:13 AM
Also if you want to grab a free copy of WS_FTP wich is my preferred method you can find it on thier site http://www.ipswitch.com/

If you go that rout and have trouble with the program let me know and I will try and lead you through some of the stuff. You would also need a text editor on your computer to us this method because you would have to open the file up and edit it and then upload it.

SSH is faster but I have trouble finding my way around in it so maybe design64 or jalal can help you if you go that route.

the1percentsolution
09-13-2003, 11:21 AM
Thanks for the info on the ftp program. After I download and edit the file, how to I tell if the permissions are set correctly on the file after I upload it?

Thanks,
t1ps

wildjokerdesign
09-13-2003, 11:39 AM
With WS_FTP you right click on the file and then look for chmod [UNIX]. The only drawback here is that WS_FTP defalts to 644 when you do this so you have to know what permission you want to set it to.

I think you would want to have it set to allow you full access but groups and other only read access which would be 744. I used to check what the default was when I was not sure using the File Manager but can't do that now. Fayez or jalal do you know for cetain?

wildjokerdesign
09-13-2003, 11:40 AM
Also I have WS_FTP Pro not the free version so if I state something you do not have access to that may be the reason.. I do think that everything I have said is in the free version though.

FZ
09-13-2003, 03:19 PM
Seems as if the default "CHMOD permissions" for .ht* files is 644 (-rw-r--r--). Like you said, this is probably the default for all files that you create.

ihdihd
09-15-2003, 06:39 PM
I've been trying to do this for 3 days now. It seems that the .htaccess files are all protected, and owned by root or something, becuase its not giving me change permissions... any ideas on why this could be so? Anyone also having this problem? Any suggested fixes?

FZ
09-16-2003, 03:05 PM
ihdihd,

Which .htaccess files are you talking about (what is the specific error)? Ones that were migrated from your old account? It is possible that WestHost accidentally did that on those, but for .ht* files you create yourself, this should not be the case. Maybe you should try renaming them (or deleting) and creating new ones...

ihdihd
09-16-2003, 09:44 PM
Hi Fayez,

I'm getting the error on the .htaccess files that westhost migrated for me. The error is the permission denied one that you get when trying to access the file without proper levels. in fact the file doesn't show up when i do an ls -l on the proper directory, just confirming what i know.

Problem is that I cant even delete the file or rename it, which means I cant change access permissions on it. A friend said i should try sudo pico but even that doesnt work cause westhost's unix based system is not accepting the command (or su- for that matter). Any help in this would be tremendously appreciated! Thanks in advance,

Amjed

FZ
09-17-2003, 03:25 AM
Amjed,

If that is the problem then you have no choice but to contact WestHost and have them look at it/change the owner of the files. I tried chown at the SSH prompt too, but it does not let you change ownership from root (although it let me change ownership of files FROM me TO root!).

ihdihd
09-17-2003, 12:53 PM
thanks so much fayez... i guess i just have to wait for them to answer my ticket... i don't know what else to do. I know they're a good host but i feel like my hands are tied. anyway, i'm a patient man and for that patience i best be rewarded with an answer soon :)

thanks again for your help,

amjed

jalal
09-17-2003, 02:22 PM
amjed

Note that 'ls -l' won't show the files anyway, you need to do:

$ ls -al

to see dot files.

ihdihd
09-19-2003, 12:05 PM
thanks jalal, you were right, ls-al did pull up the dot files. Strange thing is that these files are assigned to the same user as some of my regular files, so i don't understand why they're not opening up. i basically have 4 users in my entire directory, ktpforums (my login) vuser (no idea), root (for which i have no pwd), and 1033 which is what these files are set to, whatever that is. Any ideas?

FZ
09-19-2003, 12:16 PM
Amjed,

Try this:


chown ktpforums:vuser filename

Where filename is the file name (e.g. .htaccess) that is assigned to "1033". If it lets you do that, you should then be able to modify the file(s) as you wish.

ihdihd
09-21-2003, 12:27 PM
it says chown command unknown. I'm giving up on this thing.. these people just plain out suck... no matter how hard you complain or whine or belittle yourself they just don't answer... its really mind boggling!

ihdihd
09-21-2003, 12:27 PM
i appreciate your help fayer! thanks!