Author Topic: FTP and SFTP rights  (Read 315 times)

Offline Meyerhans

  • New user
  • *
  • Posts: 4
    • View Profile
FTP and SFTP rights
« on: January 25, 2017, 12:09:51 pm »
Hello,

i use FTP and i want to use SFTP as well. If i user is using FTP he can only jump into his created home directory. If i do this with sftp the user

can jump into the root directory. What kind of settings do i have to modify that the user can only use his homedirectory with SFTP

Thanks for your help

Meyerhans

Offline castaglia

  • Administrator
  • Support Hero
  • *****
  • Posts: 5336
    • View Profile
    • http://www.castaglia.org/
Re: FTP and SFTP rights
« Reply #1 on: January 25, 2017, 10:06:08 pm »
Could you show the full proftpd.conf you're using?  That would help us determine what changes might be needed.

Offline Meyerhans

  • New user
  • *
  • Posts: 4
    • View Profile
Re: FTP and SFTP rights
« Reply #2 on: January 26, 2017, 09:32:20 am »
Good morning,

I have attached my Config File

Regards

Meyerhans

Offline castaglia

  • Administrator
  • Support Hero
  • *****
  • Posts: 5336
    • View Profile
    • http://www.castaglia.org/
Re: FTP and SFTP rights
« Reply #3 on: January 26, 2017, 07:24:36 pm »
Do you have a file under /etc/proftpd/conf.d/ that defines your mod_sftp <VirtualHost>?  I see the the included /etc/proftpd/tls.conf file, but I assume that that is for FTPS (which is different from SFTP).

If there are no files under /etc/proftpd/conf.d/, then it could be that your SFTP connections are not being handled by ProFTPD at all, but rather by e.g. OpenSSH.

Offline Meyerhans

  • New user
  • *
  • Posts: 4
    • View Profile
Re: FTP and SFTP rights
« Reply #4 on: January 30, 2017, 10:51:14 am »
Good morning,

you are right, it isn't handled by ProFTPD it is handled by SSH Server.

Question now is how to setup Proftp for SFTP ?

Regards

Meyerhans