Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: spook on March 09, 2006, 07:12:54 PM

Title: FTP to a specific folder?
Post by: spook 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.
Title: FTP to a specific folder?
Post by: jfarschman 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.
Title: FTP to a specific folder?
Post by: beakersloco 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 ?
Title: FTP to a specific folder?
Post by: jfarschman on March 10, 2006, 01:31:05 AM
I'll confirm 6.0.1 and 7.0Pre4
Title: FTP to a specific folder?
Post by: stormdragon 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!
Title: FTP to a specific folder?
Post by: spook on March 11, 2006, 06:05:14 PM
Sounds nice... now all I need is some guidelines for installing  :-D
Title: FTP to a specific folder?
Post by: cc_skavenger 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.
Title: FTP to a specific folder?
Post by: cc_skavenger 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.
Title: FTP to a specific folder?
Post by: stephen noble 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 ?
Title: Bug's behavior
Post by: stormdragon 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?
Title: FTP to a specific folder?
Post by: stephen noble 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
Title: Re: Bug's behavior
Post by: CharlieBrady 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.
Title: FTP to a specific folder?
Post by: stephen noble 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
Title: FTP to a specific folder?
Post by: spook 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  :-?
Title: FTP to a specific folder?
Post by: JonB 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
Title: FTP to a specific folder?
Post by: Smitro 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.