image
image

Go Back   macosx.com > Mac Help Forums > HOWTO & FAQs

Reply
 
Thread Tools
  #25  
Old June 25th, 2002, 10:36 AM
uoba's Avatar
Re: member
 
Join Date: Aug 2001
Location: Merseyside, UK
Posts: 1,726
Thanks: 0
Thanked 0 Times in 0 Posts
uoba is on a distinguished road
On any machine, but sometimes...

it'll only ask once! (even twice on a pc!)
Reply With Quote
  #26  
Old September 11th, 2002, 04:18 PM
Member
 
Join Date: Oct 2001
Location: Sweden
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
Essage is on a distinguished road
How about http://100.100.100.100/~user/dir/

How can I password protect the dir-directory?
Reply With Quote
  #27  
Old November 8th, 2002, 05:31 PM
Ebonit's Avatar
Registered User
 
Join Date: Dec 2001
Location: Netherlands
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Ebonit is on a distinguished road
I find it very annoying that when people in this thread ask something that you don't get to see the answer! Please don't use private messages to answer! I, and I assume others as well, like to see the answers to those questions.
__________________
500Mhz G4 powerbook "Wallstreet" - MacOS X 10.2.4 + 350Mhz G4 Umax S900 - MacOS X 10.2.4 + 233Mhz iMac - MacOS 9.2.2 + 200Mhz Powermac 4400 Mac OS 8.1 + P4 2.4 Ghz - Windows2000Server & XP pro + 366 Mhz Celeron - Redhat Linux 7.3 pro + 150 Mhz Pentium I - Susu Linux
Reply With Quote
  #28  
Old December 30th, 2002, 02:17 PM
owaters's Avatar
Tech
 
Join Date: Jun 2002
Location: UK
Posts: 341
Thanks: 0
Thanked 0 Times in 0 Posts
owaters is on a distinguished road
Certain Dirs for certain people

Great guide/how to, works fine thanks

Just a few questions though....
I have created 2 users using:

sudo htpasswd -c .htpasswd username

and I would like to delete one of them. How do I go about doing this?

Next question..........

Is it possible to make a certain user goto a certain directory?
For example:

I have made a directory called 'remote' in my '...WebServer/Documents/'
In there is the .htaccess file containing:

AuthUserFile /private/etc/httpd/.htpasswd
AuthGroupFile /dev/null
AuthType Basic

<Limit GET POST>
require valid-user
</Limit>


In the 'remote' directory there a directory called 'guest'
When someone goes to the 'remote' directory they will be prompted.

If I put my username and pass in I will gain access to the 'remote' directory (like it does now).

If i put the guest username and pass in I would like to be taken to the 'guest' directory in the 'remote' directory.

Is this possible? if so how do i do it?

Thanks
Reply With Quote
  #29  
Old December 31st, 2002, 09:52 AM
hazmat's Avatar
Rusher of Din
 
Join Date: Oct 2001
Location: Brooklyn, NY
Posts: 1,803
Thanks: 0
Thanked 0 Times in 0 Posts
hazmat is on a distinguished road
I don't think so. These things work recursively. You COULD do something along the lines of what you are asking (not totally AFAIK), but it's ugly. I would just use different directories entirely.

And to remove a user, just remove the entry in .htpasswd.
Reply With Quote
  #30  
Old March 16th, 2003, 05:20 AM
owaters's Avatar
Tech
 
Join Date: Jun 2002
Location: UK
Posts: 341
Thanks: 0
Thanked 0 Times in 0 Posts
owaters is on a distinguished road
Forbidden?

Hi,

Just had to reinstall my system, therefore having to set all this up again.

I have a problem this time though.

I have followed the tutorial about creating a symbolic link and having it protected.
I have created a symbolic link from
/Library/WebServer/Documents/music
to
/Users/oz/Music/iTunes/iTunes\ Music/

but now when I goto that directory I get a page with:

Forbidden
You don't have permission to access /music/ on this server


Can anyone help?

I have added the line in httpd.conf, which now looks like:
Quote:
# Control access to UserDir directories. The following is an example
# for a site where these directories are restricted to read-only.
#
#<Directory /home/*/Sites>
# AllowOverride FileInfo AuthConfig Limit
# Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
# <Limit GET POST OPTIONS PROPFIND>
# Order allow,deny
# Allow from all
# </Limit>
# <LimitExcept GET POST OPTIONS PROPFIND>
# Order deny,allow
# Deny from all
# </LimitExcept>
#</Directory>

<Directory "/Library/WebServer/Documents/music">
AllowOverride AuthConfig
</Directory>
Is that right?

Last edited by owaters; March 16th, 2003 at 05:27 AM.
Reply With Quote
  #31  
Old March 16th, 2003, 11:16 AM
hazmat's Avatar
Rusher of Din
 
Join Date: Oct 2001
Location: Brooklyn, NY
Posts: 1,803
Thanks: 0
Thanked 0 Times in 0 Posts
hazmat is on a distinguished road
Well either make sure that the permissions on the path to '/Users/oz/Music/iTunes/iTunes Music' is publicly accessible, or better yet, IMO, instead of a sym link use the Alias directive in httpd.conf. Sym links for a web server are a funny thing.

Alias /music '/Users/oz/Music/iTunes/iTunes Music'

That should work.
Reply With Quote
  #32  
Old March 16th, 2003, 01:03 PM
owaters's Avatar
Tech
 
Join Date: Jun 2002
Location: UK
Posts: 341
Thanks: 0
Thanked 0 Times in 0 Posts
owaters is on a distinguished road
Where should I put that line in httpd.conf?
Reply With Quote
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
password problems with apache macidiot Design & Media 1 January 31st, 2003 11:55 PM
password protect a document/file chicodoggy Mac OS X System & Mac Software 2 October 6th, 2002 12:49 PM
updating from 10.1.x to 10.2 turns off password protection for apache served websites couzteau Unix & X11 6 September 25th, 2002 04:43 PM
is it possible to password protect folders? Torz Mac OS X System & Mac Software 8 September 14th, 2002 12:08 PM
[HOWTO] - Password protect files and/or folders? themacko HOWTO & FAQs 5 June 19th, 2002 06:34 PM


All times are GMT -5. The time now is 11:31 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.