2009-07-24

pureftpd anonymous delete resume rename file

os:freebsd 6.1

使用pure-ftpd想要開啟anonymous delete resume rename file
必須在configure前就要 setenv

setenv CPPFLAGS "-DANON_CAN_DELETE -DANON_CAN_RENAME"
cd /usr/ports/ftp/pure-ftpd
make install clean
就可以了

setenv CFLAGS not work。



Hi again.

What follows is something extremely confidential, private, undocumented
and top secret. But as you subscribed to the shiny pureftpd-users
mailing-list, you need to know. Maybe this is dangerous. Maybe if
someone knows that you've read this, special agents will murder you.
So you're free to delete this message without any further reading now.

Still here? Are you sure?

Well...

Ok.

Apart from ./configure and run-time options, there are some
undocumented switches in Pure-FTPd. They are undocumented because they
were only designed for testing/debugging, or because they are uncommon
needs.

But if you are strong, you can play with these undocumented switches.

To enable them, you have to recompile pure-ftpd with something like
that :

env CFLAGS="$CFLAGS -DSTRICT_REST -DLOG_ANON_EMAIL" ./configure
make install-strip

Add as many -D as you want here.

Here's a list of these top secret features :

* ALWAYS_RESOLVE_IDS :
Always try to get full user names, even once chrooted. If you define
this, you can put a fake etc/passwd file (or similar, like pwd.db) in
a chrooted environment to get user names.

* ANON_CAN_CHANGE_PERMS :
Allow anonymous users to chmod files.

* ANON_CAN_DELETE :
Allow anonymous users to delete files.

* ANON_CAN_RENAME :
Allow anonymous users to rename files.

* ANON_CAN_RESUME :
Allow anonymous users to resume uploads.

* AUTORENAME_REVERSE_ORDER :
When autorename is enabled, put the unique id at the beginning of
file names, not at the end. Useful if you want to keep extensions.

* DEFAULT_TO_BINARY_TYPE :
Default to binary transfers even if 'bin' ('TYPE I') hasn't been
issued by the client.

* DISABLE_MKD_RMD :
People can't create/delete directories any more.

* DO_AUTHD_TIMEOUT :
Send an ALRM signal to an authentication module after 60 seconds.

* FANCY_LS_DIRECTORY_HEADERS :
Display 'ls' with multiple directories with lovely headers. This is how
the good old first releases of pure-ftpd were displaying things.
Unfortunately, it breaks parsing with some clients (like ncftp with a
recursive get) . But I really feel nostalgic when I see these headers
again.

* LOG_ANON_EMAIL :
Log what anonymous users have entered in the 'password' field.
Except for SPAM, I don't see any reason why people would enable this.
So no, no, no, don't ask, it won't become a standard feature.

* NON_BLOCKING_DATA_SOCKET :
Create transfers socket with O_NONBLOCK.

* RFC_CONFORMANT_LINES :
Assumes that all clients will end their command lines with \r\n as
expected. Unfortunately, in the real life, this is not always the case.

* RFC_CONFORMANT_PARSER :
Allows control characters and other horrible stuff in commands and
file names.

* SAVE_DESCRIPTORS :
Save file descriptors by closing/reopening the log after/before
every logged message. Slow, painful, and not chroot-friendly.

* SKIP_COMMAND_TRAILING_SPACES :
Trim spaces after commands, so that 'STOR xyz' is the same as 'STOR
xyz' . For brain damaged clients.

* SNPRINTF_IS_NOT_BUGGY :
Asserts that your snprintf() function works the ISO C99 way. Never
enable this on binary packages.

* STRICT_REST :
Disallow REST commands in ASCII mode (or at least : reply with an
error code) .

* WITHOUT_PAM_SESSION :
Do PAM authentication, but don't open PAM sessions.


Have fun...

_______________________________________________________________
Hundreds of nodes, one monster rendering program.
Now that's a super model! Visit http://clustering.foundries.sf.net/

_______________________________________________
Pureftpd-users mailing list
Pureftpd-users@lists.sourceforge.net
https://lists.sourceforge.net/lists.../pureftpd-users

2 comments:

Unknown said...

I tried compiling with Pure-FTPD 1.0.36, but it seems that the last version to be accepting these switches is 1.0.35.

3bl3gamer said...

With version 1.0.43 this worked:
CFLAGS="-DANON_CAN_CHANGE_PERMS -DANON_CAN_DELETE -DANON_CAN_RENAME -DANON_CAN_RESUME" ./configure

And then:
make

2023 灌籃高手 SLAM Dunk

 2023 哩哩摳摳 昨天是難得的颱風假。 去看了二輪的灌籃高手。 電影院一堆的小朋友阿。 以下有小暴雷。 雖然我不算是非常的迷灌籃高手,但是還是很喜歡這部作品。 井上老師的畫風我也非常喜歡。 整部片是以良田的角度來看的。 以前我並不是很熟習良田這個角色,但是看到良田能重新站起來...