Re: question on "upload" directive in /etc/ftpaccess
Kaysee Long <[email protected]> Tue, 22 Mar 2005 07:54:13 -0500
| Newsgroups | gmane.network.ftp.wuftpd.user |
|---|---|
| Message-ID | <OFC9DF332E.4E07A617-ON85256FCC.00448CAB-85256FCC.0046E1B2@us.ibm.com> |
I tried compiling wuftp with Large file enable but it didn't work - I am
using gcc - i can't seem to get the version right now because there is some
kind of routing problem to telnet - I changed the flags like this:
echo "$as_me:1637: result: $ac_cv_c_compiler_gnu" >&5
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
GCC=`test $ac_compiler_gnu = yes && echo yes`
ac_test_CFLAGS=${CFLAGS+set}
ac_save_CFLAGS=$CFLAGS
CFLAGS="-g -m64"
cho "$as_me:1680: result: $ac_cv_prog_cc_g" >&5
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
if test "$ac_test_CFLAGS" = set; then
CFLAGS=$ac_save_CFLAGS
elif test $ac_cv_prog_cc_g = yes; then
if test "$GCC" = yes; then
CFLAGS="-g -O2 -m64"
else
CFLAGS="-g"
but i still get a broken pipe trying to transfer a large file -
couldn't anyone tell me what i didn't do right - this is for
Solaris...Kaysee
aaron.duncan@cent
relink.gov.au
Sent by: To
owner-wuftpd-ques [email protected]
[email protected] cc
Subject
03/01/2005 01:44 question on "upload" directive in
AM /etc/ftpaccess
Hi,
I was wondering if someone could please explain the behaviour I am noticing
with the "upload" directive in the /etc/ftpaccess file.
I am using washington ftp version 2.6.2 on Solaris 8.
I have the following directives in my ftpaccess file:
guestuser *
guest-root /user
users have their home directory one level below /user (such as
"/user/homedir").
I wish to have the following behaviour controlled by the "upload" directive
in ftpaccess:
- users are not allowed to upload to the following directories:
/user
/user/bin
/user/etc
/user/public
- users are allowed to upload to all other directories underneath
/user
- all uploaded files must be owned by "ftpuser" and "ftpgroup" with
permission 666
I initially thought that the directives should be as follows:
upload /user * no
upload /user /public no
upload /user /* yes ftpuser ftpgroup 0666
nodirs
but that didn't work.
I tried the following directives (after reading
http://www.wu-ftpd.org/HOWTO/upload.configuration.HOWTO):
upload /user/* / no
upload /user/* /bin no
upload /user/* /etc no
upload /user/* /public no
upload /user/* /* yes ftpuser ftpgroup 0666 nodirs
which worked, with the exception that users could upload to /user.
My Questions:
- why do the wildcards seem to be required in the "<root-dir>"
field for guest users?
- how do I match the contents of a directory, without matching the
directory itself?
I tried changing the last 'upload' directive to the following (without
success):
upload /user/* /[a-z]* yes ftpuser ftpgroup 0666 nodirs
upload /user/*/* / yes ftpuser ftpgroup 0666 nodirs
I also tried specifying the /user directory explicitly (with no success) as
follows:
upload /user/* . no
I have looked through the mail list archives, surfed the net, and can't
find anything to help me.
Any help would greatly appreciated.
Thanks,
Aaron
ps. I can't seem to find *any* 2005 emails for this list (I've just
subscribed). Direct emails would be appreciated
to let me know it has been received. I will summarise responses and post
to the list.
Thanks again.
**********************************************************************
Disclaimer: This e-mail is intended for the use of the addressee and may
contain information that is confidential, commercially valuable or subject
to legal or parliamentary privilege. If you are not the intended recipient
you are notified that any review, re-transmission, disclosure, use or
dissemination of this communication is strictly prohibited by several
Commonwealth Acts of Parliament. If you have received this communication
in error please notify the sender immediately and delete all copies of this
transmission together with any attachments.
**********************************************************************