From owner-freebsd-questions Tue Jun 27 20:09:37 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id UAA16176 for questions-outgoing; Tue, 27 Jun 1995 20:09:37 -0700 Received: from emerald.oz.net (emerald.oz.net [198.68.184.2]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id UAA16168 for ; Tue, 27 Jun 1995 20:09:34 -0700 Received: from wsantee.oz.net by emerald.oz.net via ESMTP (8.6.12/930416.SGI) for id DAA15407; Wed, 28 Jun 1995 03:07:10 GMT Received: (from wsantee@localhost) by wsantee.oz.net (8.6.11/8.6.9) id UAA03277 for freebsd-questions@freebsd.org; Tue, 27 Jun 1995 20:04:10 -0700 From: Wes Santee Message-Id: <199506280304.UAA03277@wsantee.oz.net> Subject: Re: Any way to get hard links to directories? To: freebsd-questions@freebsd.org Date: Tue, 27 Jun 1995 20:04:09 -0700 (PDT) In-Reply-To: <9506271649.AA03027@cs.weber.edu> from "Terry Lambert" at Jun 27, 95 10:49:03 am X-Mailer: ELM [version 2.4 PL24] Content-Type: text Content-Length: 1734 Sender: questions-owner@freebsd.org Precedence: bulk Terry Lambert sez: > Suffice it to say, I would *strongly* urge you to reexamine why you > want a hard linked directory and to choose another soloution to > your problem. Just an update for the curious as to why I'd ever want to hard link a directory. My provider is trying to setup ftp access so users can't even see other users directories, let alone the system directories. One idea that came up was to chroot to the users home directory on ftp login, thereby locking out access to places they didn't need to go. Only problem is gaining access to /bin/ls, and other files needed by the ftp daemon. Since symlinks under a chroot'ed directory don't work, the idea of hard links came up and I said I would investigate the possibility. Needless to say, hard links will not be the solution. Before you cock your head and ask why my ISP would want to take this course of action, shell accounts on the server are *not* permitted, so there is no reason anybody would need access to other directories on the system. They are a SLIP/PPP provider only. Server security is of utmost importance to these people. Still, they need to give ftp access to users home directories so they can dump required files for web pages, etc. That said, anybody have any ideas on how to have the ftp daemon allow users who are logged in to see only their home (and below) directories without the ftp daemon losing access to the files it needs to operate? Cheers, -- ( -Wes Santee | You're never dead 'til you're ) ( wsantee@wsantee.oz.net | out of quarters. --InSoc ) ( http://www.oz.net/~wsantee \------------------------------ ) ( O S / 2 W A R P F r e e B S D )