hi guys!
i am not subscribed to the list, so please cc me.
i have _hlfs_ installd with sudo, apache 2-0-54, php 5.0.4, and chrootssh-
patch.
i try to get useradd working, but it isnt that easy like i thought in the
first place.
my php-scriptstep for creating a new user is:
shell_exec("/usr/bin/sudo /usr/sbin/useradd -d /srv/chroot/./
home/".strtolower($_POST[name])." -g sftpuser -s /bin/bash -p ".md5
(strip_tags($_POST[pwd]))." ".strtolower($_POST[name]))
this even works and creates a new user, like i expected.
the problem is now, that the password isnt accepted, so the user cant
login.
in etc/shadow then stands the md5sum of password.
but in shadow there is another encryption than md5 needed... (yes i have
md5 passwords enabled, in that how the hlfs book says).
has anybody any idea how to let this work? what kind of encryption do i
need to get the useradd command woking as expected?
thx for any information and input!
yours
stephan
--
5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail
+++ GMX - die erste Adresse für Mail, Message, More +++
--
http://linuxfromscratch.org/mailman/listinfo/lfs-chat
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page