/etc/shadow group ownership chages with "passwd" command - HP UX

This is a discussion on /etc/shadow group ownership chages with "passwd" command - HP UX ; Whenever any normal user changes their password, the /etc/shadow file changes group ownership to user's primary group. Any ideas why this is happening and how to correct? # uname -a HP-UX xxxx B.11.11 U 9000/800 stcdwhpd unlimited-user license xxxx:/etc # ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: /etc/shadow group ownership chages with "passwd" command

  1. /etc/shadow group ownership chages with "passwd" command

    Whenever any normal user changes their password, the /etc/shadow file
    changes group ownership to user's primary group. Any ideas why this is
    happening and how to correct?

    # uname -a
    HP-UX xxxx B.11.11 U 9000/800 stcdwhpd unlimited-user license

    xxxx:/etc # ls -la|grep shadow
    -r-------- 1 root sys 1657 Jan 5 17:06 oshadow
    -r-------- 1 root sys 1657 Jan 6 08:28 shadow

    # groups jdoe
    uss

    # grep 200 /etc/group
    uss::200:

    # groups root
    adm bin daemon lp mail other root sys users

    xxxx:/etc # su - jdoe
    [1] % passwd
    Changing password for jdoe
    Old password:
    New password:
    Re-enter new password:
    Passwd successfully changed
    [2] % exit

    xxxx:/etc # ls -la|grep shadow
    -r-------- 1 root sys 1657 Jan 6 08:28 oshadow
    -r-------- 1 root uss 1657 Jan 6 08:30 shadow


  2. Re: /etc/shadow group ownership chages with "passwd" command

    Just to rule out the possibility that someone has removed and replaced
    the passwd command, you should verify the checksum of the passwd
    command:

    cksum `which passwd`

    Compare this with the original checksum. That's one possibility.


  3. Re: /etc/shadow group ownership chages with "passwd" command

    Since the file remains read only by owner (root), it is not a big deal.
    Probably a bug in the program as it is creating a new file and running suid
    but not sgid.

    John

    "thesolarisman" wrote in message
    news:1136568093.831891.85910@g43g2000cwa.googlegro ups.com...
    > Whenever any normal user changes their password, the /etc/shadow file
    > changes group ownership to user's primary group. Any ideas why this is
    > happening and how to correct?
    >
    > # uname -a
    > HP-UX xxxx B.11.11 U 9000/800 stcdwhpd unlimited-user license
    >
    > xxxx:/etc # ls -la|grep shadow
    > -r-------- 1 root sys 1657 Jan 5 17:06 oshadow
    > -r-------- 1 root sys 1657 Jan 6 08:28 shadow
    >
    > # groups jdoe
    > uss
    >
    > # grep 200 /etc/group
    > uss::200:
    >
    > # groups root
    > adm bin daemon lp mail other root sys users
    >
    > xxxx:/etc # su - jdoe
    > [1] % passwd
    > Changing password for jdoe
    > Old password:
    > New password:
    > Re-enter new password:
    > Passwd successfully changed
    > [2] % exit
    >
    > xxxx:/etc # ls -la|grep shadow
    > -r-------- 1 root sys 1657 Jan 6 08:28 oshadow
    > -r-------- 1 root uss 1657 Jan 6 08:30 shadow
    >




+ Reply to Thread