From owner-freebsd-questions Fri Jan 31 9:50:26 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0598837B405 for ; Fri, 31 Jan 2003 09:50:25 -0800 (PST) Received: from sd00156.sendtech.net (sd00156.sendtech.net [198.3.80.156]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5B9B843F43 for ; Fri, 31 Jan 2003 09:50:24 -0800 (PST) (envelope-from jay@sendtech.net) Received: (from nobody@localhost) by sd00156.sendtech.net (8.11.3/8.11.3) id h0VHk8x03258 for freebsd-questions@freebsd.org; Fri, 31 Jan 2003 11:46:08 -0600 X-Authentication-Warning: sd00156.sendtech.net: nobody set sender to jay@sendtech.net using -f Received: from 10.161.65.65 ( [10.161.65.65]) as user jay@sendtech.net by horde-send.sendtech.net with HTTP; Fri, 31 Jan 2003 11:46:08 -0600 Message-ID: <1044035168.3e3ab660cc8d5@horde-send.sendtech.net> Date: Fri, 31 Jan 2003 11:46:08 -0600 From: Jay Sern Liew To: freebsd-questions@freebsd.org Subject: restricting user's directory listing and changing MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.1 X-Originating-IP: 10.161.65.65 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Greetings. Basically, I have this group of users, that I give SSH/SFTP access, but I don't want them to be able to see the complete file hierarchy and ``cd'' to them. I just want a user to be able to access the user's home, and that's it. I looked up some docs on the shell(tcsh) and sshd, but didn't find anything apppropriate. Has anyone wanted to do this before? I was thinking, or maybe I could redirect that group of users to use a different version of the command ``cd'' and ``ls'' so that it will only work within their home directories. Thought of jail too, but jail only jails processes, and these guys aren't really running processes, just file access. Any ideas? Thanks in advance. ______________________________________________________________________ Jay Sern Liew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message