permission denied changing passwd (no NIS)

From: Nathan Bardsley (nbardsley_at_leadfusion.com)
Date: 10/27/04

  • Next message: Chris Cameron: "V240 ECC errors"
    Date: Wed, 27 Oct 2004 10:22:13 -0700
    To: sunmanagers@sunmanagers.org
    
    

    When root tries to change a user's password the only result is
    "Permission denied"

    root@host ~ # passwd user
    New Password:
    Re-enter new Password:
    Permission denied

    There are a number of reports of similar problems that talk about NIS
    and/or LDAP, neither of which I'm using.

    The system is patched up to current, including 112960-20.
    The system is a standalone box, Solaris 9.

    I've trussed the command:
    =-=-=-=
    ioctl(3, TCSETAW, 0xFFBFB854) = 0

    write(2, "\n", 1) = 1
    sigaction(SIGINT, 0xFFBFB730, 0xFFBFB7B0) = 0
    close(3) = 0
    creat("/etc/.pwd.lock", 0600) Err#13 EACCES
    munmap(0xFEF20000, 5213) = 0
    munmap(0xFEF32000, 2222) = 0
    munmap(0xFEF00000, 12089) = 0
    munmap(0xFEF14000, 2928) = 0
    munmap(0xFEED0000, 5322) = 0
    munmap(0xFEEE2000, 2103) = 0
    munmap(0xFEEB0000, 4962) = 0
    munmap(0xFEEC2000, 2371) = 0
    munmap(0xFEE90000, 5898) = 0
    munmap(0xFEEA2000, 3449) = 0
    Permission deniedwrite(2, " P e r m i s s i o n d".., 17) = 17

    write(2, "\n", 1) = 1
    _exit(1)
    =-=-=-=

    root can create and remove the file "/etc/.pwd.lock", but the passwd
    command can't.

    Any ideas? And of course, I'll provide a summary once it's working.

    Thanks,

    --Nathan
    _______________________________________________
    sunmanagers mailing list
    sunmanagers@sunmanagers.org
    http://www.sunmanagers.org/mailman/listinfo/sunmanagers


  • Next message: Chris Cameron: "V240 ECC errors"

    Relevant Pages

    • Urgent: /bin/passwd: Permission denied
      ... Re-enter new Password: ... I tried to truss the process, ...
      (SunManagers)
    • Unable To Change Passwords
      ... Re-enter new Password: ... Cant change password for any user including root. ...
      (SunManagers)
    • Re: System-users and-groups?
      ... bin shouldn't do so much. ... was root and bin... ... Although the daemon user/group are ... as that user runs that command. ...
      (alt.linux)
    • RE: remote ssh for root
      ... forced-commands-only option set, you have to have the command option set. ... execution as root. ... > This message contains confidential information and is ...
      (SSH)
    • Re: grub menu oddity
      ... >>> command (until the manual root command was executed). ... >>> When I first encountered this behavior, it took several reboots for me to ... FWIW - a new CMOS battery is only $3-5 at your local Shaque du Radio ...
      (comp.os.linux.setup)