Defcon1-Header
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.

Instructions:

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 lndir.pl


 obscure

© 1997 - 20013 Defcon1, www.defcon1.org , 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 www.defcon1.org and the content's original author.

Defcon1-Header2
Tool-Bar-2Defcon1  Webmail