Restricting SFTP user to a defined directory and home directory

Hi,

I've created solaris user which has both FTP and SFTP Access. Using the "ftpaccess" configuration file options "guest-root" and "restricted-uid", i can restrict the user to a specific directory. But I'm unable to restrict the user when the user is logged in using SFTP.

The aim is to have a user with FTP and SFTP Access with access to the home directory and a specific directory.

Can anyone help me on this....

I think you need to take a look at chroot'ing the accounts that will use SFTP.