Results 1 to 7 of 7

Thread: Ftp in ubuntu desktop 12.04

  1. #1
    Join Date
    Aug 2013
    Beans
    3

    Ftp in ubuntu desktop 12.04

    Hi friends forgive me for a silly question but I am new to linux and I am trying to convert some file/media servers from windows to Ubuntu, I am still testing on a test machine if I manage to get it as I wish I will be installing ubuntu in my server and installing it for people I know, I already got serviio media server working and smb share working, now I kneed ftp server to transfer files over the internet but here is the problem I am having I would like to have a ftp server that I can jail the user to his directory and also give him a directory from a second internal disc I have plugged in, not from the c drive, I tried proftpd but the users I create in it do not show up in the I manage to connect fine but in proftd it does not list what users I have for some reason, so I am stuck, Thank you in advance.

  2. #2
    Join Date
    Mar 2010
    Location
    Metro-ATL; PM free zone.
    Beans
    Hidden!
    Distro
    Lubuntu 14.04 Trusty Tahr

    Re: Ftp in ubuntu desktop 12.04

    Sorry, no answer to your issue, but this might help with other important considerations.

  3. #3
    Join Date
    Aug 2013
    Beans
    3

    Re: Ftp in ubuntu desktop 12.04

    so your saying in Ubuntu you can't create a simple ftp server that jails the user to his folder and give him a folder from a second drive instead of c

  4. #4
    Join Date
    Sep 2006
    Beans
    8,367
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Ftp in ubuntu desktop 12.04

    FTP would be the wrong way to go about it becaue even in a jail, the username, password and data would all be transfered unencrypted in addition to being non-simple to implement. If you are doing uploads, you almost certainly want SFTP instead. Also, SFTP is far, far easier to chroot. SFTP is built into the package openssh-server.

  5. #5
    Join Date
    Aug 2013
    Beans
    3

    Re: Ftp in ubuntu desktop 12.04

    Thanks you right about that. is there maybe a tutorial on this I am still new so thanks for all help ant tips. and btw in sftp will I be able to give a folder in my second drive?

  6. #6
    Join Date
    Mar 2010
    Location
    Metro-ATL; PM free zone.
    Beans
    Hidden!
    Distro
    Lubuntu 14.04 Trusty Tahr

    Re: Ftp in ubuntu desktop 12.04

    Quote Originally Posted by Chrismallia View Post
    so your saying in Ubuntu you can't create a simple ftp server that jails the user to his folder and give him a folder from a second drive instead of c
    Not at all. i'm saying that most people shouldn't use FTP at all AND that I don't use plain FTP, so do not know how to do what you seek. I have setup a jailed sftp server in the past, but not for regular FTP.

    The location of the jail doesn't matter - any disk can be used if file and user permissions support it. This link http://askubuntu.com/questions/93411...-to-jail-users seems to have good information for jailing both plain and sftp.

    There might be a good ftp howto on the ubuntu.com site too. Just be certain to know which of the FTP servers you are using and follow steps for that specific tool - I think there are 3+ popular ones. Also, 3 of these have had back doors added to the source code previously, which were later discovered and corrected. Be as careful as you can.

    Again, sorry that I don't know the answer to your specific question.

  7. #7
    Join Date
    Sep 2006
    Beans
    8,367
    Distro
    Ubuntu 14.04 Trusty Tahr

    sftp with chroot

    Plain SFTP (highly secure) is easy to set up. All you have to do is install the package openssh-server. SFTP comes along for the ride.

    If you want to restrict SFTP access for a group of users to a specific directory, such as the one drive you mention, then look at the second example here:
    http://www.howtoforge.com/setting-up...r-file-uploads

    It's all about setting the ChrootDirectory to where you want them to go. One special thing is that the directory that is the target of the chroot must be owned by root and not writable by anyone else.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •