Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Nov 1998 10:23:58 -0600
From:      Kris Kirby <kris@airnet.net>
To:        Jerry <jerryr@ComCAT.COM>
Cc:        questions@FreeBSD.ORG
Subject:   Re: FTP upload access to site
Message-ID:  <364C5D1E.CF0CE2A3@airnet.net>
References:  <Pine.GSO.4.02A.9811122142520.2865-100000@uw>

next in thread | previous in thread | raw e-mail | index | archive | help
Jerry wrote:
> 
> I'm trying to give particular users access to directories under my domain
> example:
> domain.com/stuff/user1
> domain.com/stuff/user2
> 
> I want each to be able to upload to their own dir only (user1, user2).
> but I also want the dirs to be seen on the web without ~ username etc...
> just as is domain.com/stuff/user* .  I created usernames and made their
> 'home' dir stuff.  But its not seen on the web??

First, it would have been nice to tell us if you are using Apache or
some other product. Second, assuming you are using Apache, you must have
either A) Not read the docs, or B) Not edited the configuration files.
Since I've been guilty of both, I won't pass judgement on you, but
that's not to say others won't.

If you are using Apache, and the latest and greatest (1.3.3,
compiles/runs "out of the box"), the following from srm.conf should ring
bells:

# UserDir: The name of the directory which is appended onto a user's
home
# directory if a ~user request is recieved.

UserDir public_html    

Write a script to add the directory to everyone's home dir. This
requires changing the permissions to something more acceptable, like ~/
at 0701 and ~/public_html/ at 0755. As for uploading, the permissions
you set on the filesystem govern that. Obviously, you want them to be
able to write to their home directory. The only problem I see with this
is that the users can become confused when uploading through Netscape or
another browser because ftp(1) and it's clones start in the user's home
directory. Netscape needs to know "/home/$USER/public_html/". $USER is,
of course, the username.
-- 
Kris Kirby 
UAH Mail <kirbyk@email.uah.edu> UAH CS <kkirby@cs.uah.edu>
Home     <kris@airnet.net>      WWW <nomurphy@hotmail.com>
-------------------------------------------
TGIFreeBSD... 'Nuff said.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?364C5D1E.CF0CE2A3>