View Single Post
  #3   (View Single Post)  
Old 29th March 2010
pico pico is offline
Real Name: Pico
Complete openbsd beginner
 
Join Date: Mar 2010
Location: Scotland
Posts: 19
Default

Thanks for the advice jggimi

Having read a little it became a little clearer in that I was just adding the words ftp-chroot anywhere and it needs to be within the correct area of the file.

I have therefore create the user testuser with the default login class

I have edited the dafault part of login.conf file to read
Code:
default:\
        :path=/usr/bin /bin /usr/sbin /sbin /usr/X11R6/bin /usr/local/bin:\
        :umask=022:\
        :datasize-max=512M:\
        :datasize-cur=512M:\
        :maxproc-max=256:\
        :maxproc-cur=128:\
        :openfiles-cur=128:\
        :stacksize-cur=4M:\
        :localcipher=blowfish,6:\
        :ypcipher=old:\
        :tc=auth-defaults:\
        :tc=auth-ftp-defaults:
        :ftp-chroot
I have then restarted the system (as I dont know the command line instruction to restart the login.conf file) and testuser is not jailed.

This really must be a case of wood from the trees here.

Last edited by ocicat; 29th March 2010 at 08:42 PM. Reason: adding [code] & [/code] tags
Reply With Quote