Koozali.org: home of the SME Server

ftp access

thorsten greiner

ftp access
« on: June 04, 2001, 03:05:59 AM »
hi...!

prob is i created an ibay like 'abc'. so if i access it via ftp i use user=abc and pass=...

this ibay is used to retrieve information and data from customers. once i logged in using above username/password i can't upload anything.

anyone an idea?

Alec Norek

Re: ftp access
« Reply #1 on: June 04, 2001, 05:09:48 AM »
I've had the same problem. Have a look at my work-around.
http://forums.contribs.org/index.php?topic=10718.msg40424#msg40424

There must be a better way though!

thorsten greiner

Re: ftp access
« Reply #2 on: June 04, 2001, 05:50:37 PM »
yeah... you are right. there sure is some smarter way. if i got this permission stuff right, in e-smith manager should be something like:

write: ibay-username, read: everyone
write: group, read: everyone
write: group, read: group
...

i tried to add a ftp-users-group and a ftp-user... which worked... to gain ftp-group-access. and then created a pseudonym for that user. prob is the pseudonym can not be created cos there's already an ibay in the system with that name.

wonder if there's a way (or will be in near future)...

thanx anyway ;)

Alec Norek

Re: ftp access
« Reply #3 on: June 05, 2001, 04:22:01 AM »
For test purposes only:
create a user = bsmith
password      = 12345

create an ibay = smithdata
create a group = smithgrp (be liberal with permissions - this is only a test) and then edit /etc/proftpd.conf  and change group to smithgrp. Also remove any denyAll & replace with AllowAll.

Use an FTP client and login as bsmith with pw=12345.  You now have access to your smithdata ibay via ../../ibays/smithdata.

thorsten greiner

Re: ftp access
« Reply #4 on: June 05, 2001, 01:47:32 PM »
well...

figured something out in /etc/e-smith/templates/etc/proftpd.conf/60AnonymousIBay there's a section way down the template:

$OUT .= "\n";
            $OUT .= "\n";
            $OUT .= "    User $key\n";
            $OUT .= "    Group $key\n";
            $OUT .= "    AnonRequirePassword " . ($pass ? "on" : "off") . "\n";
            $OUT .= "    UseFtpUsers on\n";
            $OUT .= "    MaxClients 10\n";
            $OUT .= "    DisplayLogin welcome.msg\n";
            $OUT .= "    DisplayFirstChdir .message\n";
            $OUT .= "    \n";
            $OUT .= "      Order Allow,Deny\n";
            $OUT .= "      Allow from $allow\n";
            $OUT .= "      Deny from all\n";
            $OUT .= "    
\n";
            $OUT .= "    \n";
            $OUT .= "        \n";
            $OUT .= "            DenyAll\n"; <------------------- change to AllowAll
            $OUT .= "        
\n";
            $OUT .= "    
\n";
            $OUT .= "
\n";

this is just a quick and dirty fix i guess... but this is the part where permissions for ibays in proftpd.conf reside.

greetinx, thorsten

Alec Norek

Re: ftp access
« Reply #5 on: June 05, 2001, 04:52:03 PM »
Yep that's the way to go.  But how do you get this template to use the group you designate rather than the default "ibay name" group?

$OUT .= " User $key\n";
$OUT .= " Group $key\n"; ---- Did you get r/w access without changing the group?

Alec Norek

Re: ftp access
« Reply #6 on: June 05, 2001, 06:54:39 PM »
I have just answered my question. Changing the group has nothing to do with it.  It's just the attention to the lines below.

$OUT .= " \n";
$OUT .= " Order Allow,Deny\n";
$OUT .= " Allow from $allow\n";
$OUT .= " Deny from all\n"; < .......... leave this line out?
$OUT .= "
\n";
$OUT .= " \n";
$OUT .= " \n";
$OUT .= " DenyAll\n"; <------------------- change to AllowAll
$OUT .= "
\n";

I then did a custom template modification to 60AnonymousIBay as per e-smith documentation and Hey!!!!!! I'm a happy chappie.  THANKS THORSTEN, you helped me to get out of my tunnel vision approach. I was convinced that the group assigned to e-smith was also at fault.  Another milestone - I'll be wearing a GURU cap by 2010.

John Lewis

Re: ftp access
« Reply #7 on: June 05, 2001, 10:31:13 PM »
Any chance you could write this entire process up as a howto, including the steps to reinitialize the templates?

We would find that really helpful, as we also need to allow the ibay group to be able to write via ftp.  A basic howto by someone who has done this before would be very useful.

Thanks.

Alec Norek

Re: ftp access
« Reply #8 on: June 06, 2001, 04:46:37 AM »
O.K. - will try to put something together this weekend. Maybe Thorsten will beat me to it.

thorsten greiner

Re: ftp access
« Reply #9 on: June 06, 2001, 12:47:55 PM »
yepp... sounds good...
maybe we should have contact via email then... i think i need to take a closer look in configuring, ergo rewriting templates.

but maybe this is something for future releases of e-smith as well...

Jeff Fox

Re: ftp access
« Reply #10 on: June 08, 2001, 10:51:34 PM »
How can I change the default location for the FTP logon?
When I connect via FTP I am in the \files directory. I want to connect to the \html directory.

I tried changing this:
$OUT .= "\n";

to this:
$OUT .= "\n";

But this does not work.

David Edwards

Re: ftp access
« Reply #11 on: February 24, 2002, 12:02:38 PM »
Look in your /etc/passwd file.

Jeff Fox wrote:
>
> How can I change the default location for the FTP logon?
> When I connect via FTP I am in the \files directory. I want
> to connect to the \html directory.
>
> I tried changing this:
> $OUT .= "\n";
>
> to this:
> $OUT .= "\n";
>
> But this does not work.