You are not logged in.
Pages: 1
Hi,
recently I have discover a pam problem that I've got during some -Syu.
I am not aware exacly when the problem was first shown but now it is really annoying because it's the same problem with sudo which I prefer using.
When trying to "su -" to root (or my own account), it never gives me the chance to provide the password it just gives the error right away!
[fjohanss@flax ~]$ su -
su: wrong password
See error in bold
[fjohanss@flax ~]$ ltrace su -
__libc_start_main(0x80499a0, 2, 0xbfab6334, 0x804eb70, 0x804eb60 <unfinished ...>
strrchr("su", '/') = NULL
setlocale(6, "") = "LC_CTYPE=sv_SE;LC_NUMERIC=sv_SE;"...
bindtextdomain("coreutils", "/usr/share/locale") = "/usr/share/locale"
textdomain("coreutils") = "coreutils"
__cxa_atexit(0x804adc0, 0, 0, 0xb7f75ff4, 0xbfab6298) = 0
getopt_long(2, 0xbfab6334, "c:flmps:", 0x0804f2a0, NULL) = -1
getpwnam("root") = 0xb7f779bc
strlen("root") = 4
malloc(5) = 0x09094de8
memcpy(0x09094de8, "root", 5) = 0x09094de8
strlen("x") = 1
malloc(2) = 0x09094df8
memcpy(0x09094df8, "x", 2) = 0x09094df8
strlen("/root") = 5
malloc(6) = 0x09094e08
memcpy(0x09094e08, "/root", 6) = 0x09094e08
strlen("/bin/bash") = 9
malloc(10) = 0x09094e18
memcpy(0x09094e18, "/bin/bash", 10) = 0x09094e18
endpwent() = <void>
pam_start(0x804f0df, 0x9094de8, 0x8050240, 0x80502b0, 0) = 0
getuid() = 1000
isatty(0) = 1
getuid() = 1000
getpwuid(1000, 0x9094de8, 0x8050240, 0x80502b0, 0) = 0xb7f779e0
pam_set_item(0x90955a8, 8, 0x9097248, 0x80502b0, 0) = 0
ttyname(0) = "/dev/pts/2"
pam_set_item(0x90955a8, 3, 0x9097655, 0x80502b0, 0) = 0
pam_authenticate(0x90955a8, 0, 0x9097655, 0x80502b0, 0 <unfinished ...>
--- SIGCHLD (Child exited) ---
<... pam_authenticate resumed> ) = 21
pam_end(0x90955a8, 0, 0x9097655, 0x80502b0, 0) = 0
dcgettext(0, 0x804f130, 5, 0x80502b0, 0) = 0x90bdf40
error(1, 0, 0x90bdf40, 0x80502b0, 0su: felaktigt lösenord
<unfinished ...>
__fpending(0xb7f764c0, 0x6c697475, 0x6f6d2e73, 0xb7f75ff4, 1) = 0
fclose(0xb7f764c0) = 0
__fpending(0xb7f76560, 0x6c697475, 0x6f6d2e73, 0xb7f75ff4, 1) = 0
fclose(0xb7f76560) = 0
+++ exited (status 1) +++
if running same command as root
__libc_start_main(0x80499a0, 2, 0xbf810b84, 0x804eb70, 0x804eb60 <unfinished ...>
strrchr("su", '/') = NULL
setlocale(6, "") = "LC_CTYPE=sv_SE;LC_NUMERIC=sv_SE;"...
bindtextdomain("coreutils", "/usr/share/locale") = "/usr/share/locale"
textdomain("coreutils") = "coreutils"
__cxa_atexit(0x804adc0, 0, 0, 0xb7ed0ff4, 0xbf810ae8) = 0
getopt_long(2, 0xbf810b84, "c:flmps:", 0x0804f2a0, NULL) = -1
getpwnam("root") = 0xb7ed29bc
strlen("root") = 4
malloc(5) = 0x0826ede8
memcpy(0x0826ede8, "root", 5) = 0x0826ede8
strlen("x") = 1
malloc(2) = 0x0826edf8
memcpy(0x0826edf8, "x", 2) = 0x0826edf8
strlen("/root") = 5
malloc(6) = 0x0826ee08
memcpy(0x0826ee08, "/root", 6) = 0x0826ee08
strlen("/bin/bash") = 9
malloc(10) = 0x0826ee18
memcpy(0x0826ee18, "/bin/bash", 10) = 0x0826ee18
endpwent() = <void>
pam_start(0x804f0df, 0x826ede8, 0x8050240, 0x80502b0, 0) = 0
getuid() = 0
getuid() = 0
getpwuid(0, 0x826ede8, 0x8050240, 0x80502b0, 0) = 0xb7ed29e0
pam_set_item(0x826f5a8, 8, 0x8271248, 0x80502b0, 0) = 0
ttyname(0) = "/dev/vc/2"
pam_set_item(0x826f5a8, 3, 0x8271655, 0x80502b0, 0) = 0
pam_authenticate(0x826f5a8, 0, 0x8271655, 0x80502b0, 0) = 0
pam_acct_mgmt(0x826f5a8, 0, 0x8271655, 0x80502b0, 0) = 0
strlen("/bin/bash") = 9
malloc(10) = 0x0826f8a0
memcpy(0x0826f8a0, "/bin/bash", 10) = 0x0826f8a0
getenv("TERM") = "linux"
getenv("DISPLAY") = NULL
getenv("XAUTHORITY") = NULL
strlen("linux") = 5
malloc(6) = 0x0826f770
memcpy(0x0826f770, "linux", 6) = 0x0826f770
malloc(28) = 0x0826f780
strlen("TERM") = 4
strlen("linux") = 5
malloc(11) = 0x0826f7a0
strcpy(0x0826f7a0, "TERM") = 0x0826f7a0
strcpy(0x0826f7a5, "linux") = 0x0826f7a5
putenv(0x826f7a0, 0x826f770, 0x826f770, 0x826f770, 0) = 0
strlen("HOME") = 4
strlen("/root") = 5
malloc(11) = 0x0826f7c0
strcpy(0x0826f7c0, "HOME") = 0x0826f7c0
strcpy(0x0826f7c5, "/root") = 0x0826f7c5
putenv(0x826f7c0, 0x826ee08, 0x826ee08, 0x826f770, 0) = 0
strlen("SHELL") = 5
strlen("/bin/bash") = 9
malloc(16) = 0x0826f7d0
strcpy(0x0826f7d0, "SHELL") = 0x0826f7d0
strcpy(0x0826f7d6, "/bin/bash") = 0x0826f7d6
putenv(0x826f7d0, 0x826f8a0, 0x826f8a0, 0x826f770, 0) = 0
strlen("USER") = 4
strlen("root") = 4
malloc(10) = 0x0826f7b0
strcpy(0x0826f7b0, "USER") = 0x0826f7b0
strcpy(0x0826f7b5, "root") = 0x0826f7b5
putenv(0x826f7b0, 0x826ede8, 0x826ede8, 0x826f770, 0) = 0
strlen("LOGNAME") = 7
strlen("root") = 4
malloc(13) = 0x082728d8
strcpy(0x082728d8, "LOGNAME") = 0x082728d8
strcpy(0x082728e0, "root") = 0x082728e0
putenv(0x82728d8, 0x826ede8, 0x826ede8, 0x826f770, 0) = 0
strlen("PATH") = 4
strlen("/usr/ucb:/bin:/usr/bin:/etc") = 27
malloc(33) = 0x08272910
strcpy(0x08272910, "PATH") = 0x08272910
strcpy(0x08272915, "/usr/ucb:/bin:/usr/bin:/etc") = 0x08272915
putenv(0x8272910, 0x804f18d, 0x804f18d, 0, 0) = 0
malloc(8) = 0x0826f7e8
pam_open_session(0x826f5a8, 0, 0x8271655, 0x80502b0, 0) = 0
pam_getenvlist(0x826f5a8, 0, 0xbf810ae8, 0x8049e82, 0x826f5a8) = 0x8272938
pam_setcred(0x826f5a8, 2, 0x8271655, 0x80502b0, 0) = 0
fork() = 6687
sigfillset(0xbf810a54) = 0
sigprocmask(0, 0xbf810a54, NULL) = 0
sigemptyset(0xbf8109cc) = 0
sigemptyset(0xbf810a54) = 0
sigaddset(0xbf810a54, 15) = 0
sigaddset(0xbf810a54, 14) = 0
sigaction(15, 0xbf8109c8, NULL) = 0
sigprocmask(1, 0xbf810a54, NULL) = 0
waitpid(-1, 0xbf810ad4, 2) = 6687
pam_setcred(0x826f5a8, 32772, 2, 0x80502b0, 0) = 0
pam_close_session(0x826f5a8, 0, 2, 0x80502b0, 0) = 0
pam_end(0x826f5a8, 0, 2, 0x80502b0, 0) = 0
exit(0 <unfinished ...>
__fpending(0xb7ed14c0, 0xb7f10fc0, 0x80488ac, 0xb7ed0ff4, 0) = 0
fclose(0xb7ed14c0) = 0
__fpending(0xb7ed1560, 0xb7f10fc0, 0x80488ac, 0xb7ed0ff4, 0) = 0
fclose(0xb7ed1560) = 0
+++ exited (status 0) +++
Anyone knows about any change lately, maybe what to do about it??
/xor
My misstake ;-)
As I did remove thinkfinger I should also have removed
"nullok_secure try_first_pass"
in /etc/pam.d/sudo and /etc/pam.d/su
This
auth required pam_unix.so nullok_secure try_first_pass
Should looks like this
auth required pam_unix.so
Learning by doing (wrong) hehe
/xor
Last edited by xor (2009-04-27 05:36:20)
Offline
Pages: 1