thanks for your reply.
the requirement was, if i was configuring a FTP server the transfer of files should also be thru a secure channel. Whn i configured SSL for the same the client did not like it as they didnt want to spend money to get a proper certificate frm CA and didnt want pop ups in the browser or FTP client saying the SSL Certificate is not digitally signed by CA.
So i tried for SFTP. config was dont but the issue again is that, all users who login are able to browse thru the root directory as well. though they cannot make any changes the client did not want that also. so the resolution was to create a chroot jail. i tried a few utilities like
jailkit and
makejail which did create a jail like env but didnt allow any users added in the jail. I also ran
this script which also successfully created chrooted users but didnt allow them to log in.
can you plz try to run this
script and tell me if it works for you?
thanks again