Hi,
I recompiled busybox and replaced in tinycore.gz.
I used the following build scripts.
# Build busybox.
tar -xjvf busybox-1.17.0-3.tbz2
cd busybox-1.17.0/
cp ../busybox-1.17.0-3.config .config
make oldconfig
make
mkdir -p /tmp/busybox-build
make CONFIG_PREFIX=/tmp/busybox-build install
# Create the package nerdbox-busybox.
tar -C /tmp/busybox-build -czvf /root/nerdbox-busybox.tar.gz .
Is changed the config file, here is the patch:
--- busybox-1.17.0-3.config 2010-07-10 08:48:00.000000000 +0200
+++ busybox-1.17.0-3.config-nerdbox 2010-10-30 02:31:01.000000000 +0200
@@ -1,7 +1,7 @@
#
# Automatically generated make config: don't edit
# Busybox version: 1.17.0
-# Sat Jul 10 11:41:42 2010
+# Sat Oct 30 00:18:08 2010
#
CONFIG_HAVE_DOT_CONFIG=y
@@ -448,7 +448,7 @@
CONFIG_DELUSER=y
CONFIG_GETTY=y
CONFIG_LOGIN=y
-# CONFIG_PAM is not set
+CONFIG_PAM=y
CONFIG_LOGIN_SCRIPTS=y
CONFIG_FEATURE_NOLOGIN=y
CONFIG_FEATURE_SECURETTY=y
Now busybox has pam support.
After i added the file to tinycore.gz i also added the Linux-PAM file to tinycore.gz.
And run chroot tinyconf ldconfig
And then recreated the tinyconf.gz.
cd tinycore
find | sudo cpio -o -H newc | gzip -2 > ../boot/tinycore.gz
After that i added the following line to /etc/pam.d/other and system-auth.
session required pam_mkhomedir.so
Now my tiny core linux has pam support and wil create home directory for a user is it does not exists.
perry