passwd from stdin
Denys Vlasenko
vda.linux at googlemail.com
Wed Nov 26 22:47:34 UTC 2008
On Wednesday 26 November 2008 14:34, Matthew Hiles wrote:
> Perhaps I am missing something, but why can't you recompile busybox and
> just replace the busybox binary? The only thing you would have to do
> then is add a symlink to chpasswd.
>
> Sorry if I missed the requirement, I realize how frustrating it can be
> when people keep giving you solutions that are not for you problem.
There is another way.
Configure busybox to build ONLY chpasswd applet. Build it.
rename resulting busybox as "chpasswd". Use it as standalone
application. No need to replace existing busybox binary,
just add this one.
Newer versions of busybox even detect "only one applet" case
and simplify some things. For example, you no longer
have to rename (or symlink) the binary to "chpasswd".
Since it has only one applet, that applet's function
will be invoked regardless of binary's name.
--
vda
More information about the busybox
mailing list