From: Ted H. <te...@io...> - 2017-12-20 00:30:37
|
On Tue, 19 Dec 2017, Rommel Rodriguez Toirac wrote: > Rommel, > > It appears that you will need to compile the chpasswd.c source code > included with the plugin. If the date on the webpage is accurate the > chpasswd executable included with the plugin was last compiled in Apr 23, > 2004. > > The error message you are getting > > ./chpasswd: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory > > tells us that the software was compiled on a machine that doesn't match > yours for library compability. > > The problem of course is that centos 7 doesn't include gcc by default. > You will need to install the build/development tools for centos 7 before > you can attempt to compile the chpasswd.c program. > > A quick google search came up with this page. > > https://www.digitalocean.com/community/tutorials/how-to-compile-and-install-packages-from-source-using-make-on-a-vps > > Or > > https://www.cyberciti.biz/faq/centos-rhel-7-redhat-linux-install-gcc-compiler-development-tools/ > > I hope this helps. > > If nothing else you can ask the maintainer/developer Paul Lesniewski to > see if he can include a newer compiled binary in the package specifically > for centos 7. > > Ted Hatfield > ----------------------------------------------------------------------------- > > > Thank for answer me Ted. I will study how to compile the chpasswd.c and let you know how it was. > I wrote already to Paul Lesniewski and he let me know that the best help is with the mailing list. Also tell me that there > is a new version of the plugin but not released yet. > > Rommel Rodriguez Toirac > > Hello; > in the file chpasswd.c are some example of how to compile it. > I use the two examples an get a file generate of name chpasswd. > When make the test it do not work correctly at all. Allways said: "Current password is incorrect" > and do not chage the password. > But, the error of the "Access to a shared library corrupted" is not showed, it detect when the user is incorrect, when the new > password do not match in the 'Confirm' step. > So, now I have another problem, the plugin always say "Current password is incorrect" > > Rommel Rodriguez Toirac > > > Rommel, In an effort to assist you I have built a centos7 virtual machine. I installed the development tools and compiled the chpasswd.c software. Although it compiled I couldn't get it to work properly. However I did follow the instructions here https://www.rootlinks.net/2017/03/21/install-poppassd-on-centos-7/ and I was able to get a popassd daemon running on centos 7 with very little effort. I would again recommend running the change password plugin here. http://www.squirrelmail.org/plugin_view.php?id=21 I hope this helps. Ted Hatfield |