[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: passwd segfaulting



On Sun, Feb 03, 2002 at 02:42, Bill Bell wrote:
> I have included output from getent and strace.  I looked through 
> the /etc/passwd file trying to find any errors as you describe, (no luck yet).  
> I am not sure how the /etc/passwd-, /etc/shadow and /etc/shadow- files play 
> into this.  Is it possible that one of these files could contain the error that 
> would cause this segfault?

  I don't think /etc/passwd- and /etc/shadow- are even opened by
  'passwd'.
  The output from 'getent' seems to be correct. The 'strace' output is
  weird:

> open("/etc/passwd", O_RDONLY)           = 3
> fcntl(3, F_GETFD)                       = 0
> fcntl(3, F_SETFD, FD_CLOEXEC)           = 0
> fstat(3, {st_mode=S_IFREG|0644, st_size=1251, ...}) = 0
> old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40016000
> _llseek(3, 0, [0], SEEK_CUR)            = 0
> read(3, "root:Xy13e.n9hX7WU:0:0:root:/roo"..., 4096) = 1251

  Hmmm, it seems that your /etc/passwd contains your encrypted root
  password. If I 'strace passwd' on my computer (running sid), I never
  get a line like that, always 'root:x:0:0:...".
  It doesn't even seem to open '/etc/shadow', I don't understand. What
  is the content of your /etc/nsswitch.conf, /etc/pam.d/other and
  /etc/pam.d/passwd files ?

-- 
Eric-Olivier Lamey



Reply to: