Beginner Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherBeginner Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old January 26th, 2002, 08:11 AM
gkeith gkeith is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2002
Posts: 3 gkeith User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Anyone Have Any Ideas On This...

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


Reply With Quote
  #2  
Old January 26th, 2002, 08:44 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #3  
Old January 26th, 2002, 08:51 AM
gkeith gkeith is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2002
Posts: 3 gkeith User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #4  
Old January 26th, 2002, 09:08 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherBeginner Programming > Anyone Have Any Ideas On This...


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway