[openwrt/openwrt] base-files: remove ftp user and group

LEDE Commits lede-commits at lists.infradead.org
Sat Jan 24 11:34:00 PST 2026


hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/ef106791537d4b43d764a05333527c6d7a11dd69

commit ef106791537d4b43d764a05333527c6d7a11dd69
Author: John Audia <therealgraysky at proton.me>
AuthorDate: Tue Jul 15 05:46:52 2025 -0400

    base-files: remove ftp user and group
    
    Any ftpd package such as vsftpd or atftpd (are there others?) should
    create their own unprivileged user. Both of the aforementioned
    packages do not even use this ftp user and run as root. That should be
    addressed in separate commits.
    
    Signed-off-by: John Audia <therealgraysky at proton.me>
    Link: https://github.com/openwrt/openwrt/pull/19418
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 package/base-files/files/etc/group  | 1 -
 package/base-files/files/etc/passwd | 1 -
 package/base-files/files/etc/shadow | 1 -
 3 files changed, 3 deletions(-)

diff --git a/package/base-files/files/etc/group b/package/base-files/files/etc/group
index 5b06dc6db9..cdcd414abb 100644
--- a/package/base-files/files/etc/group
+++ b/package/base-files/files/etc/group
@@ -5,7 +5,6 @@ mail:x:8:
 dialout:x:20:
 audio:x:29:
 www-data:x:33:
-ftp:x:55:
 users:x:100:
 network:x:101:
 nogroup:x:65534:
diff --git a/package/base-files/files/etc/passwd b/package/base-files/files/etc/passwd
index 1d06a80361..b4d53fa319 100644
--- a/package/base-files/files/etc/passwd
+++ b/package/base-files/files/etc/passwd
@@ -1,5 +1,4 @@
 root:x:0:0:root:/root:/bin/ash
 daemon:*:1:1:daemon:/var:/bin/false
-ftp:*:55:55:ftp:/home/ftp:/bin/false
 network:*:101:101:network:/var:/bin/false
 nobody:*:65534:65534:nobody:/var:/bin/false
diff --git a/package/base-files/files/etc/shadow b/package/base-files/files/etc/shadow
index 39bdb9c90a..e28ccbe6f8 100644
--- a/package/base-files/files/etc/shadow
+++ b/package/base-files/files/etc/shadow
@@ -1,5 +1,4 @@
 root:::0:99999:7:::
 daemon:*:0:0:99999:7:::
-ftp:*:0:0:99999:7:::
 network:*:0:0:99999:7:::
 nobody:*:0:0:99999:7:::




More information about the lede-commits mailing list