passwd: permission denied

Randolph D. Dach rdach at shaw.ca
Sun Oct 31 16:53:59 PST 2004


On Sun, 31 Oct 2004 22:12:48 +0100
"Matthias B." <msbREMOVE-THIS at winterdrache.de> wrote:

> On Sun, 31 Oct 2004 11:08:11 -0700 "Randolph D. Dach" <rdach at shaw.ca>
> wrote:
> 
> > 
> > Hope someone out there has some ideas????
> 
> Run passwd under strace and search the output for your "Permission Denied"
> error. 
> 
> MSB
> 

tks Matthias  

I ran it with strace to produce this output

execve("/bin/passwd", ["passwd"], [/* 30 vars */]) = 0
uname({sys="Linux", node="Randolph", ...}) = 0
brk(0)                                  = 0x804c000
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40018000
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=30845, ...}) = 0
mmap2(NULL, 30845, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40019000
close(3)                                = 0
open("/lib/libmisc.so.0", O_RDONLY)     = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 at 7\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=162484, ...}) = 0
mmap2(NULL, 61984, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40021000
mmap2(0x4002d000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xc) = 0x4002d000
mmap2(0x4002e000, 8736, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4002e000
close(3)                                = 0
open("/lib/libshadow.so.0", O_RDONLY)   = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340+\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=102147, ...}) = 0
mmap2(NULL, 93696, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40031000
mmap2(0x40039000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7) = 0x40039000
mmap2(0x4003c000, 48640, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4003c000
close(3)                                = 0
open("/lib/libcrypt.so.1", O_RDONLY)    = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0\n\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=45447, ...}) = 0
mmap2(NULL, 181852, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40048000
mmap2(0x4004d000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4) = 0x4004d000
mmap2(0x4004e000, 157276, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4004e000
close(3)                                = 0
open("/usr/lib/libpam.so.0", O_RDONLY)  = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0 \0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=37627, ...}) = 0
mmap2(NULL, 36008, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40075000
mmap2(0x4007d000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7) = 0x4007d000
close(3)                                = 0
open("/usr/lib/libpam_misc.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p\f\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=10030, ...}) = 0
mmap2(NULL, 11572, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x4007e000
mmap2(0x40080000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0x40080000
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 O\1\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=5277212, ...}) = 0
mmap2(NULL, 1138412, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40081000
mmap2(0x4018c000, 36864, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x10a) = 0x4018c000
mmap2(0x40195000, 7916, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40195000
close(3)                                = 0
open("/lib/libdl.so.2", O_RDONLY)       = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300\34"..., 512) = 512
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40197000
fstat64(3, {st_mode=S_IFREG|0755, st_size=53069, ...}) = 0
mmap2(NULL, 8632, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40198000
mmap2(0x4019a000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2) = 0x4019a000
close(3)                                = 0
mprotect(0x4007e000, 8192, PROT_READ|PROT_WRITE) = 0
mprotect(0x4007e000, 8192, PROT_READ|PROT_EXEC) = 0
mprotect(0x40075000, 32768, PROT_READ|PROT_WRITE) = 0
mprotect(0x40075000, 32768, PROT_READ|PROT_EXEC) = 0
set_thread_area({entry_number:-1 -> 6, base_addr:0x40197a90, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
munmap(0x40019000, 30845)               = 0
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=38391424, ...}) = 0
mmap2(NULL, 2097152, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4019b000
close(3)                                = 0
brk(0)                                  = 0x804c000
brk(0x806d000)                          = 0x806d000
brk(0)                                  = 0x806d000
getuid32()                              = 0
readlink("/proc/self/fd/0", "/dev/pts/4", 511) = 10
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
access("/var/run/utmpx", F_OK)          = -1 ENOENT (No such file or directory)
open("/var/run/utmp", O_RDWR)           = 3
fcntl64(3, F_GETFD)                     = 0
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
_llseek(3, 0, [0], SEEK_SET)            = 0
alarm(0)                                = 0
rt_sigaction(SIGALRM, {0x40165660, [], 0}, {SIG_DFL}, 8) = 0
alarm(1)                                = 0
fcntl64(3, F_SETLKW, {type=F_RDLCK, whence=SEEK_SET, start=0, len=0}) = 0
read(3, "\10\0\0\0u\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 384) = 384
read(3, "\2\0\0\0\0\0\0\0~\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 384) = 384
read(3, "\1\0\0\0003N\0\0~\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 384) = 384
read(3, "\10\0\0\0#\5\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 384) = 384
read(3, "\7\0\0\0\266\5\0\0tty1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 384) = 384
read(3, "\6\0\0\0\270\5\0\0tty2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 384) = 384
read(3, "\6\0\0\0\271\5\0\0tty3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 384) = 384
read(3, "\6\0\0\0\272\5\0\0tty4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 384) = 384
read(3, "\5\0\0\0\332\5\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 384) = 384
read(3, "\5\0\0\0\341\5\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 384) = 384
read(3, "", 384)                        = 0
fcntl64(3, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}) = 0
alarm(0)                                = 1
rt_sigaction(SIGALRM, {SIG_DFL}, NULL, 8) = 0
close(3)                                = 0
getuid32()                              = 0
socket(PF_FILE, SOCK_STREAM, 0)         = 3
connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(3)                                = 0
open("/etc/nsswitch.conf", O_RDONLY)    = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=188, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4039b000
read(3, "# Begin /etc/nsswitch.conf\n\npass"..., 4096) = 188
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x4039b000, 4096)                = 0
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=30845, ...}) = 0
mmap2(NULL, 30845, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4039b000
close(3)                                = 0
open("/lib/libnss_files.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220\35"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=125826, ...}) = 0
mmap2(NULL, 33720, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x403a3000
mmap2(0x403ab000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x8) = 0x403ab000
close(3)                                = 0
munmap(0x4039b000, 30845)               = 0
open("/etc/passwd", O_RDONLY)           = 3
fcntl64(3, F_GETFD)                     = 0
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=171, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4039b000
read(3, "root:x:0:0:root:/root:/bin/bash\n"..., 4096) = 171
close(3)                                = 0
munmap(0x4039b000, 4096)                = 0
open("/etc/passwd", O_RDONLY)           = 3
fcntl64(3, F_GETFD)                     = 0
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=171, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4039b000
read(3, "root:x:0:0:root:/root:/bin/bash\n"..., 4096) = 171
close(3)                                = 0
munmap(0x4039b000, 4096)                = 0
setrlimit(RLIMIT_CORE, {rlim_cur=0, rlim_max=0}) = 0
setrlimit(RLIMIT_AS, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0
setrlimit(RLIMIT_CPU, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0
setrlimit(RLIMIT_DATA, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0
setrlimit(RLIMIT_FSIZE, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0
setrlimit(RLIMIT_NOFILE, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = -1 EPERM (Operation not permitted)
setrlimit(RLIMIT_RSS, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0
setrlimit(RLIMIT_STACK, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0
rt_sigaction(SIGALRM, {SIG_IGN}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGHUP, {SIG_IGN}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGINT, {SIG_IGN}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_IGN}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGTERM, {SIG_IGN}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGTSTP, {SIG_IGN}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGTTOU, {SIG_IGN}, {SIG_DFL}, 8) = 0
umask(077)                              = 022
stat64("/etc/pam.d", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/etc/pam.d/passwd", O_RDONLY)     = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=249, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4039b000
read(3, "# Begin /etc/pam.d/passwd\n\npassw"..., 4096) = 249
open("/usr/lib/security/pam_cracklib.so", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0\20\0"..., 512) = 512
fstat64(4, {st_mode=S_IFREG|0755, st_size=18787, ...}) = 0
mmap2(NULL, 33696, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0x403ac000
mmap2(0x403b0000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x3) = 0x403b0000
mmap2(0x403b1000, 13216, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x403b1000
close(4)                                = 0
open("/etc/ld.so.cache", O_RDONLY)      = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=30845, ...}) = 0
mmap2(NULL, 30845, PROT_READ, MAP_PRIVATE, 4, 0) = 0x403b5000
close(4)                                = 0
open("/lib/libcrack.so.2", O_RDONLY)    = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0t\33\0\000"..., 512) = 512
fstat64(4, {st_mode=S_IFREG|0755, st_size=49352, ...}) = 0
mmap2(NULL, 44192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0x403bd000
mmap2(0x403c4000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x7) = 0x403c4000
mmap2(0x403c5000, 11424, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x403c5000
close(4)                                = 0
mprotect(0x403ac000, 16384, PROT_READ|PROT_WRITE) = 0
mprotect(0x403ac000, 16384, PROT_READ|PROT_EXEC) = 0
munmap(0x403b5000, 30845)               = 0
time([1099269859])                      = 1099269859
open("/etc/localtime", O_RDONLY)        = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=874, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x403b5000
read(4, "TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\5\0\0\0\5\0"..., 4096) = 874
close(4)                                = 0
munmap(0x403b5000, 4096)                = 0
getpid()                                = 6011
rt_sigaction(SIGPIPE, {0x401354b0, [], 0}, {SIG_IGN}, 8) = 0
socket(PF_FILE, SOCK_DGRAM, 0)          = 4
fcntl64(4, F_SETFD, FD_CLOEXEC)         = 0
connect(4, {sa_family=AF_FILE, path="/dev/log"}, 16) = 0
send(4, "<83>Oct 31 17:44:19 passwd[6011]"..., 85, 0) = 85
rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
open("/usr/lib/security/pam_unix.so", O_RDONLY) = 5
read(5, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360/\0"..., 512) = 512
fstat64(5, {st_mode=S_IFREG|0755, st_size=51392, ...}) = 0
mmap2(NULL, 98056, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 5, 0) = 0x403c8000
mmap2(0x403d3000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 5, 0xa) = 0x403d3000
mmap2(0x403d4000, 48904, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x403d4000
close(5)                                = 0
open("/etc/ld.so.cache", O_RDONLY)      = 5
fstat64(5, {st_mode=S_IFREG|0644, st_size=30845, ...}) = 0
mmap2(NULL, 30845, PROT_READ, MAP_PRIVATE, 5, 0) = 0x403e0000
close(5)                                = 0
open("/lib/libnsl.so.1", O_RDONLY)      = 5
read(5, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p<\0\000"..., 512) = 512
fstat64(5, {st_mode=S_IFREG|0755, st_size=366420, ...}) = 0
mmap2(NULL, 84864, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 5, 0) = 0x403e8000
mmap2(0x403fa000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 5, 0x11) = 0x403fa000
mmap2(0x403fb000, 7040, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x403fb000
close(5)                                = 0
mprotect(0x403c8000, 45056, PROT_READ|PROT_WRITE) = 0
mprotect(0x403c8000, 45056, PROT_READ|PROT_EXEC) = 0
munmap(0x403e0000, 30845)               = 0
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x4039b000, 4096)                = 0
open("/etc/pam.d/other", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=197, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4039b000
read(3, "# Begin /etc/pam.d/other\n\nauth  "..., 4096) = 197
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x4039b000, 4096)                = 0
time(NULL)                              = 1099269859
stat64("/lib/cracklib_dict.pwd", {st_mode=S_IFREG|0644, st_size=6348280, ...}) = 0
open("/etc/.pwd.lock", O_WRONLY|O_CREAT, 0600) = 3
fcntl64(3, F_GETFD)                     = 0
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
rt_sigaction(SIGALRM, {0x4013e550, ~[], 0}, {SIG_IGN}, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [ALRM], [], 8) = 0
alarm(15)                               = 0
fcntl64(3, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) = 0
alarm(0)                                = 15
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGALRM, {SIG_IGN}, NULL, 8) = 0
getuid32()                              = 0
open("/etc/passwd", O_RDONLY)           = 5
fcntl64(5, F_GETFD)                     = 0
fcntl64(5, F_SETFD, FD_CLOEXEC)         = 0
fstat64(5, {st_mode=S_IFREG|0644, st_size=171, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4039b000
read(5, "root:x:0:0:root:/root:/bin/bash\n"..., 4096) = 171
close(5)                                = 0
munmap(0x4039b000, 4096)                = 0
open("/etc/shadow", O_RDONLY)           = 5
fcntl64(5, F_GETFD)                     = 0
fcntl64(5, F_SETFD, FD_CLOEXEC)         = 0
fstat64(5, {st_mode=S_IFREG|0400, st_size=174, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4039b000
read(5, "root:$1$HKE/7g/A$GRcOWchaknVNnpR"..., 4096) = 174
close(5)                                = 0
munmap(0x4039b000, 4096)                = 0
open("/etc/passwd", O_RDONLY)           = 5
fcntl64(5, F_GETFD)                     = 0
fcntl64(5, F_SETFD, FD_CLOEXEC)         = 0
fstat64(5, {st_mode=S_IFREG|0644, st_size=171, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4039b000
_llseek(5, 0, [0], SEEK_CUR)            = 0
_llseek(5, 0, [0], SEEK_SET)            = 0
read(5, "root:x:0:0:root:/root:/bin/bash\n"..., 4096) = 171
close(5)                                = 0
munmap(0x4039b000, 4096)                = 0
open("/etc/shadow", O_RDONLY)           = 5
fcntl64(5, F_GETFD)                     = 0
fcntl64(5, F_SETFD, FD_CLOEXEC)         = 0
fstat64(5, {st_mode=S_IFREG|0400, st_size=174, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4039b000
_llseek(5, 0, [0], SEEK_CUR)            = 0
_llseek(5, 0, [0], SEEK_SET)            = 0
read(5, "root:$1$HKE/7g/A$GRcOWchaknVNnpR"..., 4096) = 174
close(5)                                = 0
munmap(0x4039b000, 4096)                = 0
close(3)                                = 0
open("/usr/share/locale/locale.alias", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=2586, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4039b000
read(3, "# Locale name alias data base.\n#"..., 4096) = 2586
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x4039b000, 4096)                = 0
open("/usr/share/locale/en_CA/LC_MESSAGES/shadow.mo", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=39586, ...}) = 0
mmap2(NULL, 39586, PROT_READ, MAP_PRIVATE, 3, 0) = 0x403fd000
close(3)                                = 0
open("/usr/lib/gconv/gconv-modules.cache", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/gconv/gconv-modules", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=45501, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40407000
read(3, "# GNU libc iconv configuration.\n"..., 4096) = 4096
read(3, "lias\tJS//\t\t\tJUS_I.B1.002//\nalias"..., 4096) = 4096
read(3, "ule\tINTERNAL\t\tISO-8859-3//\t\tISO8"..., 4096) = 4096
read(3, "s\tLATIN8//\t\tISO-8859-14//\nalias\t"..., 4096) = 4096
read(3, "/\t\tEBCDIC-ES//\nalias\tEBCDICES//\t"..., 4096) = 4096
read(3, "ias\tEBCDIC-CP-ES//\t\tIBM284//\nali"..., 4096) = 4096
read(3, "\tIBM864//\nalias\tCSIBM864//\t\tIBM8"..., 4096) = 4096
read(3, "module\tINTERNAL\t\tIBM937//\t\tIBM93"..., 4096) = 4096
read(3, "ule\tEUC-JP//\t\tINTERNAL\t\tEUC-JP\t\t"..., 4096) = 4096
read(3, "/\tIEC_P27-1//\nalias\tIEC_P271//\t\t"..., 4096) = 4096
read(3, "ERNAL\t\tISO_10367-BOX//\t\tISO_1036"..., 4096) = 4096
read(3, "le\t\tcost\nmodule\tShift_JISX0213//"..., 4096) = 445
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x40407000, 4096)                = 0
open("/usr/lib/gconv/ISO8859-1.so", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\6\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=15356, ...}) = 0
mmap2(NULL, 8840, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40407000
mmap2(0x40409000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0x40409000
close(3)                                = 0
brk(0)                                  = 0x806d000
brk(0x808e000)                          = 0x808e000
write(2, "passwd: Permission denied\n", 26passwd: Permission denied
) = 26
munmap(0x403ac000, 33696)               = 0
munmap(0x403bd000, 44192)               = 0
munmap(0x403c8000, 98056)               = 0
munmap(0x403e8000, 84864)               = 0
exit_group(10)                          = ?


now I can't figure out which file passwd is trying to write to that must be missing I noticed the first time it couldn't find file /usr/share/locale/en_CA/LC_MESSAGES/shadow.mo so i copied that on from /usr/share/locale/ca/LC_MESSAGES/shadow.mo

the only one i see missing is /usr/lib/gconv/gconv-modules.cache

tks 



More information about the blfs-support mailing list