Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 May 1999 10:13:35 +0200 (SAST)
From:      Jacques Marneweck <jacques@web.sciencelink.org.za>
To:        dissonant <disowned@flitr.nu>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: chroot? or...?
Message-ID:  <Pine.BSF.3.96.990508101102.24481D-100000@web.sciencelink.org.za>
In-Reply-To: <Pine.BSF.4.05.9905071714260.72563-100000@flitr.nu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 7 May 1999, dissonant wrote:

> How do i get a user's home directory to show up as / when they log in via
> ftp? Thanks...

Easy. ;-)

Edit /etc/ftpchroot and add that user's name into the file. eg:

--- snipbit from /etc/ftpchroot ---
possum
pjc
--- end snipbit ---

Then in the users home directory you create a directory "bin" and copy
/bin/date and /bin/ls into that directory. Chmod 555 those files and then
chown username.group eg.
chown pjc.pjc /usr/home/pjc/bin/*

Hope this helps.

Regards
Jacques

> 
> ____________________________________________________________________________
>   michael lieberman   d i s o w n e d @ f l i t r . n u   http://flitr.nu/
> ____________________________________________________________________________
> Pourtant, j'etais fort mauvais poete.		Still, I was a very bad poet.
> Je ne savais pas aller jusqu'au bout.		I couldn't go to the end.
> J'avais faim.					I was hungry.
> 			-- Blaise Cendrars
> 
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
> 



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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