|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
I am on a hosting service that allows only one user and password.
By all appearances they use an Apache Server I asked this question of them and they said it could be done with FrontPage. I had FrontPage extensions installed on my site. I purchased FrontPage. I created a restricted subweb. Setting up users and disallowed anonymous. All works well, EXCEPT... The only way I can FTP to directories (not using FrontPage)in the subweb is to use my WebHosting UserName/Password. Any UserName/Password set up in FrontPage (including my admin) will not allow it. I want to grant FTP rights to certain users on this subweb only (who do not have FrontPage). Using the UserName/Password I set up for them in FrontPage (I have already tried all possible User/Role combinations in FrontPage Server admin). Anybody know a .htaccess trick or a FrontPage tip that could help me? (My hosting company does not provide SharePoint so at this time any tips pertaining to it is useless.) Thanks in Advance, Greg ![]() |
|
#2
|
|||
|
|||
|
First off, when it comes to FP Extension, I know nothing. Just a guess, I believe FP Extension uses PUT and DELETE methods.
With that in mind, you can use .htaccess to restrict access based on those methods. Your host needs to set AllowOverride Limit AuthConfig though. Then in your .htaccess file (at your subweb root) put something like this: Code:
<Limit PUT DELETE> AuthType Basic AuthName "Please login before publishing" AuthUserFile /server/path/to/private/dir/accessible/only/to/you/.htpasswd Require valid-user </Limit> Last edited by freebsd : January 26th, 2002 at 08:47 AM. |
|
#3
|
|||
|
|||
|
I do have override and have tried virtually all of the .htaccess auth you mentioned (and a lot more). It appears that the user/password requirement for my domain is below my root unless it's in a hidden file I don't know about on my root.
Thanks Greg |
|
#4
|
|||
|
|||
|
Even if it's below your root, it doesn't matter. Imagine the following code:
Code:
<Limit GET> AuthType Basic AuthName "Please login before publishing" AuthUserFile /server/path/to/private/dir/accessible/only/to/you/.htpasswd Require valid-user </Limit> And when you launch a port 80 via shell like so: $ telnet 12.34.56.78 80 Trying 12.34.56.78... Connected to www.yourhost.com. Escape character is '^]'. GET /your_user/his/dir/his/file.html HTTP/1.1 Host: www.yourdomain.com HTTP/1.1 401 Authorization Required This will work the same if FP really uses PUT and DELETE methods. |
![]() |
| Viewing: Dev Shed Forums > Other > Beginner Programming > Anyone Have Any Ideas On This... |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|