Koozali.org: home of the SME Server

FTP to a specific folder?

spook

FTP to a specific folder?
« on: March 09, 2006, 07:12:54 PM »
How do I allow FTP access to a specific folder? I need to make it possible for users to upload files, and I just want them to login and upload, no changing folders and whatnot. Just log in, upload, log out.

Offline jfarschman

  • *
  • 406
  • +0/-0
FTP to a specific folder?
« Reply #1 on: March 09, 2006, 08:29:13 PM »
Spook,

  I think you could do that with dungog-proftpd-chroot.  Take a look here and get the latest:

http://mirror.contribs.org/smeserver/contribs//dungog/files/

  I've used it with great success.
Jay Farschman
ICQ - 60448985
jay@hitechsavvy.com

Offline beakersloco

  • ****
  • 142
  • +0/-0
FTP to a specific folder?
« Reply #2 on: March 10, 2006, 01:14:48 AM »
I have used it with version 5.6 Does it work with no errors on  6.0.1 ?
All that's necessary for the forces of evil to win in the world is for enough good men to do nothing.???" Edmund Burke -Irish orator, philosopher, & politician


For the battle is not yours, but God's.   2 Chronicles 20:15

Offline jfarschman

  • *
  • 406
  • +0/-0
FTP to a specific folder?
« Reply #3 on: March 10, 2006, 01:31:05 AM »
I'll confirm 6.0.1 and 7.0Pre4
Jay Farschman
ICQ - 60448985
jay@hitechsavvy.com

stormdragon

FTP to a specific folder?
« Reply #4 on: March 10, 2006, 02:16:00 PM »
Hmm... doesn't seem to work now that I've updated to 7.0pre4 (I've also updated the Dungog CHROOT FTP Users panel). Only ONE user's settings seem to "stick", everyone else had become unrestricted!

spook

FTP to a specific folder?
« Reply #5 on: March 11, 2006, 06:05:14 PM »
Sounds nice... now all I need is some guidelines for installing  :-D

cc_skavenger

FTP to a specific folder?
« Reply #6 on: March 12, 2006, 11:51:43 PM »
This rpm has also stopped working for me on an upgraded box.  Seems that there is something up with proftpd.  Will post more info when I have some.

cc_skavenger

FTP to a specific folder?
« Reply #7 on: March 13, 2006, 12:40:13 AM »
ok, the issue has something to do with the e-smith-proftpd rpm.  The new version is e-smith-proftpd-1.11.0-28.  It seems to break something that keeps the chroot rpm from working.  If you roll back the rpm to e-smith-proftpd-1.11.0-26, it will work again.  I only suggest this if you REALLY need this to work.

Offline stephen noble

  • *
  • 607
  • +1/-0
    • Dungog
FTP to a specific folder?
« Reply #8 on: March 13, 2006, 05:58:43 AM »
http://bugs.contribs.org/show_bug.cgi?id=851

a template was introduced into e-smith-proftpd
which caused a conflict, so we removed the fragment from the contrib

but the fragment in e-smith-proftpd had an error in it and will be removed
so the current contrib will be broken again

we could add the fragment as a <shhh>custom-template</sssh>
until e-smith-proftpd is sorted out ?

stormdragon

Bug's behavior
« Reply #9 on: March 13, 2006, 01:28:54 PM »
When I noticed that users weren't being chrooted properly, I looked at _which_ users weren't responding. It turns out that only ONE gets chrooted anywhere I want to, but that's it. I can't chroot more than one.

Looking at /etc/proftpd.conf shows that, no matter how many users I chroot, the same one remains in the conf file.

Any other way to do this?

Offline stephen noble

  • *
  • 607
  • +1/-0
    • Dungog
FTP to a specific folder?
« Reply #10 on: March 13, 2006, 01:43:21 PM »
there is a workaround if you follow enough links from my last post
or
smeserver-remoteuseraccess-1.0-10.noarch.rpm replaces the fragment
the rpm is also at  http://bugs.contribs.org/show_bug.cgi?id=851
or http://sme.dungog.net/packages/smeserver/7.0/i386/html/index_dungog.html

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Bug's behavior
« Reply #11 on: March 14, 2006, 01:37:39 AM »
Quote from: "stormdragon"
When I noticed that users weren't being chrooted properly, I looked at _which_ users weren't responding. It turns out that only ONE gets chrooted anywhere I want to, but that's it. I can't chroot more than one.

Looking at /etc/proftpd.conf shows that, no matter how many users I chroot, the same one remains in the conf file.


You should report that as a bug in the contrib, in the Contribs section of the Bug Tracker.

Offline stephen noble

  • *
  • 607
  • +1/-0
    • Dungog
FTP to a specific folder?
« Reply #12 on: March 14, 2006, 09:16:40 AM »
I have a bug report on this contrib, linked in both previous posts

the actual bug was in e-smith-proftp and that has a seperate bug report

spook

FTP to a specific folder?
« Reply #13 on: March 31, 2006, 11:09:52 PM »
Could we get this back on track?

I need to let a user upload to a specific folder. How do I do that? I have created a symlink from that users homedir to the folder in question, but it is not working via FTP... In the console, the symlink works like a charm  :-?

Offline JonB

  • *
  • 351
  • +0/-0
FTP to a specific folder?
« Reply #14 on: April 01, 2006, 03:26:54 AM »
Spook,

It has been answered. Download and install smeserver-remoteuseraccess from

http://sme.dungog.net/packages/smeserver/7.0/i386/html/index_dungog.html


Jon
...

Offline Smitro

  • *
  • 350
  • +0/-0
FTP to a specific folder?
« Reply #15 on: April 29, 2006, 05:46:43 AM »
After searching and finding this post...

Do you know if it works for 6.5?

I presume my problem is similar. The Panel works, but when the user logs in, they just go to there own folder. not where they should go.
.........