Asif Iqbal | 1 Jun 2009 02:03
Picon

Re: [Proftpd-user] Trigger a job when upload finish

On Sun, May 31, 2009 at 3:15 PM, Dieter Bloms <proftpd <at> bloms.de> wrote:
> Hi,
>
> On Fri, May 29, Asif Iqbal wrote:
>
>> Is there way to trigger a job when uploading a file finishes in an
>> anonymous ftp server?
>>
>> I am running ProFTPD Version 1.3.1 on Ubuntu 9.04
>
> maybe this is what you are looking for:
>
> http://www.castaglia.org/proftpd/modules/mod_exec.html#ExecOnCommand

I am running a version lower than the 1.3.2rc2 which seems to be the
requirement for mod_exec.

gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall
-Wno-long-double -c mod_exec.c
mod_exec.c:40:3: error: #error "ProFTPD 1.3.2rc1 or later required"
cc1: warning: unrecognized command line option "-Wno-long-double"
make[1]: *** [mod_exec.o] Error 1

>
>
> --
> Gruß
>
>  Dieter
>
(Continue reading)

Dieter Bloms | 1 Jun 2009 21:21
Picon
Favicon

Re: [Proftpd-user] Trigger a job when upload finish

Hi,

On Sun, May 31, Asif Iqbal wrote:

> On Sun, May 31, 2009 at 3:15 PM, Dieter Bloms <proftpd <at> bloms.de> wrote:
> > Hi,
> >
> > On Fri, May 29, Asif Iqbal wrote:
> >
> >> Is there way to trigger a job when uploading a file finishes in an
> >> anonymous ftp server?
> >>
> >> I am running ProFTPD Version 1.3.1 on Ubuntu 9.04
> >
> > maybe this is what you are looking for:
> >
> > http://www.castaglia.org/proftpd/modules/mod_exec.html#ExecOnCommand
> 
> I am running a version lower than the 1.3.2rc2 which seems to be the
> requirement for mod_exec.
> 
> gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall
> -Wno-long-double -c mod_exec.c
> mod_exec.c:40:3: error: #error "ProFTPD 1.3.2rc1 or later required"
> cc1: warning: unrecognized command line option "-Wno-long-double"
> make[1]: *** [mod_exec.o] Error 1

it's a good idea to update to the current 1.3.2 release, because of some
security issues.

(Continue reading)

Asif Iqbal | 1 Jun 2009 21:42
Picon

Re: [Proftpd-user] Trigger a job when upload finish

On Mon, Jun 1, 2009 at 3:21 PM, Dieter Bloms <proftpd <at> bloms.de> wrote:
> Hi,
>
> On Sun, May 31, Asif Iqbal wrote:
>
>> On Sun, May 31, 2009 at 3:15 PM, Dieter Bloms <proftpd <at> bloms.de> wrote:
>> > Hi,
>> >
>> > On Fri, May 29, Asif Iqbal wrote:
>> >
>> >> Is there way to trigger a job when uploading a file finishes in an
>> >> anonymous ftp server?
>> >>
>> >> I am running ProFTPD Version 1.3.1 on Ubuntu 9.04
>> >
>> > maybe this is what you are looking for:
>> >
>> > http://www.castaglia.org/proftpd/modules/mod_exec.html#ExecOnCommand
>>
>> I am running a version lower than the 1.3.2rc2 which seems to be the
>> requirement for mod_exec.
>>
>> gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall
>> -Wno-long-double -c mod_exec.c
>> mod_exec.c:40:3: error: #error "ProFTPD 1.3.2rc1 or later required"
>> cc1: warning: unrecognized command line option "-Wno-long-double"
>> make[1]: *** [mod_exec.o] Error 1
>
> it's a good idea to update to the current 1.3.2 release, because of some
> security issues.
(Continue reading)

TJ Saunders | 2 Jun 2009 22:26

Re: [Proftpd-user] Two problems with proftpd v1.3.2 (MLST, hidden dirs)


> Problem 1 (strange permissions, UID instead username):
> ------------------------------------------------------

This has already been fixed in CVS.

> But "proftpd" seems to regard only the OS (Linux) permissions but not the 
> access restrictions specified within proftpd.conf itself (that - not 
> documented here - denies write-access to that file for most users and also 
> for the user "ftp" (UID 4000)).

This is the intended behavior.

>  The perm fact is used to indicate access rights the current FTP user
>  has over the object listed.  Its value is always an unordered
>  sequence of alphabetic characters.
>
> so I conclude that access permissions defined within the FTP-server
> configuration itself has to be regarded?

Perhaps, perhaps not.  This is a matter of interpretation.  Existing FTP 
clients using the LIST command does not expect this particular 
interpretation of listed permissions; such client implements simply treat 
MLST as a synonym for LIST.  I'd like to hear of a client for which this 
is NOT the case.

> to proftpd.conf restores the old behaviour (but the problem described in this 
> mail seems not a "MLST-wildcard"-problem).

MLST, as per RFC, explicitly does NOT support wildcards.
(Continue reading)

Asif Iqbal | 2 Jun 2009 22:49
Picon

Re: [Proftpd-user] Trigger a job when upload finish

I were able to achieve this in my ubuntu server using incrond

install incrond pkg for ubuntu

then add `root' to the /etc/incron.allow file

now add a incron job by running  `incrontab -e'

to see the job do the following

# incrontab -l
/home/ftp/upload/folder  IN_CLOSE_WRITE  /root/copy_to_download.sh $ <at> /$#

# man 5 incrontab ,  and look at the EXAMPLE section to understand the
incrontab syntax

it calls the bash script which looks like following

# cat /root/copy_to_download.sh
#!/bin/bash
if tail -n 1 /var/log/proftpd/xferlog | grep -q '[[:space:]]c$' ; then
cp -p "$1" ~ftp/download; fi

Thanks

On Fri, May 29, 2009 at 6:19 PM, Asif Iqbal <vadud3 <at> gmail.com> wrote:
> Is there way to trigger a job when uploading a file finishes in an
> anonymous ftp server?
>
> I am running ProFTPD Version 1.3.1 on Ubuntu 9.04
(Continue reading)

James | 4 Jun 2009 15:03

[Proftpd-user] Proftpd Active Directory Auth - winbind? or mod_ldap?

Dear all,

I am running a CentOS 5 server that is authenticating it's system users 
via Active Directory using winbind. Samba is also auth'ing via Active 
Directory and so are a number of Apache logins...

I installed Proftpd and any AD user fails to login, a native linux 
system account works fine. I have been digging around online and found 
in a forum post that "PAM is insufficient for Proftpd" so I am guessing 
there is no way to make Proftpd auth using system-auth? If this is the 
case I will have to setup mod_ldap, does anyone have an example of a 
working mod_ldap proftpd.conf ?  What i really don't  understand is why 
Proftpd wont auth using system-auth?

Thanks
James

__________ Information from ESET NOD32 Antivirus, version of virus signature database 4130 (20090604) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
(Continue reading)

Florian Coulmier | 4 Jun 2009 15:59
Picon

Re: [Proftpd-user] Proftpd Active Directory Auth - winbind? or mod_ldap?

Dear James,

I also had trouble to make my proftp check users against AD, but I  
finally managed to make it work.

Here is what you need :

Prerequisite :

- Winbind working
- Proftpd working for local unix acccount

For your proftpd.conf :

AuthPAMConfig     proftpd
AuthPAM		On
AuthOrder       mod_auth_pam.c* mod_auth_unix.c  # The star is  
important after mod_auth_pam.c

For your /etc/pam.d/proftpd file :

auth		sufficient	pam_winbind.so		debug krb5_auth cached_login
auth		required	pam_unix.so		debug try_first_pass

account		required	pam_nologin.so
account		required	pam_unix.so	

session		required	pam_permit.so

I think this should be enough, but maybe I forgot something. Tell me  
(Continue reading)

James | 4 Jun 2009 16:02

[Proftpd-user] mod_ldap not working

Hi Guys,

I can't get mod_ldap to work I keep getting 530 Login Incorrect.

Here is my mod_ldap section from proftpd.conf:

<ifModule mod_ldap.c>
    AuthOrder       mod_ldap.c
    LDAPAuthBinds   on
    LDAPServer      192.168.5.2
    LDAPAttr                uid             SAMAccountname
    LDAPDNInfo              "CN=apache,CN=users,DC=audiumsemi,DC=local" 
"978au3nr38hkdeU"
    LDAPDoAuth      on      
"OU=SBSUsers,OU=Users,OU=MyBusiness,DC=audiumsemi,DC=local" 
"(SAMAccountName=%u)"
    LDAPQueryTimeout        10    LDAPDefaultUID          10000
    LDAPDefaultGID          10000
    LDAPForceDefaultUID     on
    LDAPForceDefaultGID     on
    LDAPGenerateHomedir     off
</IfModule>

Any ideas?

Many Thanks

__________ Information from ESET NOD32 Antivirus, version of virus signature database 4130 (20090604) __________

The message was checked by ESET NOD32 Antivirus.
(Continue reading)

James | 4 Jun 2009 16:16

Re: [Proftpd-user] Proftpd Active Directory Auth - winbind? or mod_ldap?

Thanks for getting back to me, winbind is working fine so is Proftpd 
with local unix accounts.

However I am still getting the same problem as before with 530 login 
failed with your configs.

Any ideas?

Thanks :)

Florian Coulmier wrote:
> Dear James,
>
> I also had trouble to make my proftp check users against AD, but I  
> finally managed to make it work.
>
> Here is what you need :
>
> Prerequisite :
>
> - Winbind working
> - Proftpd working for local unix acccount
>
> For your proftpd.conf :
>
> AuthPAMConfig     proftpd
> AuthPAM		On
> AuthOrder       mod_auth_pam.c* mod_auth_unix.c  # The star is  
> important after mod_auth_pam.c
>
(Continue reading)

Florian Coulmier | 4 Jun 2009 16:30
Picon

Re: [Proftpd-user] mod_ldap not working

Hi,

Have you tried with :

LDAPDoAuth      on     
"OU=SBSUsers,OU=Users,OU=MyBusiness,DC=audiumsemi,DC=local"  
"(SAMAccountName=%v)"

(I changed %u with %v at the end)

Otherwise, maybe change SAMAccountname with sAMAccountName (I don't  
think ldap is case sensible, but it's something to try)

Finaly, are you sure of your LDAPDNInfo directive ? isn't it :  
CN=apache,OU=users,DC=audiumsemi,DC=local ?

Best Regards,

Florian Coulmier

Le 4 juin 09 à 16:02, James a écrit :

> Hi Guys,
>
> I can't get mod_ldap to work I keep getting 530 Login Incorrect.
>
> Here is my mod_ldap section from proftpd.conf:
>
> <ifModule mod_ldap.c>
>    AuthOrder       mod_ldap.c
(Continue reading)


Gmane