Setup FTP with OMV...

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Setup FTP with OMV...

      Hey!

      I am running into trouble setting up the ftp. Thought this was easy with omv0.3 but ...obviously I am doing something completely wrong.

      What I am trying to setup:

      A few ftpuser with its own homedirectory into which they get chrooted as soon as they login and they must stay inside their homedir. long story short.

      My Hierarchy will be like this:

      Shared Folder:

      WWWFTP (this will be the shared folder for SMB/CIFS to have access both to the FTP as the WWW dir over the local network)
      WWWFTP/FTP (this should be the homedirectory for all users)
      WWWFTP/WWW (this is the www-root for the webserver)

      What I did: under users I setup the homedirectories of the users to be under then 2nd Share Folder WWWFTP/FTP

      But somehow the FTP server config won't eat this. It will put the user into a dir that where there is a folder called FTP and in that folder there are all homedirectories. Not what I wanted. Strange behaviour. I have the feeling in one of the many actions under the hood there went something wrong or is not configurable as needed. But maybe I'm just to blind to see the solution to this.
    • Re: Setup FTP with OMV...

      This is what sucks here, Volker. You need more people getting involved. This is a nightmare, really. You are the only one knowing how to do stuff like this and you obviously are not 10 persons to keep track of all forum postings, people ... updates - I can truely understand that. But man... I can't wait 4 weeks for an answer. Or maybe forever. So? I really don't know what to do.
    • Re: Setup FTP with OMV...

      This is not possible because ALL users are chrooted to the ftp users homedir (/home/ftp) where all shared folders configured as ftp shares are mounted (via bind) into. Your scenario can't be mapped into the OMV workflow/implementation.
      Absolutely no support through PM!

      I must not fear.
      Fear is the mind-killer.
      Fear is the little-death that brings total obliteration.
      I will face my fear.
      I will permit it to pass over me and through me.
      And when it has gone past I will turn the inner eye to see its path.
      Where the fear has gone there will be nothing.
      Only I will remain.

      Litany against fear by Bene Gesserit
    • Re: Setup FTP with OMV...

      This is what sucks me, there are only a small number of users that are helping to moderate the forum. I am not responsible for the low contributions of the users :(
      Absolutely no support through PM!

      I must not fear.
      Fear is the mind-killer.
      Fear is the little-death that brings total obliteration.
      I will face my fear.
      I will permit it to pass over me and through me.
      And when it has gone past I will turn the inner eye to see its path.
      Where the fear has gone there will be nothing.
      Only I will remain.

      Litany against fear by Bene Gesserit
    • Re: Setup FTP with OMV...

      Okay, so what am I gonna do? Use another ftpd because it's not possible? And this sounds so definite - is it that you don't have the time to fix that or is this just not possible (if so why? you already coded some nice things into this nice piece of software - why should this not be possible?)

      apt-get install vsftpd produced this: nopaste.info/f0d0f096a7 now everything is broken NARF... :/ Totally lost now
    • Re: Setup FTP with OMV...

      It is still not possible if you use chroot like it is done in OMV for security reasons. Chroot means that the user can not break out of its home dir or the path it is locked in, thus the shared folders (mounted at /media/<uuid>) which are used as shares in the ftp config panel must be mounted into this chroot directory (via mount bind option) to allow the user to access this folders/dirs. Now you have to imagine that this MUST be done for each user that may access this NAS in your prefered workflow, for 1-10 users and some shared folders this is no problem, but assume 200 or more users and 10 shared folders, this would mean that you have to mount 200 x 10 shared folders into the users home directory. This is not usable in my eyes, thus all users are chrooted into the same home dir which is /home/ftp.

      If you want to implement your workflow you have to install a seperate ftp server or write your own proftpd config file that meets your requirements.

      P.S.: The link is dead.
      Absolutely no support through PM!

      I must not fear.
      Fear is the mind-killer.
      Fear is the little-death that brings total obliteration.
      I will face my fear.
      I will permit it to pass over me and through me.
      And when it has gone past I will turn the inner eye to see its path.
      Where the fear has gone there will be nothing.
      Only I will remain.

      Litany against fear by Bene Gesserit
    • Re: Setup FTP with OMV...

      By the way a software solution like OMV is not able to reflect every workflow or user scenario, thus the most useable one is choosen and implemented. Special workflows can only be implemented seperately by the user itself. This is not only for OMV but also for other out-of-the-box solutions.
      Absolutely no support through PM!

      I must not fear.
      Fear is the mind-killer.
      Fear is the little-death that brings total obliteration.
      I will face my fear.
      I will permit it to pass over me and through me.
      And when it has gone past I will turn the inner eye to see its path.
      Where the fear has gone there will be nothing.
      Only I will remain.

      Litany against fear by Bene Gesserit
    • Re: Setup FTP with OMV...

      Trying to mix Samba shares and FTP is a bad idea. I think the reason you are doing this is you want an easy way to upload/download files to the ftp/webfolders. Better to create a chrooted folder seperate from the Samba stuff and use Filezilla to upload/download stuff to the ftp server. If you only have a few users maybe you should look at using vsftp and using virtual users (authenticating with pam). I don't like the setup Volker has and this is what I'm doing. I'm not going to spoon feed you but I'll give you a link. The virtual users you can give same userid and pass as a real user or make up new ones. I don't like my ftp server having a real user to my systems that is why i use virtual users. If you search Google you can find many more examples of people using debian, vsftp, pam and virual users. Volker has done enough work and he isn't here to cater to you. Read and learn. Good Luck.

      imadethisdesign.blogspot.com/2…pd-virtual-users-pam.html

      And what is your problem Volker? You spend to much time catering to cry babies with poor linux knowledge, or as ses like Daniel Haischt, whilst ignoring people that treat you with respect.
    • Re: Setup FTP with OMV...

      "tekkbebe" wrote:

      And what is your problem Volker?

      Why do you think i have a problem :?: Please explain.
      Absolutely no support through PM!

      I must not fear.
      Fear is the mind-killer.
      Fear is the little-death that brings total obliteration.
      I will face my fear.
      I will permit it to pass over me and through me.
      And when it has gone past I will turn the inner eye to see its path.
      Where the fear has gone there will be nothing.
      Only I will remain.

      Litany against fear by Bene Gesserit
    • Re: Setup FTP with OMV...

      "votdev" wrote:

      It is still not possible if you use chroot like it is done in OMV for security reasons. Chroot means that the user can not break out of its home dir or the path it is locked in, thus the shared folders (mounted at /media/<uuid>) which are used as shares in the ftp config panel must be mounted into this chroot directory (via mount bind option) to allow the user to access this folders/dirs. Now you have to imagine that this MUST be done for each user that may access this NAS in your prefered workflow, for 1-10 users and some shared folders this is no problem, but assume 200 or more users and 10 shared folders, this would mean that you have to mount 200 x 10 shared folders into the users home directory. This is not usable in my eyes, thus all users are chrooted into the same home dir which is /home/ftp.

      If you want to implement your workflow you have to install a seperate ftp server or write your own proftpd config file that meets your requirements.

      P.S.: The link is dead.


      Man.. you said it yourself that this is a solution for homeusage not for a company with 200 or more users. 99% of the users here will have 1-4 users MAX... don't you think? So sorry to say that but the argument is invalid somehow and having a FTP with only one user??! We have 2012 not 1964. I'd say if you plan to keep it that way better put FTP from the service list and instead wait for a plugin made for vsftpd.

      Thanks for that link with that virtual users.

      nopaste.info/f0d0f096a7.html

      I totally screwed OMV up by installing vsftpd btw ... at least SMB is still working - rest is dead. Thank god I have a 2nd system already setup.
    • Re: Setup FTP with OMV...

      "fluxohm" wrote:

      So sorry to say that but the argument is invalid somehow and having a FTP with only one user??! We have 2012 not 1964

      I am sorry to say but this answer shows me you did not have understand the problem with the shared folders in a chroot problem.
      Absolutely no support through PM!

      I must not fear.
      Fear is the mind-killer.
      Fear is the little-death that brings total obliteration.
      I will face my fear.
      I will permit it to pass over me and through me.
      And when it has gone past I will turn the inner eye to see its path.
      Where the fear has gone there will be nothing.
      Only I will remain.

      Litany against fear by Bene Gesserit
    • Re: Setup FTP with OMV...

      Watch this vid... It's funny

      youtube.com/watch?v=ecSkIZRaE1Q

      You can probably fix most of that system by

      apt-get install openmediavault

      Then you'll have to re add the plugins.

      I ran across this issue when I installed a full desktop. In earlier versions of OMV it didn't remove packages but the latest version with all updates removed a shitload of packages when I installed a full desktop.
      It seems like when you install a package, and dependencies, if there is any version conflict with existing packages it will remove the existing package and any existing package that is dependent on it. It doesn't even give a warning before removing the packages and let you opt out. Really sad.
    • Re: Setup FTP with OMV...

      Use the '-s' switch from apt-get to test the action without harming the system.
      Absolutely no support through PM!

      I must not fear.
      Fear is the mind-killer.
      Fear is the little-death that brings total obliteration.
      I will face my fear.
      I will permit it to pass over me and through me.
      And when it has gone past I will turn the inner eye to see its path.
      Where the fear has gone there will be nothing.
      Only I will remain.

      Litany against fear by Bene Gesserit
    • Re: Setup FTP with OMV...

      "fluxohm" wrote:

      This is what sucks here, Volker. You need more people getting involved. This is a nightmare, really. You are the only one knowing how to do stuff like this and you obviously are not 10 persons to keep track of all forum postings, people ... updates - I can truely understand that. But man... I can't wait 4 weeks for an answer. Or maybe forever. So? I really don't know what to do.


      You know, this is the kind of comment that really gets to me. You think there's not enough people supporting a free product? Free as in at no monetary cost to you, and free as in you are FREE to volunteer, help and modify the software as you like. We contribute the best we can and only so many want to join, Volker is not stopping anyone from doing this. Why don't you start aiding others rather than complain about the slow responses? If you are going to criticize ANYTHING at all, be constructive about it. And to be clear, this is entirely my personal opinion.

      Me and some others help moderate, put the forums together and organize them the best we can. Others are making plugins as we speak, while there's another small group doing language translations. We all report bugs when we see them. Everyone is welcome to help others, don't put the pressure on just one person. He's not 10 people ;)

      Ask yourself, what have you done to help the project? 5 posts on the thread you created for your own problem does not count, by the way.
    • Re: Setup FTP with OMV...

      Soo.. how can I install vsftpd then? I mean testing with apt-get install with -s is good ... but well - now I know that vsftdp installation will literally uninstall everything important for OMV... hmh..

      Thanks Spy for your kind words - I try to help when I can.
    • Re: Setup FTP with OMV...

      "fluxohm" wrote:

      "votdev" wrote:

      It is still not possible if you use chroot like it is done in OMV for security reasons. Chroot means that the user can not break out of its home dir or the path it is locked in, thus the shared folders (mounted at /media/<uuid>) which are used as shares in the ftp config panel must be mounted into this chroot directory (via mount bind option) to allow the user to access this folders/dirs. Now you have to imagine that this MUST be done for each user that may access this NAS in your prefered workflow, for 1-10 users and some shared folders this is no problem, but assume 200 or more users and 10 shared folders, this would mean that you have to mount 200 x 10 shared folders into the users home directory. This is not usable in my eyes, thus all users are chrooted into the same home dir which is /home/ftp.

      If you want to implement your workflow you have to install a seperate ftp server or write your own proftpd config file that meets your requirements.

      P.S.: The link is dead.


      Man.. you said it yourself that this is a solution for homeusage not for a company with 200 or more users. 99% of the users here will have 1-4 users MAX... don't you think? So sorry to say that but the argument is invalid somehow and having a FTP with only one user??! We have 2012 not 1964. I'd say if you plan to keep it that way better put FTP from the service list and instead wait for a plugin made for vsftpd.

      Thanks for that link with that virtual users.

      nopaste.info/f0d0f096a7.html

      I totally screwed OMV up by installing vsftpd btw ... at least SMB is still working - rest is dead. Thank god I have a 2nd system already setup.


      If people would accept that this is a home solution rather than trying to figure out how to take it and make it work in the corporate world, they would be a lot happier.

      Now, how did I get around this minor issue? (and I say minor because it is)
      3 FTP accounts, 3 users. each user has a folder under /media/uuid (ex.. /media/uuid/user1, /media/uuid/user2). Set that folder as the users home directory. Log in w/ your FTP client and you're chrooted to the directory

      Easy peasy.
      Air Conditioners are a lot like PC's... They work great until you open Windows.

    • Re: Setup FTP with OMV...

      I've read this about FTP setup and I too am a bit baffled about setting up other users to access FTP shares. Why?

      Well a share is a share regardless of how it is accessed.

      Think of it like this.

      You leave work to come home, normally you drive your own car home. One day though you ride home with some friends, took a cab, walked, rode the bus, whatever and get home to find your home is empty because you don't have your car!

      Kind of like shares, what transport protocol (Samba, AFP, FTP, http or other) you use to get to a share should make no difference. Yes I understand enabling/unableing them for your needs.

      Something else to consider, OMV devs should not be content with comparing to the other freeware NAS offerings. Why? Because they should be pushing the envelope beyond what the commercial NAS boxes are offering.

      Just my three cents.

      Dave
      New to OMV? Take a look at our Tutorials and How To's: http://forums.openmediavault.org/viewtopic.php?f=13&t=1289
      USB Sticks/CF Cards Should not be used as System Drive http://forums.openmediavault.org/viewtopic.php?f=12&t=1673
      No Support through PM. Please open a new thread.

      OMV 0.4.38 64bit (Fedaykin), Plex Media Server, miniDLNA
      Athlon II X2 3.4ghz, 8gb mem, 160gb WD Black system drive, 2 1tb WD Black storage drives - JBOD no LVM

      Mountain Dew - Because man does not live by bread alone!
    • Re: Setup FTP with OMV...

      "gosh" wrote:

      you can't get out of chroot as far as I know, impossible


      Nearly made me laugh. The last time i tried it out, you could break out of it with a simple "cd /"
      Had the discussion years ago with a friend, because he refered chroot to me... he wondered too, how easy it was to get out.

      Greetings
      David
      "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"

      Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.


      Upload Logfile via WebGUI/CLI
      #openmediavault on freenode IRC | German & English | GMT+1
      Absolutely no Support via PM!

      I host parts of the omv-extras.org Repository, the OpenMediaVault Live Demo and the pre-built PXE Images. If you want you can take part and help covering the costs by having a look at my profile page.
    • Users Online 1

      1 Guest