From owner-freebsd-questions Fri Nov 13 08:27:38 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA27309 for freebsd-questions-outgoing; Fri, 13 Nov 1998 08:27:38 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from ninbox.ml.org (hsv1-23.airnet.net [207.242.81.23]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA27300 for ; Fri, 13 Nov 1998 08:27:35 -0800 (PST) (envelope-from kris@airnet.net) Received: from airnet.net (localhost [127.0.0.1]) by ninbox.ml.org (8.9.1/8.8.5) with ESMTP id KAA01734; Fri, 13 Nov 1998 10:24:01 -0600 (CST) Message-ID: <364C5D1E.CF0CE2A3@airnet.net> Date: Fri, 13 Nov 1998 10:23:58 -0600 From: Kris Kirby Organization: Absolutely None! X-Mailer: Mozilla 4.07 [en] (X11; U; FreeBSD 3.0-RELEASE i386) MIME-Version: 1.0 To: Jerry CC: questions@FreeBSD.ORG Subject: Re: FTP upload access to site References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 UAH CS Home WWW ------------------------------------------- TGIFreeBSD... 'Nuff said. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message