Re: SSH on armv5tel: "You don't exist, go away!"



maurizio.crozzoli@xxxxxxxxx schreef:
If you run ./getpwuidtest, you should see what goes wrong with getpwuid.
If nothing goes wrong, the linking is probably incorrect.

Thanks for this test code: what we get is "ENOENT" on the PXA system.
On the contrary if we run it on a Debian-based x86 platform we get
"All is well". There's a difference...

That means the profile was not found. It's probably looking in the wrong place for some reason. What if you strace it like this?

strace ./testgetpwuid 2>&1 | less

Censor the output thoroughly (strip ips, nis domains, hostnames, password hashes!, uids, etc) if you want to paste it here.

For NIS setups you should see a sendto() call being made to your NIS server, for systems with local password files you should see a open("/etc/passwd", O_RDONLY);

It may also be both - that depends on the specific settings which you've not yet shared with us.

.



Relevant Pages

  • Re: adduser command for NIS?
    ... >> We are in the process of converting from local password files to ... > propagates the new user & password to the NIS clients. ... default home directory, customize a few files (editing the .forward ... deleting user accounts. ...
    (comp.sys.sun.admin)
  • Re: password management with Solaris 8
    ... If you're using NIS or files for passwords, ... That prevents them from switch back to the expired password but ... Not that this feature is for local password files. ... DeeDee, don't press that button! ...
    (comp.unix.solaris)
  • Re: named problem?
    ... using NIS for passwd or group ... No NIS, though I am moving to ldap. ... I suppose you could use strace and see where the ls hangs. ... I'll try that next time ls fails. ...
    (comp.os.linux.networking)
  • Re: adduser command for NIS?
    ... > We are in the process of converting from local password files to ... > NIS, not NIS+. ... Is there a command equivalent of useradd for NIS? ...
    (comp.sys.sun.admin)