All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/3] vsftpd: Add ftp user creation
Date: Sun, 4 Oct 2015 15:44:52 +0100	[thread overview]
Message-ID: <20151004154452.16eee409@free-electrons.com> (raw)
In-Reply-To: <1443965495-12774-2-git-send-email-maxime.hadjinlian@gmail.com>

Maxime,

On Sun,  4 Oct 2015 15:31:34 +0200, Maxime Hadjinlian wrote:

> +#
> +# VSFTPD won't work if the jail directory is writable, it has to be readable
> +# only
> +# Otherwise you get the following error:
> +# 500 OOPS: vsftpd: refusing to run with writable root inside chroot()
> +# That's why we have to chmod /home/ftp
> +define VSFTPD_FIX_HOME_PERMISSIONS
> +	$(INSTALL) -d -m 555 $(TARGET_DIR)/home/ftp
> +endef

Can we use VSFTPD_PERMISSIONS instead ? The only drawback is that you
will have to set a fixed UID/GID for ftp:ftp in VSFTPD_USERS.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

  parent reply	other threads:[~2015-10-04 14:44 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-04 13:31 [Buildroot] [PATCH 1/3] proftpd: Add ftp user creation Maxime Hadjinlian
2015-10-04 13:31 ` [Buildroot] [PATCH 2/3] vsftpd: " Maxime Hadjinlian
2015-10-04 13:53   ` Vincent Olivert Riera
2015-10-04 14:44   ` Thomas Petazzoni [this message]
2015-10-04 15:08     ` Yann E. MORIN
2015-10-04 18:14       ` Maxime Hadjinlian
2015-10-10 17:38   ` Thomas Petazzoni
2015-10-04 13:31 ` [Buildroot] [PATCH 3/3] skeleton: Remove ftp user and /home/ftp Maxime Hadjinlian
2015-10-04 13:54   ` Vincent Olivert Riera
2015-10-10 17:38   ` Thomas Petazzoni
2015-10-04 13:53 ` [Buildroot] [PATCH 1/3] proftpd: Add ftp user creation Vincent Olivert Riera
2015-10-10 17:36 ` Thomas Petazzoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20151004154452.16eee409@free-electrons.com \
    --to=thomas.petazzoni@free-electrons.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.