aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-06-05 17:48:41 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-06-05 17:48:41 +0000
commit63c50a17aee3547ebd2ee687396af61e3f5922a1 (patch)
treec7f8538235f094c926712f93f72a0fd76bfd0f0e /package/base-files
parent4ea1d476a1bff514dafcd8758bdcad0ee3a0d7c4 (diff)
downloadupstream-63c50a17aee3547ebd2ee687396af61e3f5922a1.tar.gz
upstream-63c50a17aee3547ebd2ee687396af61e3f5922a1.tar.bz2
upstream-63c50a17aee3547ebd2ee687396af61e3f5922a1.zip
[package] base-files: ship a static initial shadow db instead of creating it from passwd with sed, this fixes registering of users at compile time
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32064 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files')
-rw-r--r--package/base-files/Makefile4
-rw-r--r--package/base-files/files/etc/shadow5
2 files changed, 5 insertions, 4 deletions
diff --git a/package/base-files/Makefile b/package/base-files/Makefile
index a74d83cac6..68c8e0233b 100644
--- a/package/base-files/Makefile
+++ b/package/base-files/Makefile
@@ -443,10 +443,6 @@ define Package/base-files/install
$(CP) $(PLATFORM_SUBDIR)/$(PROFILE)/base-files/* $(1)/; \
fi \
)
-# Form valid /etc/shadow entries, by copying the user:pw pairs
-# from /etc/passwd, and adding on pw change data
- cut -d ':' -f 1-2 $(1)/etc/passwd > $(1)/etc/shadow; \
- $(SED) 's/$$$$/:0:0:99999:7:::/' $(1)/etc/shadow
$(VERSION_SED) \
$(1)/etc/banner \
diff --git a/package/base-files/files/etc/shadow b/package/base-files/files/etc/shadow
new file mode 100644
index 0000000000..e9898901b2
--- /dev/null
+++ b/package/base-files/files/etc/shadow
@@ -0,0 +1,5 @@
+root:x:0:0:99999:7:::
+daemon:*:0:0:99999:7:::
+ftp:*:0:0:99999:7:::
+network:*:0:0:99999:7:::
+nobody:*:0:0:99999:7:::