Tool-BarfreeBSD ArticlesSearch Our SiteHOMEfreeBSD LinksContribute to FreeBSD HelpFreeBSD FilesFreeBSD Script Corner

Chroot Environment for FreeBSD

These scripts are made for a chroot'ed environment for users on your FreeBSD system, the comments in the code should guide you through, man chroot if you're not sure what chroot() is. Extremely secure environment for your users on your computer and doesn't take alot of load or memory.


gcc -o chbash chbash.c

mv chbash /bin/

echo "/bin/chbash" >> /etc/shells

Create a skel in /home (mkdir /home/skel)

Copy all privledged files and binaries to the the /home/skel.

Run ./lndir /home/skel /home/user. This creates the links for you and saves a TON of space on your Disk....

adduser user and apoint them the chbash shell when prompted during adduser and your set. chbash.c


© 1997 - 20013 Defcon1, , Copyrights for all materials on this web site are held by the individual authors, artists, photographers or creators. Materials may not be reproduced or otherwise distributed without permission of and the content's original author.

Tool-Bar-2Defcon1  Webmail