From: Rommel R. T. <rom...@na...> - 2017-12-05 22:45:45
|
<div dir='auto'><div dir="auto"> Hello;</div><div dir="auto">I have problem with this plugin, it do not change the password.</div><div dir="auto">First when I run it from the command line I found a possible error and I make a little workaround. The mistake was this:</div><div dir="auto"><br></div><div dir="auto">[root@gtmem plugins]# ../plugins/change_passwd/chpasswd 'rommel' 'rty.fgh6' 'qaz*wsx5' 2>&1</div><div dir="auto">-bash: ../plugins/change_passwd/chpasswd: /lib/ld-linux.so.2: bad ELF interpreter: No existe el fichero o el directorio</div><div dir="auto"><br></div><div dir="auto">The PC have a 64 bit filesystem, so the path /lib/ld-linux.so.2 do not exist, to solve this problem I make a symbolic link bettwen /lib64/ld-linux.so.2 and /lib but the error now is different, now is (Accesing to a shared library that is corrupt):</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">[root@gtmem plugins]# ../plugins/change_passwd/chpasswd 'rommel' 'rty.fgh6' 'qaz*wsx5' 2>&1</div><div dir="auto">-bash: ../plugins/change_passwd/chpasswd: Accediendo a una biblioteca compartida que está corrompida</div><div dir="auto"><br></div><div dir="auto">Could you please help me to find a solution? Thank a lot.</div><div dir="auto"><br></div><div dir="auto">This is some of datas that you asking for:</div><div dir="auto"><br></div><div dir="auto">[root@gtmem change_passwd]# cat version</div><div dir="auto">Change Passwd</div><div dir="auto">4.0</div><div dir="auto"><br></div><div dir="auto">[root@gtmem plugins]# uname --all</div><div dir="auto">Linux gtmem.gtm.onat.gob.cu 4.4.83-1-pve #1 SMP PVE 4.4.83-96 (Tue, 19 Sep 2017 10:30:12 +0200) x86_64 x86_64 x86_64 GNU/Linux</div><div dir="auto"><br></div><div dir="auto">[root@gtmem plugins]# cat /etc/centos-release</div><div dir="auto">CentOS Linux release 7.4.1708 (Core) </div><div dir="auto"><br></div><div dir="auto">[root@gtmem change_passwd]# httpd -v</div><div dir="auto">Server version: Apache/2.4.6 (CentOS)</div><div dir="auto">Server built: Aug 23 2017 15:47:21</div><div dir="auto"><br></div><div dir="auto">[root@gtmem plugins]# egrep "^[Uu][Ss][Ee][Rr]" /etc/httpd/conf/httpd.conf | sed 's/^[^ ][^ ]* \([^ ][^ ]*\).*/\1/;q'</div><div dir="auto">apache</div><div dir="auto"><br></div><div dir="auto">[root@gtmem plugins]# egrep "^[Gg][Rr][Oo][Uu][Pp]" /etc/httpd/conf/httpd.conf | sed 's/^[^ ][^ ]* \([^ ][^ ]*\).*/\1/;q'</div><div dir="auto">apache</div><div dir="auto"><br></div><div dir="auto">[root@gtmem plugins]# php --version</div><div dir="auto">PHP 5.4.16 (cli) (built: Nov 6 2016 00:29:02) </div><div dir="auto">Copyright (c) 1997-2013 The PHP Group</div><div dir="auto">Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies</div><div dir="auto"> </div><div dir="auto"> php is configured with the stantard configuration, except for the change that squirrelmail sugest: </div><div dir="auto">short_open_tag = On</div><div dir="auto"><br></div><div dir="auto">[root@gtmem /]# cd /usr/share/squirrelmail/plugins/change_passwd</div><div dir="auto">[root@gtmem change_passwd]# ls -alF</div><div dir="auto">total 116</div><div dir="auto">drwxr-xr-x 3 root root 4096 nov 13 15:08 ./</div><div dir="auto">drwxr-xr-x 21 root root 4096 nov 27 12:04 ../</div><div dir="auto">-rwsr-x--- 1 root apache 17917 abr 25 2004 chpasswd*</div><div dir="auto">-rw-r--r-- 1 root root 7094 abr 25 2004 chpasswd.c</div><div dir="auto">-rw-r--r-- 1 root root 1528 nov 13 15:08 config.php</div><div dir="auto">-rw-r--r-- 1 root root 1528 abr 23 2004 config.php.sample</div><div dir="auto">-rw-r--r-- 1 root root 15802 abr 22 2004 COPYING</div><div dir="auto">-rw-r--r-- 1 root root 610 abr 26 2004 exec_test.php</div><div dir="auto">-rw-r--r-- 1 root root 1285 abr 25 2004 functions.php</div><div dir="auto">-rwxr--r-- 1 root root 114 abr 23 2004 getpot*</div><div dir="auto">-rw-r--r-- 1 root root 486 abr 9 2003 index.php</div><div dir="auto">-rw-r--r-- 1 root root 2120 abr 23 2004 INSTALL</div><div dir="auto">drwxr-xr-x 3 root root 4096 abr 25 2004 locale/</div><div dir="auto">-rw-r--r-- 1 root root 10064 abr 26 2004 options.php</div><div dir="auto">-rw-r--r-- 1 root root 8771 abr 26 2004 README</div><div dir="auto">-rw-r--r-- 1 root root 788 abr 22 2004 setup.php</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">[root@gtmem plugins]# cat change_passwd/config.php</div><div dir="auto"><?php </div><div dir="auto"><br></div><div dir="auto">global $confirmPass, $oldPass, $seeOutput, $pathToChpasswd, </div><div dir="auto"> $pathToPw, $debug, $minimumPasswordLength;</div><div dir="auto"><br></div><div dir="auto">$minimumPasswordLength = 8;</div><div dir="auto"><br></div><div dir="auto">$confirmNewPass = 1;</div><div dir="auto"><br></div><div dir="auto">$confirmOldPass = 1;</div><div dir="auto"><br></div><div dir="auto">$overridePathToChpasswd = '';</div><div dir="auto"><br></div><div dir="auto">$pathToPw = '';</div><div dir="auto"><br></div><div dir="auto">$seeOutput = 1;</div><div dir="auto"><br></div><div dir="auto">$debug = 1;</div><div dir="auto"><br></div><div dir="auto">?></div><div dir="auto"><br></div><div data-smartmail="gmail_signature"><br>Rommel Rodriguez Toirac<br>rom...@na...</div></div> |
From: Ted H. <te...@io...> - 2017-12-05 23:57:32
|
On Tue, 5 Dec 2017, Rommel Rodriguez Toirac wrote: > Hello; > I have problem with this plugin, it do not change the password. > First when I run it from the command line I found a possible error and I make a little workaround. The mistake was this: > > [root@gtmem plugins]# ../plugins/change_passwd/chpasswd 'rommel' 'rty.fgh6' 'qaz*wsx5' 2>&1 > -bash: ../plugins/change_passwd/chpasswd: /lib/ld-linux.so.2: bad ELF interpreter: No existe el fichero o el directorio > > The PC have a 64 bit filesystem, so the path /lib/ld-linux.so.2 do not exist, to solve this problem I make a symbolic link bettwen > /lib64/ld-linux.so.2 and /lib but the error now is different, now is (Accesing to a shared library that is corrupt): > > > [root@gtmem plugins]# ../plugins/change_passwd/chpasswd 'rommel' 'rty.fgh6' 'qaz*wsx5' 2>&1 > -bash: ../plugins/change_passwd/chpasswd: Accediendo a una biblioteca compartida que est? corrompida > > Could you please help me to find a solution? Thank a lot. > > This is some of datas that you asking for: > > [root@gtmem change_passwd]# cat version > Change Passwd > 4.0 > > [root@gtmem plugins]# uname --all > Linux gtmem.gtm.onat.gob.cu 4.4.83-1-pve #1 SMP PVE 4.4.83-96 (Tue, 19 Sep 2017 10:30:12 +0200) x86_64 x86_64 x86_64 GNU/Linux > > [root@gtmem plugins]# cat /etc/centos-release > CentOS Linux release 7.4.1708 (Core) > > [root@gtmem change_passwd]# httpd -v > Server version: Apache/2.4.6 (CentOS) > Server built: Aug 23 2017 15:47:21 > > [root@gtmem plugins]# egrep "^[Uu][Ss][Ee][Rr]" /etc/httpd/conf/httpd.conf | sed 's/^[^ ][^ ]* \([^ ][^ ]*\).*/\1/;q' > apache > > [root@gtmem plugins]# egrep "^[Gg][Rr][Oo][Uu][Pp]" /etc/httpd/conf/httpd.conf | sed 's/^[^ ][^ ]* \([^ ][^ ]*\).*/\1/;q' > apache > > [root@gtmem plugins]# php --version > PHP 5.4.16 (cli) (built: Nov 6 2016 00:29:02) > Copyright (c) 1997-2013 The PHP Group > Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies > > php is configured with the stantard configuration, except for the change that squirrelmail sugest: > short_open_tag = On > > [root@gtmem /]# cd /usr/share/squirrelmail/plugins/change_passwd > [root@gtmem change_passwd]# ls -alF > total 116 > drwxr-xr-x 3 root root 4096 nov 13 15:08 ./ > drwxr-xr-x 21 root root 4096 nov 27 12:04 ../ > -rwsr-x--- 1 root apache 17917 abr 25 2004 chpasswd* > -rw-r--r-- 1 root root 7094 abr 25 2004 chpasswd.c > -rw-r--r-- 1 root root 1528 nov 13 15:08 config.php > -rw-r--r-- 1 root root 1528 abr 23 2004 config.php.sample > -rw-r--r-- 1 root root 15802 abr 22 2004 COPYING > -rw-r--r-- 1 root root 610 abr 26 2004 exec_test.php > -rw-r--r-- 1 root root 1285 abr 25 2004 functions.php > -rwxr--r-- 1 root root 114 abr 23 2004 getpot* > -rw-r--r-- 1 root root 486 abr 9 2003 index.php > -rw-r--r-- 1 root root 2120 abr 23 2004 INSTALL > drwxr-xr-x 3 root root 4096 abr 25 2004 locale/ > -rw-r--r-- 1 root root 10064 abr 26 2004 options.php > -rw-r--r-- 1 root root 8771 abr 26 2004 README > -rw-r--r-- 1 root root 788 abr 22 2004 setup.php > > > > [root@gtmem plugins]# cat change_passwd/config.php > <?php > > global $confirmPass, $oldPass, $seeOutput, $pathToChpasswd, > $pathToPw, $debug, $minimumPasswordLength; > > $minimumPasswordLength = 8; > > $confirmNewPass = 1; > > $confirmOldPass = 1; > > $overridePathToChpasswd = ''; > > $pathToPw = ''; > > $seeOutput = 1; > > $debug = 1; > > ?> > > > Rommel Rodriguez Toirac > rom...@na... > > Rommel, This doesn't answer your question directly but I've had good luck with the change password plugin here. http://www.squirrelmail.org/plugin_view.php?id=21 It requires a poppassd daemon running on the server but it's been very stable for us. Ted Hatfield |
From: Rommel R. T. <rom...@na...> - 2017-12-06 17:18:41
|
<div dir='auto'><div><div data-smartmail="gmail_signature"><br></div><div class="gmail_extra"><div class="gmail_quote">El dic. 5, 2017 6:15 PM, Ted Hatfield <te...@io...> escribió:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">On Tue, 5 Dec 2017, Rommel Rodriguez Toirac wrote: <br> <br> > Hello; <br> > I have problem with this plugin, it do not change the password. <br> > First when I run it from the command line I found a possible error and I make a little workaround. The mistake was this: <br> > <br> > [root@gtmem plugins]# ../plugins/change_passwd/chpasswd 'rommel' 'rty.fgh6' 'qaz*wsx5' 2>&1 <br> > -bash: ../plugins/change_passwd/chpasswd: /lib/ld-linux.so.2: bad ELF interpreter: No existe el fichero o el directorio <br> > <br> > The PC have a 64 bit filesystem, so the path /lib/ld-linux.so.2 do not exist, to solve this problem I make a symbolic link bettwen <br> > /lib64/ld-linux.so.2 and /lib but the error now is different, now is (Accesing to a shared library that is corrupt): <br> > <br> > <br> > [root@gtmem plugins]# ../plugins/change_passwd/chpasswd 'rommel' 'rty.fgh6' 'qaz*wsx5' 2>&1 <br> > -bash: ../plugins/change_passwd/chpasswd: Accediendo a una biblioteca compartida que est? corrompida <br> > <br> > Could you please help me to find a solution? Thank a lot. <br> > <br> > This is some of datas that you asking for: <br> > <br> > [root@gtmem change_passwd]# cat version <br> > Change Passwd <br> > 4.0 <br> > <br> > [root@gtmem plugins]# uname --all <br> > Linux gtmem.gtm.onat.gob.cu 4.4.83-1-pve #1 SMP PVE 4.4.83-96 (Tue, 19 Sep 2017 10:30:12 +0200) x86_64 x86_64 x86_64 GNU/Linux <br> > <br> > [root@gtmem plugins]# cat /etc/centos-release <br> > CentOS Linux release 7.4.1708 (Core) <br> > <br> > [root@gtmem change_passwd]# httpd -v <br> > Server version: Apache/2.4.6 (CentOS) <br> > Server built: Aug 23 2017 15:47:21 <br> > <br> > [root@gtmem plugins]# egrep "^[Uu][Ss][Ee][Rr]" /etc/httpd/conf/httpd.conf | sed 's/^[^ ][^ ]* \([^ ][^ ]*\).*/\1/;q' <br> > apache <br> > <br> > [root@gtmem plugins]# egrep "^[Gg][Rr][Oo][Uu][Pp]" /etc/httpd/conf/httpd.conf | sed 's/^[^ ][^ ]* \([^ ][^ ]*\).*/\1/;q' <br> > apache <br> > <br> > [root@gtmem plugins]# php --version <br> > PHP 5.4.16 (cli) (built: Nov 6 2016 00:29:02) <br> > Copyright (c) 1997-2013 The PHP Group <br> > Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies <br> > <br> > php is configured with the stantard configuration, except for the change that squirrelmail sugest: <br> > short_open_tag = On <br> > <br> > [root@gtmem /]# cd /usr/share/squirrelmail/plugins/change_passwd <br> > [root@gtmem change_passwd]# ls -alF <br> > total 116 <br> > drwxr-xr-x 3 root root 4096 nov 13 15:08 ./ <br> > drwxr-xr-x 21 root root 4096 nov 27 12:04 ../ <br> > -rwsr-x--- 1 root apache 17917 abr 25 2004 chpasswd* <br> > -rw-r--r-- 1 root root 7094 abr 25 2004 chpasswd.c <br> > -rw-r--r-- 1 root root 1528 nov 13 15:08 config.php <br> > -rw-r--r-- 1 root root 1528 abr 23 2004 config.php.sample <br> > -rw-r--r-- 1 root root 15802 abr 22 2004 COPYING <br> > -rw-r--r-- 1 root root 610 abr 26 2004 exec_test.php <br> > -rw-r--r-- 1 root root 1285 abr 25 2004 functions.php <br> > -rwxr--r-- 1 root root 114 abr 23 2004 getpot* <br> > -rw-r--r-- 1 root root 486 abr 9 2003 index.php <br> > -rw-r--r-- 1 root root 2120 abr 23 2004 INSTALL <br> > drwxr-xr-x 3 root root 4096 abr 25 2004 locale/ <br> > -rw-r--r-- 1 root root 10064 abr 26 2004 options.php <br> > -rw-r--r-- 1 root root 8771 abr 26 2004 README <br> > -rw-r--r-- 1 root root 788 abr 22 2004 setup.php <br> > <br> > <br> > <br> > [root@gtmem plugins]# cat change_passwd/config.php <br> > <?php <br> > <br> > global $confirmPass, $oldPass, $seeOutput, $pathToChpasswd, <br> > $pathToPw, $debug, $minimumPasswordLength; <br> > <br> > $minimumPasswordLength = 8; <br> > <br> > $confirmNewPass = 1; <br> > <br> > $confirmOldPass = 1; <br> > <br> > $overridePathToChpasswd = ''; <br> > <br> > $pathToPw = ''; <br> > <br> > $seeOutput = 1; <br> > <br> > $debug = 1; <br> > <br> > ?> <br> > <br> > <br> > Rommel Rodriguez Toirac <br> > rom...@na... <br> > <br> > <br> <br> Rommel, <br> <br> This doesn't answer your question directly but I've had good luck with the <br> change password plugin here. <br> <br> http://www.squirrelmail.org/plugin_view.php?id=21 <br> <br> It requires a poppassd daemon running on the server but it's been very <br> stable for us. <br> <br> <br> Ted Hatfield<br></p></blockquote></div></div></div><div dir="auto"><br></div><div dir="auto"> Hello Ted;</div><div dir="auto">thanks for answer me.</div><div dir="auto"> Your users and password are local (/etc/passwd and /etc/shadow)?</div><div dir="auto"> If no solutions with password change plugin that I asking for, I will try with these.</div><div dir="auto"> poppassd server, where I can find it for CentOS 7?</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><span style="font-family: sans-serif;">Rommel Rodriguez Toirac</span><br style="font-family: sans-serif;"><span style="font-family: sans-serif;">rom...@na...</span><br></div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr"><br></p> </blockquote></div><br></div></div></div> |
From: Ted H. <te...@io...> - 2017-12-06 19:20:30
|
On Wed, 6 Dec 2017, Rommel Rodriguez Toirac wrote: > > El dic. 5, 2017 6:15 PM, Ted Hatfield <te...@io...> escribi?: > > On Tue, 5 Dec 2017, Rommel Rodriguez Toirac wrote: > > > Hello; > > I have problem with this plugin, it do not change the password. > > First when I run it from the command line I found a possible error and I make a little workaround. The mistake was this: > > > > [root@gtmem plugins]# ../plugins/change_passwd/chpasswd 'rommel' 'rty.fgh6' 'qaz*wsx5' 2>&1 > > -bash: ../plugins/change_passwd/chpasswd: /lib/ld-linux.so.2: bad ELF interpreter: No existe el fichero o el directorio > > > > The PC have a 64 bit filesystem, so the path /lib/ld-linux.so.2 do not exist, to solve this problem I make a symbolic > link bettwen > > /lib64/ld-linux.so.2 and /lib but the error now is different, now is (Accesing to a shared library that is corrupt): > > > > > > [root@gtmem plugins]# ../plugins/change_passwd/chpasswd 'rommel' 'rty.fgh6' 'qaz*wsx5' 2>&1 > > -bash: ../plugins/change_passwd/chpasswd: Accediendo a una biblioteca compartida que est? corrompida > > > > Could you please help me to find a solution? Thank a lot. > > > > This is some of datas that you asking for: > > > > [root@gtmem change_passwd]# cat version > > Change Passwd > > 4.0 > > > > [root@gtmem plugins]# uname --all > > Linux gtmem.gtm.onat.gob.cu 4.4.83-1-pve #1 SMP PVE 4.4.83-96 (Tue, 19 Sep 2017 10:30:12 +0200) x86_64 x86_64 x86_64 > GNU/Linux > > > > [root@gtmem plugins]# cat /etc/centos-release > > CentOS Linux release 7.4.1708 (Core) > > > > [root@gtmem change_passwd]# httpd -v > > Server version: Apache/2.4.6 (CentOS) > > Server built: Aug 23 2017 15:47:21 > > > > [root@gtmem plugins]# egrep "^[Uu][Ss][Ee][Rr]" /etc/httpd/conf/httpd.conf | sed 's/^[^ ][^ ]* \([^ ][^ ]*\).*/\1/;q' > > apache > > > > [root@gtmem plugins]# egrep "^[Gg][Rr][Oo][Uu][Pp]" /etc/httpd/conf/httpd.conf | sed 's/^[^ ][^ ]* \([^ ][^ > ]*\).*/\1/;q' > > apache > > > > [root@gtmem plugins]# php --version > > PHP 5.4.16 (cli) (built: Nov 6 2016 00:29:02) > > Copyright (c) 1997-2013 The PHP Group > > Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies > > > > php is configured with the stantard configuration, except for the change that squirrelmail sugest: > > short_open_tag = On > > > > [root@gtmem /]# cd /usr/share/squirrelmail/plugins/change_passwd > > [root@gtmem change_passwd]# ls -alF > > total 116 > > drwxr-xr-x 3 root root 4096 nov 13 15:08 ./ > > drwxr-xr-x 21 root root 4096 nov 27 12:04 ../ > > -rwsr-x--- 1 root apache 17917 abr 25 2004 chpasswd* > > -rw-r--r-- 1 root root 7094 abr 25 2004 chpasswd.c > > -rw-r--r-- 1 root root 1528 nov 13 15:08 config.php > > -rw-r--r-- 1 root root 1528 abr 23 2004 config.php.sample > > -rw-r--r-- 1 root root 15802 abr 22 2004 COPYING > > -rw-r--r-- 1 root root 610 abr 26 2004 exec_test.php > > -rw-r--r-- 1 root root 1285 abr 25 2004 functions.php > > -rwxr--r-- 1 root root 114 abr 23 2004 getpot* > > -rw-r--r-- 1 root root 486 abr 9 2003 index.php > > -rw-r--r-- 1 root root 2120 abr 23 2004 INSTALL > > drwxr-xr-x 3 root root 4096 abr 25 2004 locale/ > > -rw-r--r-- 1 root root 10064 abr 26 2004 options.php > > -rw-r--r-- 1 root root 8771 abr 26 2004 README > > -rw-r--r-- 1 root root 788 abr 22 2004 setup.php > > > > > > > > [root@gtmem plugins]# cat change_passwd/config.php > > <?php > > > > global $confirmPass, $oldPass, $seeOutput, $pathToChpasswd, > > $pathToPw, $debug, $minimumPasswordLength; > > > > $minimumPasswordLength = 8; > > > > $confirmNewPass = 1; > > > > $confirmOldPass = 1; > > > > $overridePathToChpasswd = ''; > > > > $pathToPw = ''; > > > > $seeOutput = 1; > > > > $debug = 1; > > > > ?> > > > > > > Rommel Rodriguez Toirac > > rom...@na... > > > > > > Rommel, > > This doesn't answer your question directly but I've had good luck with the > change password plugin here. > > http://www.squirrelmail.org/plugin_view.php?id=21 > > It requires a poppassd daemon running on the server but it's been very > stable for us. > > > Ted Hatfield > > > Hello Ted; > thanks for answer me. > Your users and password are local (/etc/passwd and /etc/shadow)? > If no solutions with password change plugin that I asking for, I will try with these. > poppassd server, where I can find it for CentOS 7? > > > Rommel Rodriguez Toirac > rom...@na... > > > > > Rommel, I don't use centos 7, I use freebsd, but I think this will work. https://github.com/kravietz/poppassd-ceti A how-to is here. https://www.rootlinks.net/2017/03/21/install-poppassd-on-centos-7/ If you can get poppassd to work manually you should be able to get the plugin to work. Ted Hatfield |
From: Rommel R. T. <rom...@na...> - 2017-12-08 23:09:40
|
<div dir='auto'><br><div class="gmail_extra" dir="auto"><br><div class="gmail_quote">El dic. 6, 2017 2:20 PM, Ted Hatfield <te...@io...> escribió:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">On Wed, 6 Dec 2017, Rommel Rodriguez Toirac wrote: <br> <br> > <br> > El dic. 5, 2017 6:15 PM, Ted Hatfield <te...@io...> escribi?: <br> > <br> > On Tue, 5 Dec 2017, Rommel Rodriguez Toirac wrote: <br> > <br> > > Hello; <br> > > I have problem with this plugin, it do not change the password. <br> > > First when I run it from the command line I found a possible error and I make a little workaround. The mistake was this: <br> > > <br> > > [root@gtmem plugins]# ../plugins/change_passwd/chpasswd 'rommel' 'rty.fgh6' 'qaz*wsx5' 2>&1 <br> > > -bash: ../plugins/change_passwd/chpasswd: /lib/ld-linux.so.2: bad ELF interpreter: No existe el fichero o el directorio <br> > > <br> > > The PC have a 64 bit filesystem, so the path /lib/ld-linux.so.2 do not exist, to solve this problem I make a symbolic <br> > link bettwen <br> > > /lib64/ld-linux.so.2 and /lib but the error now is different, now is (Accesing to a shared library that is corrupt): <br> > > <br> > > <br> > > [root@gtmem plugins]# ../plugins/change_passwd/chpasswd 'rommel' 'rty.fgh6' 'qaz*wsx5' 2>&1 <br> > > -bash: ../plugins/change_passwd/chpasswd: Accediendo a una biblioteca compartida que est? corrompida <br> > > <br> > > Could you please help me to find a solution? Thank a lot. <br> > > <br> > > This is some of datas that you asking for: <br> > > <br> > > [root@gtmem change_passwd]# cat version <br> > > Change Passwd <br> > > 4.0 <br> > > <br> > > [root@gtmem plugins]# uname --all <br> > > Linux gtmem.gtm.onat.gob.cu 4.4.83-1-pve #1 SMP PVE 4.4.83-96 (Tue, 19 Sep 2017 10:30:12 +0200) x86_64 x86_64 x86_64 <br> > GNU/Linux <br> > > <br> > > [root@gtmem plugins]# cat /etc/centos-release <br> > > CentOS Linux release 7.4.1708 (Core) <br> > > <br> > > [root@gtmem change_passwd]# httpd -v <br> > > Server version: Apache/2.4.6 (CentOS) <br> > > Server built: Aug 23 2017 15:47:21 <br> > > <br> > > [root@gtmem plugins]# egrep "^[Uu][Ss][Ee][Rr]" /etc/httpd/conf/httpd.conf | sed 's/^[^ ][^ ]* \([^ ][^ ]*\).*/\1/;q' <br> > > apache <br> > > <br> > > [root@gtmem plugins]# egrep "^[Gg][Rr][Oo][Uu][Pp]" /etc/httpd/conf/httpd.conf | sed 's/^[^ ][^ ]* \([^ ][^ <br> > ]*\).*/\1/;q' <br> > > apache <br> > > <br> > > [root@gtmem plugins]# php --version <br> > > PHP 5.4.16 (cli) (built: Nov 6 2016 00:29:02) <br> > > Copyright (c) 1997-2013 The PHP Group <br> > > Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies <br> > > <br> > > php is configured with the stantard configuration, except for the change that squirrelmail sugest: <br> > > short_open_tag = On <br> > > <br> > > [root@gtmem /]# cd /usr/share/squirrelmail/plugins/change_passwd <br> > > [root@gtmem change_passwd]# ls -alF <br> > > total 116 <br> > > drwxr-xr-x 3 root root 4096 nov 13 15:08 ./ <br> > > drwxr-xr-x 21 root root 4096 nov 27 12:04 ../ <br> > > -rwsr-x--- 1 root apache 17917 abr 25 2004 chpasswd* <br> > > -rw-r--r-- 1 root root 7094 abr 25 2004 chpasswd.c <br> > > -rw-r--r-- 1 root root 1528 nov 13 15:08 config.php <br> > > -rw-r--r-- 1 root root 1528 abr 23 2004 config.php.sample <br> > > -rw-r--r-- 1 root root 15802 abr 22 2004 COPYING <br> > > -rw-r--r-- 1 root root 610 abr 26 2004 exec_test.php <br> > > -rw-r--r-- 1 root root 1285 abr 25 2004 functions.php <br> > > -rwxr--r-- 1 root root 114 abr 23 2004 getpot* <br> > > -rw-r--r-- 1 root root 486 abr 9 2003 index.php <br> > > -rw-r--r-- 1 root root 2120 abr 23 2004 INSTALL <br> > > drwxr-xr-x 3 root root 4096 abr 25 2004 locale/ <br> > > -rw-r--r-- 1 root root 10064 abr 26 2004 options.php <br> > > -rw-r--r-- 1 root root 8771 abr 26 2004 README <br> > > -rw-r--r-- 1 root root 788 abr 22 2004 setup.php <br> > > <br> > > <br> > > <br> > > [root@gtmem plugins]# cat change_passwd/config.php <br> > > <?php <br> > > <br> > > global $confirmPass, $oldPass, $seeOutput, $pathToChpasswd, <br> > > $pathToPw, $debug, $minimumPasswordLength; <br> > > <br> > > $minimumPasswordLength = 8; <br> > > <br> > > $confirmNewPass = 1; <br> > > <br> > > $confirmOldPass = 1; <br> > > <br> > > $overridePathToChpasswd = ''; <br> > > <br> > > $pathToPw = ''; <br> > > <br> > > $seeOutput = 1; <br> > > <br> > > $debug = 1; <br> > > <br> > > ?> <br> > > <br> > > <br> > > Rommel Rodriguez Toirac <br> > > rom...@na... <br> > > <br> > > <br> > <br> > Rommel, <br> > <br> > This doesn't answer your question directly but I've had good luck with the <br> > change password plugin here. <br> > <br> > http://www.squirrelmail.org/plugin_view.php?id=21 <br> > <br> > It requires a poppassd daemon running on the server but it's been very <br> > stable for us. <br> > <br> > <br> > Ted Hatfield <br> > <br> > <br> > Hello Ted; <br> > thanks for answer me. <br> > Your users and password are local (/etc/passwd and /etc/shadow)? <br> > If no solutions with password change plugin that I asking for, I will try with these. <br> > poppassd server, where I can find it for CentOS 7? <br> > <br> > <br> > Rommel Rodriguez Toirac <br> > rom...@na... <br> > <br> > <br> > <br> > <br> > <br> <br> Rommel, <br> <br> I don't use centos 7, I use freebsd, but I think this will work. <br> <br> https://github.com/kravietz/poppassd-ceti <br> <br> A how-to is here. <br> <br> https://www.rootlinks.net/2017/03/21/install-poppassd-on-centos-7/ <br> <br> If you can get poppassd to work manually you should be able to get the <br> plugin to work. <br> <br> <br> Ted Hatfield<br> ------------------------------------------------------<br></p></blockquote></div></div><div dir="auto"><br></div><div dir="auto">My propouse is to use the passwd-change plugin. I still hope someone read the messages and sugest me how to fix my problem.</div><div dir="auto"> Next week I test with the plugin that use <span style="font-family: sans-serif;">poppassd daemon.</span></div><div dir="auto"><span style="font-family: sans-serif;"> Thank.</span></div><div class="gmail_extra" dir="auto"><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr"></p></blockquote></div></div></div> |
From: Ted H. <te...@io...> - 2017-12-10 17:40:37
|
On Fri, 8 Dec 2017, Rommel Rodriguez Toirac wrote: > > > El dic. 6, 2017 2:20 PM, Ted Hatfield <te...@io...> escribi?: > > On Wed, 6 Dec 2017, Rommel Rodriguez Toirac wrote: > > > > > El dic. 5, 2017 6:15 PM, Ted Hatfield <te...@io...> escribi?: > > > > On Tue, 5 Dec 2017, Rommel Rodriguez Toirac wrote: > > > > > Hello; > > > I have problem with this plugin, it do not change the password. > > > First when I run it from the command line I found a possible error and I make a little workaround. > The mistake was this: > > > > > > [root@gtmem plugins]# ../plugins/change_passwd/chpasswd 'rommel' 'rty.fgh6' 'qaz*wsx5' 2>&1 > > > -bash: ../plugins/change_passwd/chpasswd: /lib/ld-linux.so.2: bad ELF interpreter: No existe el > fichero o el directorio > > > > > > The PC have a 64 bit filesystem, so the path /lib/ld-linux.so.2 do not exist, to solve this problem > I make a symbolic > > link bettwen > > > /lib64/ld-linux.so.2 and /lib but the error now is different, now is (Accesing to a shared library > that is corrupt): > > > > > > > > > [root@gtmem plugins]# ../plugins/change_passwd/chpasswd 'rommel' 'rty.fgh6' 'qaz*wsx5' 2>&1 > > > -bash: ../plugins/change_passwd/chpasswd: Accediendo a una biblioteca compartida que est? corrompida > > > > > > Could you please help me to find a solution? Thank a lot. > > > > > > This is some of datas that you asking for: > > > > > > [root@gtmem change_passwd]# cat version > > > Change Passwd > > > 4.0 > > > > > > [root@gtmem plugins]# uname --all > > > Linux gtmem.gtm.onat.gob.cu 4.4.83-1-pve #1 SMP PVE 4.4.83-96 (Tue, 19 Sep 2017 10:30:12 +0200) > x86_64 x86_64 x86_64 > > GNU/Linux > > > > > > [root@gtmem plugins]# cat /etc/centos-release > > > CentOS Linux release 7.4.1708 (Core) > > > > > > [root@gtmem change_passwd]# httpd -v > > > Server version: Apache/2.4.6 (CentOS) > > > Server built: Aug 23 2017 15:47:21 > > > > > > [root@gtmem plugins]# egrep "^[Uu][Ss][Ee][Rr]" /etc/httpd/conf/httpd.conf | sed 's/^[^ ][^ ]* \([^ > ][^ ]*\).*/\1/;q' > > > apache > > > > > > [root@gtmem plugins]# egrep "^[Gg][Rr][Oo][Uu][Pp]" /etc/httpd/conf/httpd.conf | sed 's/^[^ ][^ ]* > \([^ ][^ > > ]*\).*/\1/;q' > > > apache > > > > > > [root@gtmem plugins]# php --version > > > PHP 5.4.16 (cli) (built: Nov 6 2016 00:29:02) > > > Copyright (c) 1997-2013 The PHP Group > > > Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies > > > > > > php is configured with the stantard configuration, except for the change that squirrelmail sugest: > > > short_open_tag = On > > > > > > [root@gtmem /]# cd /usr/share/squirrelmail/plugins/change_passwd > > > [root@gtmem change_passwd]# ls -alF > > > total 116 > > > drwxr-xr-x 3 root root 4096 nov 13 15:08 ./ > > > drwxr-xr-x 21 root root 4096 nov 27 12:04 ../ > > > -rwsr-x--- 1 root apache 17917 abr 25 2004 chpasswd* > > > -rw-r--r-- 1 root root 7094 abr 25 2004 chpasswd.c > > > -rw-r--r-- 1 root root 1528 nov 13 15:08 config.php > > > -rw-r--r-- 1 root root 1528 abr 23 2004 config.php.sample > > > -rw-r--r-- 1 root root 15802 abr 22 2004 COPYING > > > -rw-r--r-- 1 root root 610 abr 26 2004 exec_test.php > > > -rw-r--r-- 1 root root 1285 abr 25 2004 functions.php > > > -rwxr--r-- 1 root root 114 abr 23 2004 getpot* > > > -rw-r--r-- 1 root root 486 abr 9 2003 index.php > > > -rw-r--r-- 1 root root 2120 abr 23 2004 INSTALL > > > drwxr-xr-x 3 root root 4096 abr 25 2004 locale/ > > > -rw-r--r-- 1 root root 10064 abr 26 2004 options.php > > > -rw-r--r-- 1 root root 8771 abr 26 2004 README > > > -rw-r--r-- 1 root root 788 abr 22 2004 setup.php > > > > > > > > > > > > [root@gtmem plugins]# cat change_passwd/config.php > > > <?php > > > > > > global $confirmPass, $oldPass, $seeOutput, $pathToChpasswd, > > > $pathToPw, $debug, $minimumPasswordLength; > > > > > > $minimumPasswordLength = 8; > > > > > > $confirmNewPass = 1; > > > > > > $confirmOldPass = 1; > > > > > > $overridePathToChpasswd = ''; > > > > > > $pathToPw = ''; > > > > > > $seeOutput = 1; > > > > > > $debug = 1; > > > > > > ?> > > > > > > > > > Rommel Rodriguez Toirac > > > rom...@na... > > > > > > > > > > Rommel, > > > > This doesn't answer your question directly but I've had good luck with the > > change password plugin here. > > > > http://www.squirrelmail.org/plugin_view.php?id=21 > > > > It requires a poppassd daemon running on the server but it's been very > > stable for us. > > > > > > Ted Hatfield > > > > > > Hello Ted; > > thanks for answer me. > > Your users and password are local (/etc/passwd and /etc/shadow)? > > If no solutions with password change plugin that I asking for, I will try with these. > > poppassd server, where I can find it for CentOS 7? > > > > > > Rommel Rodriguez Toirac > > rom...@na... > > > > > > > > > > > > Rommel, > > I don't use centos 7, I use freebsd, but I think this will work. > > https://github.com/kravietz/poppassd-ceti > > A how-to is here. > > https://www.rootlinks.net/2017/03/21/install-poppassd-on-centos-7/ > > If you can get poppassd to work manually you should be able to get the > plugin to work. > > > Ted Hatfield > ------------------------------------------------------ > > > My propouse is to use the passwd-change plugin. I still hope someone read the messages and sugest me how to fix my > problem. > Next week I test with the plugin that use poppassd daemon. > Thank. > > > 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 |
From: Rommel R. T. <rom...@na...> - 2017-12-18 16:34:49
|
<div dir='auto'><br><div class="gmail_extra" dir="auto"><br><div class="gmail_quote">El dic. 10, 2017 12:40 PM, Ted Hatfield <te...@io...> escribió:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr"> <br> <br> On Fri, 8 Dec 2017, Rommel Rodriguez Toirac wrote: <br> <br> > <br> > <br> > El dic. 6, 2017 2:20 PM, Ted Hatfield <te...@io...> escribi?: <br> > <br> > On Wed, 6 Dec 2017, Rommel Rodriguez Toirac wrote: <br> > <br> > > <br> > > El dic. 5, 2017 6:15 PM, Ted Hatfield <te...@io...> escribi?: <br> > > <br> > > On Tue, 5 Dec 2017, Rommel Rodriguez Toirac wrote: <br> > > <br> > > > Hello; <br> > > > I have problem with this plugin, it do not change the password. <br> > > > First when I run it from the command line I found a possible error and I make a little workaround. <br> > The mistake was this: <br> > > > <br> > > > [root@gtmem plugins]# ../plugins/change_passwd/chpasswd 'rommel' 'rty.fgh6' 'qaz*wsx5' 2>&1 <br> > > > -bash: ../plugins/change_passwd/chpasswd: /lib/ld-linux.so.2: bad ELF interpreter: No existe el <br> > fichero o el directorio <br> > > > <br> > > > The PC have a 64 bit filesystem, so the path /lib/ld-linux.so.2 do not exist, to solve this problem <br> > I make a symbolic <br> > > link bettwen <br> > > > /lib64/ld-linux.so.2 and /lib but the error now is different, now is (Accesing to a shared library <br> > that is corrupt): <br> > > > <br> > > > <br> > > > [root@gtmem plugins]# ../plugins/change_passwd/chpasswd 'rommel' 'rty.fgh6' 'qaz*wsx5' 2>&1 <br> > > > -bash: ../plugins/change_passwd/chpasswd: Accediendo a una biblioteca compartida que est? corrompida <br> > > > <br> > > > Could you please help me to find a solution? Thank a lot. <br> > > > <br> > > > This is some of datas that you asking for: <br> > > > <br> > > > [root@gtmem change_passwd]# cat version <br> > > > Change Passwd <br> > > > 4.0 <br> > > > <br> > > > [root@gtmem plugins]# uname --all <br> > > > Linux gtmem.gtm.onat.gob.cu 4.4.83-1-pve #1 SMP PVE 4.4.83-96 (Tue, 19 Sep 2017 10:30:12 +0200) <br> > x86_64 x86_64 x86_64 <br> > > GNU/Linux <br> > > > <br> > > > [root@gtmem plugins]# cat /etc/centos-release <br> > > > CentOS Linux release 7.4.1708 (Core) <br> > > > <br> > > > [root@gtmem change_passwd]# httpd -v <br> > > > Server version: Apache/2.4.6 (CentOS) <br> > > > Server built: Aug 23 2017 15:47:21 <br> > > > <br> > > > [root@gtmem plugins]# egrep "^[Uu][Ss][Ee][Rr]" /etc/httpd/conf/httpd.conf | sed 's/^[^ ][^ ]* \([^ <br> > ][^ ]*\).*/\1/;q' <br> > > > apache <br> > > > <br> > > > [root@gtmem plugins]# egrep "^[Gg][Rr][Oo][Uu][Pp]" /etc/httpd/conf/httpd.conf | sed 's/^[^ ][^ ]* <br> > \([^ ][^ <br> > > ]*\).*/\1/;q' <br> > > > apache <br> > > > <br> > > > [root@gtmem plugins]# php --version <br> > > > PHP 5.4.16 (cli) (built: Nov 6 2016 00:29:02) <br> > > > Copyright (c) 1997-2013 The PHP Group <br> > > > Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies <br> > > > <br> > > > php is configured with the stantard configuration, except for the change that squirrelmail sugest: <br> > > > short_open_tag = On <br> > > > <br> > > > [root@gtmem /]# cd /usr/share/squirrelmail/plugins/change_passwd <br> > > > [root@gtmem change_passwd]# ls -alF <br> > > > total 116 <br> > > > drwxr-xr-x 3 root root 4096 nov 13 15:08 ./ <br> > > > drwxr-xr-x 21 root root 4096 nov 27 12:04 ../ <br> > > > -rwsr-x--- 1 root apache 17917 abr 25 2004 chpasswd* <br> > > > -rw-r--r-- 1 root root 7094 abr 25 2004 chpasswd.c <br> > > > -rw-r--r-- 1 root root 1528 nov 13 15:08 config.php <br> > > > -rw-r--r-- 1 root root 1528 abr 23 2004 config.php.sample <br> > > > -rw-r--r-- 1 root root 15802 abr 22 2004 COPYING <br> > > > -rw-r--r-- 1 root root 610 abr 26 2004 exec_test.php <br> > > > -rw-r--r-- 1 root root 1285 abr 25 2004 functions.php <br> > > > -rwxr--r-- 1 root root 114 abr 23 2004 getpot* <br> > > > -rw-r--r-- 1 root root 486 abr 9 2003 index.php <br> > > > -rw-r--r-- 1 root root 2120 abr 23 2004 INSTALL <br> > > > drwxr-xr-x 3 root root 4096 abr 25 2004 locale/ <br> > > > -rw-r--r-- 1 root root 10064 abr 26 2004 options.php <br> > > > -rw-r--r-- 1 root root 8771 abr 26 2004 README <br> > > > -rw-r--r-- 1 root root 788 abr 22 2004 setup.php <br> > > > <br> > > > <br> > > > <br> > > > [root@gtmem plugins]# cat change_passwd/config.php <br> > > > <?php <br> > > > <br> > > > global $confirmPass, $oldPass, $seeOutput, $pathToChpasswd, <br> > > > $pathToPw, $debug, $minimumPasswordLength; <br> > > > <br> > > > $minimumPasswordLength = 8; <br> > > > <br> > > > $confirmNewPass = 1; <br> > > > <br> > > > $confirmOldPass = 1; <br> > > > <br> > > > $overridePathToChpasswd = ''; <br> > > > <br> > > > $pathToPw = ''; <br> > > > <br> > > > $seeOutput = 1; <br> > > > <br> > > > $debug = 1; <br> > > > <br> > > > ?> <br> > > > <br> > > > <br> > > > Rommel Rodriguez Toirac <br> > > > rom...@na... <br> > > > <br> > > > <br> > > <br> > > Rommel, <br> > > <br> > > This doesn't answer your question directly but I've had good luck with the <br> > > change password plugin here. <br> > > <br> > > http://www.squirrelmail.org/plugin_view.php?id=21 <br> > > <br> > > It requires a poppassd daemon running on the server but it's been very <br> > > stable for us. <br> > > <br> > > <br> > > Ted Hatfield <br> > > <br> > > <br> > > Hello Ted; <br> > > thanks for answer me. <br> > > Your users and password are local (/etc/passwd and /etc/shadow)? <br> > > If no solutions with password change plugin that I asking for, I will try with these. <br> > > poppassd server, where I can find it for CentOS 7? <br> > > <br> > > <br> > > Rommel Rodriguez Toirac <br> > > rom...@na... <br> > > <br> > > <br> > > <br> > > <br> > > <br> > <br> > Rommel, <br> > <br> > I don't use centos 7, I use freebsd, but I think this will work. <br> > <br> > https://github.com/kravietz/poppassd-ceti <br> > <br> > A how-to is here. <br> > <br> > https://www.rootlinks.net/2017/03/21/install-poppassd-on-centos-7/ <br> > <br> > If you can get poppassd to work manually you should be able to get the <br> > plugin to work. <br> > <br> > <br> > Ted Hatfield <br> > ------------------------------------------------------ <br> > <br> > <br> > My propouse is to use the passwd-change plugin. I still hope someone read the messages and sugest me how to fix my <br> > problem. <br> > Next week I test with the plugin that use poppassd daemon. <br> > Thank. <br> > <br> > <br> > <br> <br> Rommel, <br> <br> It appears that you will need to compile the chpasswd.c source code <br> included with the plugin. If the date on the webpage is accurate the <br> chpasswd executable included with the plugin was last compiled in Apr 23, <br> 2004. <br> <br> The error message you are getting <br> <br> ./chpasswd: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory <br> <br> tells us that the software was compiled on a machine that doesn't match <br> yours for library compability. <br> <br> The problem of course is that centos 7 doesn't include gcc by default. <br> You will need to install the build/development tools for centos 7 before <br> you can attempt to compile the chpasswd.c program. <br> <br> A quick google search came up with this page. <br> <br> https://www.digitalocean.com/community/tutorials/how-to-compile-and-install-packages-from-source-using-make-on-a-vps <br> <br> Or <br> <br> https://www.cyberciti.biz/faq/centos-rhel-7-redhat-linux-install-gcc-compiler-development-tools/ <br> <br> I hope this helps. <br> <br> If nothing else you can ask the maintainer/developer Paul Lesniewski to <br> see if he can include a newer compiled binary in the package specifically <br> for centos 7. <br> <br> Ted Hatfield<br> -----------------------------------------------------------------------------<br></p></blockquote></div></div><div dir="auto"><br></div><div dir="auto"> Thank for answer me Ted. I will study how to compile the chpasswd.c and let you know how it was.</div><div dir="auto"> I wrote already to <span style="font-family: sans-serif;">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.</span></div><div dir="auto"><br style="font-family: sans-serif; font-size: 13.696px;"><font face="sans-serif"><span style="font-size: 13.696px;">Rommel Rodriguez Toirac</span></font></div><div dir="auto"><span style="font-family: sans-serif;"><br></span></div><div class="gmail_extra" dir="auto"><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr"></p></blockquote></div></div></div> |
From: Rommel R. T. <rom...@na...> - 2017-12-19 15:34:35
|
<div dir='auto'><div data-smartmail="gmail_signature" dir="auto"><br></div><div class="gmail_extra" dir="auto"><div class="gmail_quote">El dic. 18, 2017 11:16 AM, Rommel Rodriguez Toirac <rom...@na...> escribió:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><br><div dir="auto"><br><div class="elided-text">El dic. 10, 2017 12:40 PM, Ted Hatfield <te...@io...> escribió:<br><blockquote style="margin:0 0 0 0.8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr"> <br> <br> On Fri, 8 Dec 2017, Rommel Rodriguez Toirac wrote: <br> <br> > <br> > <br> > El dic. 6, 2017 2:20 PM, Ted Hatfield <te...@io...> escribi?: <br> > <br> > On Wed, 6 Dec 2017, Rommel Rodriguez Toirac wrote: <br> > <br> > > <br> > > El dic. 5, 2017 6:15 PM, Ted Hatfield <te...@io...> escribi?: <br> > > <br> > > On Tue, 5 Dec 2017, Rommel Rodriguez Toirac wrote: <br> > > <br> > > > Hello; <br> > > > I have problem with this plugin, it do not change the password. <br> > > > First when I run it from the command line I found a possible error and I make a little workaround. <br> > The mistake was this: <br> > > > <br> > > > [root@gtmem plugins]# ../plugins/change_passwd/chpasswd 'rommel' 'rty.fgh6' 'qaz*wsx5' 2>&1 <br> > > > -bash: ../plugins/change_passwd/chpasswd: /lib/ld-linux.so.2: bad ELF interpreter: No existe el <br> > fichero o el directorio <br> > > > <br> > > > The PC have a 64 bit filesystem, so the path /lib/ld-linux.so.2 do not exist, to solve this problem <br> > I make a symbolic <br> > > link bettwen <br> > > > /lib64/ld-linux.so.2 and /lib but the error now is different, now is (Accesing to a shared library <br> > that is corrupt): <br> > > > <br> > > > <br> > > > [root@gtmem plugins]# ../plugins/change_passwd/chpasswd 'rommel' 'rty.fgh6' 'qaz*wsx5' 2>&1 <br> > > > -bash: ../plugins/change_passwd/chpasswd: Accediendo a una biblioteca compartida que est? corrompida <br> > > > <br> > > > Could you please help me to find a solution? Thank a lot. <br> > > > <br> > > > This is some of datas that you asking for: <br> > > > <br> > > > [root@gtmem change_passwd]# cat version <br> > > > Change Passwd <br> > > > 4.0 <br> > > > <br> > > > [root@gtmem plugins]# uname --all <br> > > > Linux gtmem.gtm.onat.gob.cu 4.4.83-1-pve #1 SMP PVE 4.4.83-96 (Tue, 19 Sep 2017 10:30:12 +0200) <br> > x86_64 x86_64 x86_64 <br> > > GNU/Linux <br> > > > <br> > > > [root@gtmem plugins]# cat /etc/centos-release <br> > > > CentOS Linux release 7.4.1708 (Core) <br> > > > <br> > > > [root@gtmem change_passwd]# httpd -v <br> > > > Server version: Apache/2.4.6 (CentOS) <br> > > > Server built: Aug 23 2017 15:47:21 <br> > > > <br> > > > [root@gtmem plugins]# egrep "^[Uu][Ss][Ee][Rr]" /etc/httpd/conf/httpd.conf | sed 's/^[^ ][^ ]* \([^ <br> > ][^ ]*\).*/\1/;q' <br> > > > apache <br> > > > <br> > > > [root@gtmem plugins]# egrep "^[Gg][Rr][Oo][Uu][Pp]" /etc/httpd/conf/httpd.conf | sed 's/^[^ ][^ ]* <br> > \([^ ][^ <br> > > ]*\).*/\1/;q' <br> > > > apache <br> > > > <br> > > > [root@gtmem plugins]# php --version <br> > > > PHP 5.4.16 (cli) (built: Nov 6 2016 00:29:02) <br> > > > Copyright (c) 1997-2013 The PHP Group <br> > > > Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies <br> > > > <br> > > > php is configured with the stantard configuration, except for the change that squirrelmail sugest: <br> > > > short_open_tag = On <br> > > > <br> > > > [root@gtmem /]# cd /usr/share/squirrelmail/plugins/change_passwd <br> > > > [root@gtmem change_passwd]# ls -alF <br> > > > total 116 <br> > > > drwxr-xr-x 3 root root 4096 nov 13 15:08 ./ <br> > > > drwxr-xr-x 21 root root 4096 nov 27 12:04 ../ <br> > > > -rwsr-x--- 1 root apache 17917 abr 25 2004 chpasswd* <br> > > > -rw-r--r-- 1 root root 7094 abr 25 2004 chpasswd.c <br> > > > -rw-r--r-- 1 root root 1528 nov 13 15:08 config.php <br> > > > -rw-r--r-- 1 root root 1528 abr 23 2004 config.php.sample <br> > > > -rw-r--r-- 1 root root 15802 abr 22 2004 COPYING <br> > > > -rw-r--r-- 1 root root 610 abr 26 2004 exec_test.php <br> > > > -rw-r--r-- 1 root root 1285 abr 25 2004 functions.php <br> > > > -rwxr--r-- 1 root root 114 abr 23 2004 getpot* <br> > > > -rw-r--r-- 1 root root 486 abr 9 2003 index.php <br> > > > -rw-r--r-- 1 root root 2120 abr 23 2004 INSTALL <br> > > > drwxr-xr-x 3 root root 4096 abr 25 2004 locale/ <br> > > > -rw-r--r-- 1 root root 10064 abr 26 2004 options.php <br> > > > -rw-r--r-- 1 root root 8771 abr 26 2004 README <br> > > > -rw-r--r-- 1 root root 788 abr 22 2004 setup.php <br> > > > <br> > > > <br> > > > <br> > > > [root@gtmem plugins]# cat change_passwd/config.php <br> > > > <?php <br> > > > <br> > > > global $confirmPass, $oldPass, $seeOutput, $pathToChpasswd, <br> > > > $pathToPw, $debug, $minimumPasswordLength; <br> > > > <br> > > > $minimumPasswordLength = 8; <br> > > > <br> > > > $confirmNewPass = 1; <br> > > > <br> > > > $confirmOldPass = 1; <br> > > > <br> > > > $overridePathToChpasswd = ''; <br> > > > <br> > > > $pathToPw = ''; <br> > > > <br> > > > $seeOutput = 1; <br> > > > <br> > > > $debug = 1; <br> > > > <br> > > > ?> <br> > > > <br> > > > <br> > > > Rommel Rodriguez Toirac <br> > > > rom...@na... <br> > > > <br> > > > <br> > > <br> > > Rommel, <br> > > <br> > > This doesn't answer your question directly but I've had good luck with the <br> > > change password plugin here. <br> > > <br> > > http://www.squirrelmail.org/plugin_view.php?id=21 <br> > > <br> > > It requires a poppassd daemon running on the server but it's been very <br> > > stable for us. <br> > > <br> > > <br> > > Ted Hatfield <br> > > <br> > > <br> > > Hello Ted; <br> > > thanks for answer me. <br> > > Your users and password are local (/etc/passwd and /etc/shadow)? <br> > > If no solutions with password change plugin that I asking for, I will try with these. <br> > > poppassd server, where I can find it for CentOS 7? <br> > > <br> > > <br> > > Rommel Rodriguez Toirac <br> > > rom...@na... <br> > > <br> > > <br> > > <br> > > <br> > > <br> > <br> > Rommel, <br> > <br> > I don't use centos 7, I use freebsd, but I think this will work. <br> > <br> > https://github.com/kravietz/poppassd-ceti <br> > <br> > A how-to is here. <br> > <br> > https://www.rootlinks.net/2017/03/21/install-poppassd-on-centos-7/ <br> > <br> > If you can get poppassd to work manually you should be able to get the <br> > plugin to work. <br> > <br> > <br> > Ted Hatfield <br> > ------------------------------------------------------ <br> > <br> > <br> > My propouse is to use the passwd-change plugin. I still hope someone read the messages and sugest me how to fix my <br> > problem. <br> > Next week I test with the plugin that use poppassd daemon. <br> > Thank. <br> > <br> > <br> > <br> <br> Rommel, <br> <br> It appears that you will need to compile the chpasswd.c source code <br> included with the plugin. If the date on the webpage is accurate the <br> chpasswd executable included with the plugin was last compiled in Apr 23, <br> 2004. <br> <br> The error message you are getting <br> <br> ./chpasswd: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory <br> <br> tells us that the software was compiled on a machine that doesn't match <br> yours for library compability. <br> <br> The problem of course is that centos 7 doesn't include gcc by default. <br> You will need to install the build/development tools for centos 7 before <br> you can attempt to compile the chpasswd.c program. <br> <br> A quick google search came up with this page. <br> <br> https://www.digitalocean.com/community/tutorials/how-to-compile-and-install-packages-from-source-using-make-on-a-vps <br> <br> Or <br> <br> https://www.cyberciti.biz/faq/centos-rhel-7-redhat-linux-install-gcc-compiler-development-tools/ <br> <br> I hope this helps. <br> <br> If nothing else you can ask the maintainer/developer Paul Lesniewski to <br> see if he can include a newer compiled binary in the package specifically <br> for centos 7. <br> <br> Ted Hatfield<br> -----------------------------------------------------------------------------<br></p></blockquote></div></div><div dir="auto"><br></div><div dir="auto"> Thank for answer me Ted. I will study how to compile the chpasswd.c and let you know how it was.</div><div dir="auto"> I wrote already to <span style="font-family:sans-serif">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.</span></div><div dir="auto"><br style="font-family:sans-serif;font-size:13.696px"><font face="sans-serif"><span style="font-size:13.696px">Rommel Rodriguez Toirac</span></font></div><div dir="auto"><span style="font-family:sans-serif"><br></span></div><div dir="auto"><div class="elided-text"><blockquote style="margin:0 0 0 0.8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr"></p></blockquote></div></div></div></blockquote></div> Hello;</div><div class="gmail_extra" dir="auto">in the file chpasswd.c are some example of how to compile it.</div><div class="gmail_extra" dir="auto">I use the two examples an get a file generate of name chpasswd.</div><div class="gmail_extra" dir="auto"> When make the test it do not work correctly at all. Allways said: "Current password is incorrect"</div><div class="gmail_extra" dir="auto">and do not chage the password.</div><div class="gmail_extra" dir="auto"> 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.</div><div class="gmail_extra" dir="auto"> So, now I have another problem, the plugin always say "Current password is incorrect"</div><div class="gmail_extra" dir="auto"><br></div><div class="gmail_extra" dir="auto">Rommel Rodriguez Toirac</div><div class="gmail_extra" dir="auto"><br></div></div> |
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 |
From: Rommel R. T. <rom...@na...> - 2017-12-20 16:57:39
|
<div dir='auto'><div><br><div><br><div class="elided-text">El dic. 19, 2017 7:30 PM, Ted Hatfield <te...@io...> escribió:<br><blockquote style="margin:0 0 0 0.8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">On Tue, 19 Dec 2017, Rommel Rodriguez Toirac wrote: <br> > Rommel, <br> > <br> > It appears that you will need to compile the chpasswd.c source code <br> > included with the plugin. If the date on the webpage is accurate the <br> > chpasswd executable included with the plugin was last compiled in Apr 23, <br> > 2004. <br> > <br> > The error message you are getting <br> > <br> > ./chpasswd: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory <br> > <br> > tells us that the software was compiled on a machine that doesn't match <br> > yours for library compability. <br> > <br> > The problem of course is that centos 7 doesn't include gcc by default. <br> > You will need to install the build/development tools for centos 7 before <br> > you can attempt to compile the chpasswd.c program. <br> > <br> > A quick google search came up with this page. <br> > <br> > https://www.digitalocean.com/community/tutorials/how-to-compile-and-install-packages-from-source-using-make-on-a-vps <br> > <br> > Or <br> > <br> > https://www.cyberciti.biz/faq/centos-rhel-7-redhat-linux-install-gcc-compiler-development-tools/ <br> > <br> > I hope this helps. <br> > <br> > If nothing else you can ask the maintainer/developer Paul Lesniewski to <br> > see if he can include a newer compiled binary in the package specifically <br> > for centos 7. <br> > <br> > Ted Hatfield <br> > ----------------------------------------------------------------------------- <br> > <br> > <br> > Thank for answer me Ted. I will study how to compile the chpasswd.c and let you know how it was. <br> > 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 <br> > is a new version of the plugin but not released yet. <br> > <br> > Rommel Rodriguez Toirac <br> > <br> > Hello; <br> > in the file chpasswd.c are some example of how to compile it. <br> > I use the two examples an get a file generate of name chpasswd. <br> > When make the test it do not work correctly at all. Allways said: "Current password is incorrect" <br> > and do not chage the password. <br> > But, the error of the "Access to a shared library corrupted" is not showed, it detect when the user is incorrect, when the new <br> > password do not match in the 'Confirm' step. <br> > So, now I have another problem, the plugin always say "Current password is incorrect" <br> > <br> > Rommel Rodriguez Toirac <br> > <br> > <br> > <br> <br> Rommel, <br> <br> In an effort to assist you I have built a centos7 virtual machine. <br> <br> I installed the development tools and compiled the chpasswd.c software. <br> Although it compiled I couldn't get it to work properly. <br> <br> However I did follow the instructions here <br> <br> https://www.rootlinks.net/2017/03/21/install-poppassd-on-centos-7/ <br> <br> and I was able to get a popassd daemon running on centos 7 with very <br> little effort. <br> <br> I would again recommend running the change password plugin here. <br> <br> http://www.squirrelmail.org/plugin_view.php?id=21 <br> <br> I hope this helps. <br> <br> Ted Hatfield<br> ------------------------------------------------------------------------------ <br></p></blockquote></div></div></div><div dir="auto"> Thank Ted.</div><div dir="auto">I will work around the pluging with popassd. </div><div dir="auto"> I write you if I have any problem with it.</div><div dir="auto"> Thank.</div><div dir="auto"><div><div class="elided-text"><blockquote style="margin:0 0 0 0.8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Rommel Rodriguez Toirac</p></blockquote></div></div></div></div> |