Koozali.org: home of the SME Server

Access to i-bay via FTP

Tony

Access to i-bay via FTP
« on: February 28, 2004, 02:50:16 PM »
Hello!
I made an i-bay and now I would like to connect via FTP to this i-bay. I configured like this:
Information bay name: test
Description: testing
Group: Friends group (friends)
User access via file sharing or user ftp: Write=Group, Read=Everyone
Public access via web or anonymous ftp: Entire internet (password required outside local network)
Execution of dynamic content (CGI, PHP, SSI) : enabled

And if I log in via FTP (ftp://i-bay_name:password@ftp.server) then I don't have permissions to write and delete. Why?
Is there anything what I haven't done yet?

Regards,
Tony

Offline chris burnat

  • *****
  • 1,135
  • +2/-0
    • http://www.burnat.com
Access to i-bay via FTP
« Reply #1 on: February 29, 2004, 08:57:29 AM »
Tony,  not to familiar with the way you are trying to log in... but to ftp into an ibay the way you got it setup, two ways (i) username=name of ibay passw=password you set for the ibay - you cannot write or delete, read only.  (ii) username = a regular user included in the group (friends) passw the pasword for this user- you can r/w and delete. Hope its help... chris
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.

Anonymous

Access to i-bay via FTP
« Reply #2 on: February 29, 2004, 10:26:07 AM »
Quote from: "burnat"
Tony,  not to familiar with the way you are trying to log in... but to ftp into an ibay the way you got it setup, two ways (i) username=name of ibay passw=password you set for the ibay - you cannot write or delete, read only.  (ii) username = a regular user included in the group (friends) passw the pasword for this user- you can r/w and delete. Hope its help... chris

Yes, I have tried all this variants, but if I log in like you said in the second point, then I can see some kind of mail directory and home directiory. Yes, I can read and write into home dir, but this isn't an ibay. If I put there index.php and then http://server/ibay_name then I can't see it :(
What is wrong?

Offline chris burnat

  • *****
  • 1,135
  • +2/-0
    • http://www.burnat.com
Access to i-bay via FTP
« Reply #3 on: February 29, 2004, 10:43:11 AM »
>>then I can see some kind of mail directory and home directiory.

You are nearly there.  You have arrived in the home of the user you have logged in as.  Now you have to navigate to your ibay, go : /home/e-smith/files/ibays/ibay_name/files  - doing this from a browser is a pain I think, so use an ftp client, there are many around.  You can then enter the path above somewhere and bingo, you hit your ibay.  Later on, you may wish to investigate a small contribution called ftp user root from Dungog.net - you can force (changeroot) any user to an ibay automatically. hope this help. chris
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.

Anonymous

Access to i-bay via FTP
« Reply #4 on: February 29, 2004, 11:18:02 AM »
Yes, it helpes me a lot. Thanks :-)
But now, if I log in as some user who is friends group, then I can access to primary ibay too. But I can't write there or do something else. But I can view files - this is bad. Can I do something to repair this?

Tony

Access to i-bay via FTP
« Reply #5 on: February 29, 2004, 12:29:00 PM »
So, I installed this rpm dungog-proftpd-chroot-0.1-3.noarch.rpm and I think this is the rpm that I need. But when I do there changes (Global changes) and then push the Restart FTP server, then i get Internal Server Error and my changes won't change. :cry:

Offline chris burnat

  • *****
  • 1,135
  • +2/-0
    • http://www.burnat.com
Access to i-bay via FTP
« Reply #6 on: February 29, 2004, 01:58:38 PM »
Tony, slow down mate, I got to go and have a sleep...  Besides, I am no expert, far from it - However:

>>But now, if I log in as some user who is friends group, then I can access to primary ibay too. But I can't write there or do something else. But I can view files - this is bad. Can I do something to repair this?

This is Ok, logging as a user for ftp opens the whole box.  You can access a lot of things, but cannot do much in terms of write/delete BECAUSE, taking as an example the case of the primary site, it is created and owned by admin.  Other ibays or directories are owned by other entities, you will have to log as this precise entity to have write access. Linux protect itself, and just as well, or begineers like you and I would demolish their system in no time at all... So if you want to change the content of your primary ibay, log as  admin, and all will be well.  Become familiar with permissions for directories and files. Note that sme comes with midnight commander, type mc at the command prompt, navigate your way to a directory of interest, then F9 to drop the menu, go in files and select cHmod - it will tell you who own what, and allow you to change permissions - please be careful!

Note: ftp is not a secure protocol.  Check sftp please if you intend to open your box to the world...  

>>So, I installed this rpm dungog-proftpd-chroot-0.1-3.noarch.rpm and I think this is the rpm that I need. But when I do there changes (Global changes) and then push the Restart FTP server, then i get Internal Server Error and my changes won't change.

Let me check this and come back tomorrow.  What version of sme are you running, and how did you install?

cheers :-) chris
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.

Tony

Access to i-bay via FTP
« Reply #7 on: February 29, 2004, 03:13:16 PM »
Quote from: "burnat"
Let me check this and come back tomorrow.  What version of sme are you running, and how did you install?


I am running SME 6.0 server and gateway mode. I hope it helps.

And I get this error message:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Tony

Offline chris burnat

  • *****
  • 1,135
  • +2/-0
    • http://www.burnat.com
Access to i-bay via FTP
« Reply #8 on: February 29, 2004, 11:42:57 PM »
I think that you may need to install Dungog User Panel first - you can get it from Dungog GPL.  On my installation, the ftp user root module is listed under Dungog.net in service manager. Worth a try?
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.

Tony

Access to i-bay via FTP
« Reply #9 on: March 01, 2004, 06:29:50 AM »
Quote from: "burnat"
I think that you may need to install Dungog User Panel first - you can get it from Dungog GPL.  On my installation, the ftp user root module is listed under Dungog.net in service manager. Worth a try?

I think I already have it. There I change and if I click Restart FTP server button there I get Internal server error.

Offline chris burnat

  • *****
  • 1,135
  • +2/-0
    • http://www.burnat.com
Access to i-bay via FTP
« Reply #10 on: March 01, 2004, 07:15:06 AM »
Tony,  I cannot help you much there. If you have installed the Dundog user panel, the new module should appear under a heading "Dungog.net", is this the case?  [In am not even sure if the user pannel is required to be honest]. Also try to modify for a single user - you will have to enter a path that is valid - see if this work.  Finally, just in case - reboot and check again, including the logs.... You never know.
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.

Tony

Access to i-bay via FTP
« Reply #11 on: March 01, 2004, 03:58:01 PM »
Quote from: "burnat"
Tony,  I cannot help you much there. If you have installed the Dundog user panel, the new module should appear under a heading "Dungog.net", is this the case?  [In am not even sure if the user pannel is required to be honest]. Also try to modify for a single user - you will have to enter a path that is valid - see if this work.  Finally, just in case - reboot and check again, including the logs.... You never know.


Yes, there is heading dungog.net under there is subheading FTP user root. But do you know how can I do the same but on the command line? And then how can I restart the FTP server?

If there are someone who would like to help my through MSN, then my contact is tobre@hot.ee . I am very thankful and I appreciate all of you who helps me.