mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-28 12:21:44 +02:00
[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
This commit is contained in:
parent
52deeb5d9c
commit
9f591dd66a
@ -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 \
|
||||
|
5
package/base-files/files/etc/shadow
Normal file
5
package/base-files/files/etc/shadow
Normal file
@ -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:::
|
Loading…
Reference in New Issue
Block a user