This discussion is archived
1 Reply Latest reply: Apr 19, 2013 10:25 AM by 1004223 RSS

cannot change user password

1004223 Newbie
Currently Being Moderated
When I use the following commands....

passwd <username>

or

passwd -r files <username>

...I get the following error on the prompt.

Unexpected failure. Password file/table unchanged.

...I get the following error on /var/adm/messages.

Apr 19 10:07:34 testserver1 passwd[1835]: [ID 834567 auth.error] open_module[0:/etc/pam.conf]: stat(/usr/lib/security//pam_smb_password.so.1) failed: No such file or directory
Apr 19 10:07:34 testserver1 passwd[1835]: [ID 625676 auth.error] load_modules[0:/etc/pam.conf]: can not open module /usr/lib/security//pam_smb_password.so.1
Apr 19 10:07:36 testserver1 passwd[1836]: [ID 834567 auth.error] open_module[0:/etc/pam.conf]: stat(/usr/lib/security//pam_smb_password.so.1) failed: No such file or directory
Apr 19 10:07:36 testserver1 passwd[1836]: [ID 625676 auth.error] load_modules[0:/etc/pam.conf]: can not open module /usr/lib/security//pam_smb_password.so.1


Here is my version.

Oracle Solaris 11.1 X86
Copyright (c) 1983, 2012, Oracle and/or its affiliates. All rights reserved.
Assembled 19 September 2012

nsswitch.conf is a copy of nsswitch.dns

NOTE: I have also tried using nsswitch.files but I get the same error.

Help.
  • 1. Re: cannot change user password
    1004223 Newbie
    Currently Being Moderated
    I commented the last line in pam.conf and "passwd -r files <username>" started working. Here is a copy of my pam.conf.

    #
    # Copyright (c) 1996, 2012, Oracle and/or its affiliates. All rights reserved.
    #
    # PAM configuration
    #
    # This file is now delivered with no entries. The preferred mechanism
    # for PAM configuration is now using per-service files in /etc/pam.d.
    # Any modifications to this file will be preserved on system update and
    # will be referenced before the per-service files in /etc/pam.d.
    #
    # The libpam(3LIB) library searches for PAM entries in the following order:
    #
    # /etc/pam.conf for <service> entries
    # /etc/pam.d/<service>
    # /etc/pam.conf for "other" entries
    # /etc/pam.d/other
    #
    # See pam.conf(4) for more details.
    #
    # Unless explicitly defined here or in /etc/pam.d/<service>, all services
    # use the modules defined with the service name of "other".
    #
    # Modules are defined with relative pathnames, i.e., they are
    # relative to /usr/lib/security/$ISA. Absolute path names, as
    # present in this file in previous releases are still acceptable.
    #
    #other password required pam_smb_password.so.1 nowarn

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points