Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: thorsten greiner 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?
-
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!
-
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 ;)
-
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.
-
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
-
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?
-
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.
-
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.
-
O.K. - will try to put something together this weekend. Maybe Thorsten will beat me to it.
-
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...
-
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.
-
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.