Skip to contentSkip to conversation

proftpd: use /bin/false as the login shell

PATCH Superseded [email protected] 1 participant 2 messages Dec 2, 2013

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 proftpd: use /bin/false as the login shell

From: Roy Li <[email protected]>

Use /bin/false as the login shell, just like what Ubuntu does, otherwise there might be secure issue.

---
 meta-networking/recipes-daemons/proftpd/proftpd_1.3.4b.bb |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta-networking/recipes-daemons/proftpd/proftpd_1.3.4b.bb +2 -1
index 6537b77..0006a2a 100644
@@ -62,6 +62,7 @@ INITSCRIPT_PARAM = "defaults 85 15"
 
 USERADD_PACKAGES = "${PN}"
 GROUPADD_PARAM_${PN} = "--system ${FTPGROUP}"
-USERADD_PARAM_${PN} = "--system -g ${FTPGROUP} ${FTPUSER}"
+USERADD_PARAM_${PN} = "--system -g ${FTPGROUP} --home-dir /var/lib/ftp --no-create-home \
+                       --shell /bin/false ${FTPUSER}"
 
 FILES_${PN} += "/home/${FTPUSER}"
Signature · 1 line
1.7.10.4
#1 lore raw

Drop it, I will fix the commit log

Quoted 24 lines · On 12/02/2013 10:27 AM, [email protected] wrote:

From: Roy Li <[email protected]>

Use /bin/false as the login shell, just like what Ubuntu does, otherwise there might be secure issue.

---
  meta-networking/recipes-daemons/proftpd/proftpd_1.3.4b.bb |    3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
meta-networking/recipes-daemons/proftpd/proftpd_1.3.4b.bb +2 -1
index 6537b77..0006a2a 100644
@@ -62,6 +62,7 @@ INITSCRIPT_PARAM = "defaults 85 15"
 
  USERADD_PACKAGES = "${PN}"
  GROUPADD_PARAM_${PN} = "--system ${FTPGROUP}"
-USERADD_PARAM_${PN} = "--system -g ${FTPGROUP} ${FTPUSER}"
+USERADD_PARAM_${PN} = "--system -g ${FTPGROUP} --home-dir /var/lib/ftp --no-create-home \
+                       --shell /bin/false ${FTPUSER}"
 
  FILES_${PN} += "/home/${FTPUSER}"
Signature · 2 lines
Best Reagrds,
Roy | RongQing Li