From owner-freebsd-questions Sat Feb 1 2: 6:40 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 91C7937B401 for ; Sat, 1 Feb 2003 02:06:38 -0800 (PST) Received: from mx0.gmx.net (mx0.gmx.de [213.165.64.100]) by mx1.FreeBSD.org (Postfix) with SMTP id 23B4643F3F for ; Sat, 1 Feb 2003 02:06:37 -0800 (PST) (envelope-from Oliver.Bantke@gmx.de) Received: (qmail 27889 invoked by uid 0); 1 Feb 2003 10:06:30 -0000 Date: Sat, 1 Feb 2003 11:06:30 +0100 (MET) From: Oliver Bantke To: freebsd-questions@freebsd.org Cc: jay@sendtech.net MIME-Version: 1.0 References: <1044035168.3e3ab660cc8d5@horde-send.sendtech.net> Subject: Re: restricting user's directory listing and changing X-Priority: 3 (Normal) X-Authenticated-Sender: #0003952125@gmx.net X-Authenticated-IP: [80.142.165.89] Message-ID: <12634.1044093990@www42.gmx.net> X-Mailer: WWW-Mail 1.6 (Global Message Exchange) X-Flags: 0001 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit 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 Dear Jay, There seems to be some sort of patch available @ http://chrootssh.sourceforge.net which may fitt your needs. I haven't tried it myself yet but i hope it works. -- +++ GMX - Mail, Messaging & more http://www.gmx.net +++ NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message