[SLUG] seg fault in passwd, can I 'rpm passwd' ?
I have a problem with 'passwd' crashing with 'Segmentation fault': # passwd voytek Changing password for user voytek. New password: (data fseek failed): Invalid argument Segmentation fault BUT, if I use 'webmin', I can alter passwords OK. does anyone know: does 'webmin' uses a different tool that 'passwd' to alter passwords ? is there any reason why I shouldn't try re-installing 'passwd' with rpm ?? [EMAIL PROTECTED] root]# rpm -qf /usr/bin/passwd passwd-0.67-1 (I've just 'solved' a weired problem with Postfix by re-installing Postfix, hence, I'm thinking I should do same with 'passwd') Voytek Eymont -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] seg fault in passwd, can I 'rpm passwd' ?
Voytek Eymont wrote: > I have a problem with 'passwd' crashing with 'Segmentation fault': > > # passwd voytek > Changing password for user voytek. > New password: > (data fseek failed): Invalid argument > Segmentation fault > > BUT, if I use 'webmin', I can alter passwords OK. prob as it edits the /etc/passwd file itself and does not call up the executable passwd program. If you are changing a passwd for normal user voytek then do that when logged in as that user and just type 'passwd' i.e. yoytek$ passwd see if it segfaults then. Mike UTS CRICOS Provider Code: 00099F DISCLAIMER This email message and any accompanying attachments may contain confidential information. If you are not the intended recipient, do not read, use, disseminate, distribute or copy this message or attachments. If you have received this message in error, please notify the sender immediately and delete this message. Any views expressed in this message are those of the individual sender, except where the sender expressly, and with authority, states them to be the views the University of Technology Sydney. Before opening any attachments, please check them for viruses and defects. -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] seg fault in passwd, can I 'rpm passwd' ?
This one time, at band camp, Voytek Eymont wrote: >does anyone know: does 'webmin' uses a different tool that 'passwd' to alter >passwords ? If you run authconfig from the command line, what does it tell you about the way your system is authenticating users? I doubt passwd is crashing, but it could be a pam module that's doing it. You may wish to look into /etc/pam.d/passwd for any interesting pam modules, too. -- [EMAIL PROTECTED] http://spacepants.org/jaq.gpg -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] seg fault in passwd, can I 'rpm passwd' ?
** Reply to note from Michael Lake <[EMAIL PROTECTED]> Wed, 10 Sep 2003 11:10:31 +1000 > If you are changing a passwd for normal user voytek then do that when > logged in as that user and just type 'passwd' > i.e. > yoytek$ passwd > > see if it segfaults then. Mike yes: # su voytek $ passwd Changing password for user voytek. Changing password for voytek (current) UNIX password: New password: (data fseek failed): Invalid argument Segmentation fault $ I've already removed and reinstalled 'passwd-0.67-1.i386.rpm' though it doesn't seem to have done that much for me... Voytek Eymont -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] seg fault in passwd, can I 'rpm passwd' ?
** Reply to note from Jamie Wilkinson <[EMAIL PROTECTED]> Wed, 10 Sep 2003 10:29:48 +1000 > If you run authconfig from the command line, what does it tell you about the > way your system is authenticating users? > > I doubt passwd is crashing, but it could be a pam module that's doing it. > > You may wish to look into /etc/pam.d/passwd for any interesting pam modules, > too. Jamie, authconfig --- User Information Configuration (no selections) Authentication Configuration [*] Use Shadow Passwords [*] Use MD5 Passwords --- # cat passwd #%PAM-1.0 auth required /lib/security/pam_stack.so service=system-auth accountrequired /lib/security/pam_stack.so service=system-auth password required /lib/security/pam_stack.so service=system-auth # ls -l /lib/security/pam_stack.so -rwxr-xr-x1 root root12471 Feb 7 2003 /lib/security/pam_stack. so how can I 'verify' the pam_stack.so ? Voytek Eymont -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] seg fault in passwd, can I 'rpm passwd' ?
** Reply to note from Voytek Eymont <[EMAIL PROTECTED]> Wed, 10 Sep 2003 11:29:25 > how can I 'verify' the pam_stack.so ? I've now also d/l 'pam-0.75-46.7.3.i386.rpm', then, deleted '/lib/security/pam_stack.so', then, extracted 'pam_stack.so' and copied to '/lib/security', still no go Voytek Eymont -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] seg fault in passwd, can I 'rpm passwd' ?
Voytek Eymont wrote: > ** Reply to note from Jamie Wilkinson <[EMAIL PROTECTED]> Wed, 10 Sep 2003 10:29:48 > +1000 >>If you run authconfig from the command line, what does it tell you about the >>way your system is authenticating users? >>I doubt passwd is crashing, but it could be a pam module that's doing it. >>You may wish to look into /etc/pam.d/passwd for any interesting pam modules, >>too. I wonder if it could be some library that passwd uses that is corrupt? running ldd /usr/sbin/passwd (or what ever is that path to passwd) would show what libs are being used by that and maybe reinstalling some would not hurt. Surely a pam config file error should not cause paswd to segfault but a lib that pam uses might cause it if its faulty. What was the alst thing that was upgraded or changed on your system? Mike UTS CRICOS Provider Code: 00099F DISCLAIMER This email message and any accompanying attachments may contain confidential information. If you are not the intended recipient, do not read, use, disseminate, distribute or copy this message or attachments. If you have received this message in error, please notify the sender immediately and delete this message. Any views expressed in this message are those of the individual sender, except where the sender expressly, and with authority, states them to be the views the University of Technology Sydney. Before opening any attachments, please check them for viruses and defects. -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] seg fault in passwd, can I 'rpm passwd' ?
** Reply to note from Michael Lake <[EMAIL PROTECTED]> Wed, 10 Sep 2003 11:50:01 +1000 > I wonder if it could be some library that passwd uses that is corrupt? > running ldd /usr/sbin/passwd # ldd /usr/bin/passwd libuser.so.1 => /usr/lib/libuser.so.1 (0x40023000) libcrypt.so.1 => /lib/libcrypt.so.1 (0x40036000) libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0x40063000) libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0x4009c000) libdl.so.2 => /lib/libdl.so.2 (0x400a) libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x400a3000) libpam.so.0 => /lib/libpam.so.0 (0x40108000) libpam_misc.so.0 => /lib/libpam_misc.so.0 (0x40111000) libpopt.so.0 => /usr/lib/libpopt.so.0 (0x40114000) libc.so.6 => /lib/i686/libc.so.6 (0x4200) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x4000) so far I've replaced /lib/security/pam_stack.so > (or what ever is that path to passwd) would show what libs are being > used by that and maybe reinstalling some would not hurt. Surely a pam > config file error should not cause paswd to segfault but a lib that pam > uses might cause it if its faulty. > > What was the alst thing that was upgraded or changed on your system? Postfix, BUT, the 'passwd' has been broken for a while now Voytek Eymont -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] seg fault in passwd, can I 'rpm passwd' ?
Voytek Eymont wrote: > ** Reply to note from Michael Lake <[EMAIL PROTECTED]> Wed, 10 Sep 2003 11:50:01 > +1000 >>I wonder if it could be some library that passwd uses that is corrupt? >>running ldd /usr/sbin/passwd > # ldd /usr/bin/passwd > libuser.so.1 => /usr/lib/libuser.so.1 (0x40023000) > libcrypt.so.1 => /lib/libcrypt.so.1 (0x40036000) > libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0x40063000) > libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0x4009c000) > libdl.so.2 => /lib/libdl.so.2 (0x400a) > libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x400a3000) > libpam.so.0 => /lib/libpam.so.0 (0x40108000) > libpam_misc.so.0 => /lib/libpam_misc.so.0 (0x40111000) > libpopt.so.0 => /usr/lib/libpopt.so.0 (0x40114000) > libc.so.6 => /lib/i686/libc.so.6 (0x4200) > /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x4000) > >>What was the alst thing that was upgraded or changed on your system? > Postfix, BUT, the 'passwd' has been broken for a while now so I looked up "passwd segmentation fault" on google and found - On Wed, 6 Aug 2003 20:57:48 Voytek Eymont <[EMAIL PROTECTED]> wrote: > I've created a new user, and, tried to assign him a password, but I get 'seg fault' Is this the same machine that has a corrupt crt1.o? Hope you have a good backup -- it sounds sick! Matt -- so what happened about crt1.o ? Looks like you have a few problems and a reinstall might be the best if this problem has been going on for a month. Mike UTS CRICOS Provider Code: 00099F DISCLAIMER This email message and any accompanying attachments may contain confidential information. If you are not the intended recipient, do not read, use, disseminate, distribute or copy this message or attachments. If you have received this message in error, please notify the sender immediately and delete this message. Any views expressed in this message are those of the individual sender, except where the sender expressly, and with authority, states them to be the views the University of Technology Sydney. Before opening any attachments, please check them for viruses and defects. -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] seg fault in passwd, can I 'rpm passwd' ?
** Reply to note from Michael Lake <[EMAIL PROTECTED]> Wed, 10 Sep 2003 12:33:52 +1000 > so what happened about crt1.o ? Looks like you have a few problems and a > reinstall might be the best if this problem has been going on for a month. Mike, I rpm removed and reinstalled gcc and all dependancies as identified by rpm, and, then, it 'just worked'. Voytek Eymont -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] seg fault in passwd, can I 'rpm passwd' ?
as root, strace passwd voytek, see how far it ges before segfaulting.. it won't work as a normal user as passwd is setuid.. Dave. in 90% of issues with crashage either strace or gdb can find things ... On Wed, 10 Sep 2003, Voytek Eymont wrote: > ** Reply to note from Michael Lake <[EMAIL PROTECTED]> Wed, 10 Sep 2003 12:33:52 > +1000 > > > > so what happened about crt1.o ? Looks like you have a few problems and a > > reinstall might be the best if this problem has been going on for a month. > > Mike, > > I rpm removed and reinstalled gcc and all dependancies as identified by rpm, > and, then, it 'just worked'. > > > > > Voytek Eymont > -- David Airlie, Software Engineer http://www.skynet.ie/~airlied / [EMAIL PROTECTED] pam_smb / Linux DECstation / Linux VAX / ILUG person -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] seg fault in passwd, can I 'rpm passwd' ?
>how can I 'verify' the pam_stack.so ? rpm -Vf /lib/security/pam_stack.so I think also check /etc/pam.d/system-auth -- [EMAIL PROTECTED] http://spacepants.org/jaq.gpg -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] seg fault in passwd, can I 'rpm passwd' ?
On Wed, 10 Sep 2003 11:21:34 Voytek Eymont <[EMAIL PROTECTED]> wrote: > > I've already removed and reinstalled 'passwd-0.67-1.i386.rpm' though it > doesn't seem to have done that much for me... It could be that /etc/shadow is out of sync compared to /etc/passwd. You can resync with 'pwconv'. But I'ds go with Mike's suggestion. If this is the same machine you've been having problems with in the past, you far better off getting to the real cause of the problem. Reinstall and/or run some hardware diagnostics on it. Regards, Matt -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] seg fault in passwd, can I 'rpm passwd' ?
** Reply to note from Vic <[EMAIL PROTECTED]> Wed, 10 Sep 2003 17:50:00 > as root, strace passwd voytek, see how far it ges before segfaulting.. > > it won't work as a normal user as passwd is setuid.. hmmm, I just tried with what the passwd tool called 'bad, too short' , AND, *it worked*. # passwd voytek Changing password for user voytek. New password: BAD PASSWORD: it is too short Retype new password: passwd: all authentication tokens updated successfully. # passwd voytek Changing password for user voytek. New password: (data fseek failed): Invalid argument Segmentation fault last 24 lines read(5, "", 4096) = 0 getuid32() = 0 open("/etc/passwd", O_RDONLY) = 6 fcntl64(6, F_GETFD) = 0 fcntl64(6, F_SETFD, FD_CLOEXEC) = 0 fstat64(6, {st_mode=S_IFREG|0644, st_size=4526, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40 021000 read(6, "root:x:0:0:root:/root:/bin/bash\n"..., 4096) = 4096 close(6)= 0 munmap(0x40021000, 4096)= 0 _llseek(4, 20480, [20480], SEEK_SET)= 0 read(4, "g\6\0\36h\6\0gh\6\0\255h\6\0\3i\6\0Ji\6\0\226i\6\0\362"..., 4096) = 409 6 fstat64(3, {st_mode=S_IFREG|0600, st_size=828083, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40 021000 _llseek(3, 18446744072216379392, 0xbfff8040, SEEK_SET) = -1 EINVAL (Invalid argu ment) write(2, "(data fseek failed): Invalid arg"..., 38(data fseek failed): Invalid a rgument ) = 38 --- SIGSEGV (Segmentation fault) --- +++ killed by SIGSEGV +++ [EMAIL PROTECTED] root]# Voytek Eymont -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] seg fault in passwd, can I 'rpm passwd' ?
Try this: #strace passwd >xx 2>&1 password password #more xx will advise what's happening and correct accordingly. > ** Reply to note from Vic <[EMAIL PROTECTED]> Wed, 10 Sep 2003 17:50:00 > > > > as root, strace passwd voytek, see how far it ges before segfaulting.. > > > > it won't work as a normal user as passwd is setuid.. > > hmmm, I just tried with what the passwd tool called 'bad, too short' , AND, *it worked*. > > > # passwd voytek > Changing password for user voytek. > New password: > BAD PASSWORD: it is too short > Retype new password: > passwd: all authentication tokens updated successfully. > > > # passwd voytek > Changing password for user voytek. > New password: > (data fseek failed): Invalid argument > Segmentation fault > > last 24 lines > > > read(5, "", 4096) = 0 > getuid32() = 0 > open("/etc/passwd", O_RDONLY) = 6 > fcntl64(6, F_GETFD) = 0 > fcntl64(6, F_SETFD, FD_CLOEXEC) = 0 > fstat64(6, {st_mode=S_IFREG|0644, st_size=4526, ...}) = 0 > mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40 > 021000 > read(6, "root:x:0:0:root:/root:/bin/bash\n"..., 4096) = 4096 > close(6)= 0 > munmap(0x40021000, 4096)= 0 > _llseek(4, 20480, [20480], SEEK_SET)= 0 > read(4, "g\6\0\36h\6\0gh\6\0\255h\6\0\3i\6\0Ji\6\0\226i\6\0\362"..., 4096) = 409 > 6 > fstat64(3, {st_mode=S_IFREG|0600, st_size=828083, ...}) = 0 > mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40 > 021000 > _llseek(3, 18446744072216379392, 0xbfff8040, SEEK_SET) = -1 EINVAL (Invalid argu > ment) > write(2, "(data fseek failed): Invalid arg"..., 38(data fseek failed): Invalid a > rgument > ) = 38 > --- SIGSEGV (Segmentation fault) --- > +++ killed by SIGSEGV +++ > [EMAIL PROTECTED] root]# > > > Voytek Eymont > -- > SLUG - Sydney Linux User's Group - http://slug.org.au/ > More Info: http://lists.slug.org.au/listinfo/slug -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] seg fault in passwd, can I 'rpm passwd' ?
hmm .. that lseeks call is very wrong.. try doing same with ltrace.. Dave. On Wed, 10 Sep 2003, Voytek Eymont wrote: > ** Reply to note from Vic <[EMAIL PROTECTED]> Wed, 10 Sep 2003 17:50:00 > > > > as root, strace passwd voytek, see how far it ges before segfaulting.. > > > > it won't work as a normal user as passwd is setuid.. > > hmmm, I just tried with what the passwd tool called 'bad, too short' , AND, *it > worked*. > > > # passwd voytek > Changing password for user voytek. > New password: > BAD PASSWORD: it is too short > Retype new password: > passwd: all authentication tokens updated successfully. > > > # passwd voytek > Changing password for user voytek. > New password: > (data fseek failed): Invalid argument > Segmentation fault > > last 24 lines > > > read(5, "", 4096) = 0 > getuid32() = 0 > open("/etc/passwd", O_RDONLY) = 6 > fcntl64(6, F_GETFD) = 0 > fcntl64(6, F_SETFD, FD_CLOEXEC) = 0 > fstat64(6, {st_mode=S_IFREG|0644, st_size=4526, ...}) = 0 > mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40 > 021000 > read(6, "root:x:0:0:root:/root:/bin/bash\n"..., 4096) = 4096 > close(6)= 0 > munmap(0x40021000, 4096)= 0 > _llseek(4, 20480, [20480], SEEK_SET)= 0 > read(4, "g\6\0\36h\6\0gh\6\0\255h\6\0\3i\6\0Ji\6\0\226i\6\0\362"..., 4096) = 409 > 6 > fstat64(3, {st_mode=S_IFREG|0600, st_size=828083, ...}) = 0 > mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40 > 021000 > _llseek(3, 18446744072216379392, 0xbfff8040, SEEK_SET) = -1 EINVAL (Invalid argu > ment) > write(2, "(data fseek failed): Invalid arg"..., 38(data fseek failed): Invalid a > rgument > ) = 38 > --- SIGSEGV (Segmentation fault) --- > +++ killed by SIGSEGV +++ > [EMAIL PROTECTED] root]# > > > Voytek Eymont > -- David Airlie, Software Engineer http://www.skynet.ie/~airlied / [EMAIL PROTECTED] pam_smb / Linux DECstation / Linux VAX / ILUG person -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] seg fault in passwd, can I 'rpm passwd' ?
On Wed, 10 Sep 2003 13:45:27 +0100 (IST), [EMAIL PROTECTED] wrote: > >hmm .. that lseeks call is very wrong.. try doing same with ltrace.. Dave, [EMAIL PROTECTED] root]# ltrace passwd voytek __libc_start_main(0x08049940, 2, 0xbfffed34, 0x08048d10, 0x0804a7b0 __register_frame_info(0x0804c1f4, 0x0804c478, 0xbfffecd8, 0x080490ce, 0x08048d10) = 0x0804c1f4 basename("passwd")= "passwd" poptGetContext(0x0804b0dc, 2, 0xbfffed34, 0xbfffeaa0, 0) = 0x0804c4b8 poptSetOtherOptionHelp(0x0804c4b8, 0x0804a853, 0, 0, 0) = 0x0804c688 poptGetNextOpt(0x0804c4b8, 0x0804a853, 0, 0, 0) = -1 poptGetArgs(0x0804c4b8, 0x0804a853, 0, 0, 0) = 0x0804c650 getuid() = 0 strlen(0xbc34, 0x0804c650, 0xbfffec28, 0x080497ae, 0) = 6 getpwnam("voytek")= 0x421321b0 printf("Changing password for user %s.\n", "voytek"Changing password for user voytek. ) = 35 pam_start(0x0804b0dc, 0xbc34, 0x0804c1dc, 0xbfffec5c, 0x4000b0a6) = 0 pam_fail_delay(0x0804cb58, 0x001e8480, 0x0804c1dc, 0xbfffec5c, 0x4000b0a6) = 0 pam_chauthtok(0x0804cb58, 0, 0x0804c1dc, 0xbfffec5c, 0x4000b0a6 misc_conv(1, 0xbfff8998, 0xbfff899c, 0, 0xbfffa9b0New password: ) = 0 (data fseek failed): Invalid argument --- SIGSEGV (Segmentation fault) --- +++ killed by SIGSEGV +++ [EMAIL PROTECTED] root]# -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug