Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Oct 1997 18:27:28 +1000 (EST)
From:      "Daniel O'Callaghan" <danny@panda.hilink.com.au>
To:        Shawn Ramsey <shawn@luke.cpl.net>
Cc:        Nguyen Phi Khanh <nguyenpk@kuci.org>, freebsd-ISP@FreeBSD.ORG
Subject:   Re: limiting users from cd-ing to directories.
Message-ID:  <Pine.BSF.3.91.971023182551.524Q-100000@panda.hilink.com.au>
In-Reply-To: <Pine.BSF.3.95.971022232618.26455E-100000@luke.cpl.net>

next in thread | previous in thread | raw e-mail | index | archive | help

On Wed, 22 Oct 1997, Shawn Ramsey wrote:

> > 	It's come to my attention that there's supposedly a method to
> > limit users from cd-ing out of the home directory of their account.  Say,
> > if a user's home directory is /home/users/johndoe, then he can't cd to
> > /home/users or /home or even to any other system directory but his own and
> > the subdirectories within his home directory.  If this is true, how is it
> > done?  Supposedly login.conf?
> 
> Its done with wu-ftpd, and making the users home directory
> /usr/home/users/./ and putting something like this in ftpaccess :
> 
> guestgroup      ftpusers
> 
> then all users in ftpusers would be limited to their home
> directory(provided they have a /./ at the end)

Also done with FreeBSD's ftpd.  Read the manpage. Put the user's name in 
/etc/ftpchroot.  Or put the user in a class which includes the boolean 
'ftpchroot' (see man login.conf(5)).  you'll want to rebuild ftpd using 
-DBUILTIN_LS or whatever it is called.

Danny

/*  Daniel O'Callaghan                                                     */
/*  HiLink Internet <http://www.hilink.com.au/>;       danny@hilink.com.au  */
/*  FreeBSD - works hard, plays hard...                 danny@freebsd.org  */




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.971023182551.524Q-100000>