aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/lib
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-06-05 17:40:32 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-06-05 17:40:32 +0000
commita044a43d066a3b1c1f718a09aca661e66d47b892 (patch)
tree6bbd3641a41bc2a1b5986feb03c760abc303aa96 /package/base-files/files/lib
parent9ae901445be2f33658142e401556818edbafaaf7 (diff)
downloadupstream-a044a43d066a3b1c1f718a09aca661e66d47b892.tar.gz
upstream-a044a43d066a3b1c1f718a09aca661e66d47b892.tar.bz2
upstream-a044a43d066a3b1c1f718a09aca661e66d47b892.zip
base-files: make user_add() populate the shadow db as well
SVN-Revision: 32063
Diffstat (limited to 'package/base-files/files/lib')
-rwxr-xr-xpackage/base-files/files/lib/functions.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/base-files/files/lib/functions.sh b/package/base-files/files/lib/functions.sh
index 02048eab12..b3a3885f2d 100755
--- a/package/base-files/files/lib/functions.sh
+++ b/package/base-files/files/lib/functions.sh
@@ -302,6 +302,7 @@ user_add() {
[ -f "${IPKG_INSTROOT}/etc/passwd" ] || return 1
[ -n "$IPKG_INSTROOT" ] || lock /var/lock/passwd
echo "${name}:x:${uid}:${gid}:${desc}:${home}:${shell}" >> ${IPKG_INSTROOT}/etc/passwd
+ echo "${name}:x:0:0:99999:7:::" >> ${IPKG_INSTROOT}/etc/shadow
rc=$?
[ -n "$IPKG_INSTROOT" ] || lock -u /var/lock/passwd
return $rc