NIS+ problem, users can't change their own password!

NIS+ problem, users can't change their own password!

Post by Christopher S. Hawkins » Fri, 05 Aug 1994 17:36:06



I have a little problem with my NIS+ setup, but I can't figure out what I did
wrong.   Obvously (to me) it has to do with permissions, but since I didn't
modifiy any permissions (knowingly), I'm a bit confused.  The problem is this:

Any time a user attempts to change their passowrd, they are greeted with this
message:

        NIS+ password information changed for testuser
        nispasswd: couldn't change password for testuser.
        Reason: failed to update the cred table with reencrypted credentials.
        Please notify your System Administrator.

Can anyone tell me what I did wrong?  This is the system where the NIS+ master
is.

Chris

 
 
 

NIS+ problem, users can't change their own password!

Post by Neil Ricke » Sat, 06 Aug 1994 00:46:31



Quote:>I have a little problem with my NIS+ setup, but I can't figure out what I did
>wrong.   Obvously (to me) it has to do with permissions, but since I didn't
>modifiy any permissions (knowingly), I'm a bit confused.  The problem is this:
>Any time a user attempts to change their passowrd, they are greeted with this
>message:
>        NIS+ password information changed for testuser
>        nispasswd: couldn't change password for testuser.
>        Reason: failed to update the cred table with reencrypted credentials.
>        Please notify your System Administrator.
>Can anyone tell me what I did wrong?  This is the system where the NIS+ master
>is.

One of the following is happening:

   (1) Your users don't have credentials.
   (2) Your users have credentials, but do not own their own
       credentials.
   (3) Your users logged in with 'rlogin' or similar protocol without
       using a password, and have not gone through keylogin.

I suspect (2) is your problem.  Apparently some scripts for adding
users do it wrongly.  You can use 'nischown' in individual entries in
the credentials table to correct the problem.

Define $DOMAIN to be your NIS+ domain, including a trailing period.
Use:
        niscat -o "[cname=user.$DOMAIN,auth_type=DES],cred.org_dir"
to check on the credential ownership for user.  Correct the problem
with
        nischown user.$DOMAIN "[cname=user.$DOMAIN,auth_type=DES],cred.org_dir"

 
 
 

1. NIS+ user management [Was: Re: root changing a user's password (NIS)]


And Solaris 2 removed `passwd -f <filename>'; the "-f" option now
means "force password change at next login".

                                  .  What other ways are there that are safer?

Good question.  I haven't used Solaris 2 at a large site long enough
for it to be much of an issue.  When necessary, I've just done as you
and edited the file by hand (using Emacs, which when saving at least
gives warning if the file's been changed).  Several years ago at Sun,
I recall there being a `viyp' utility for editing NIS files.  Maybe
they made it publically available.  I think it's harder to enforce
such a utility's use than it is to write one. ;-)

On a related note -- what is the recommended/approved/best way to add
new users and remove ex-users to/from NIS+ ??  One would hope `useradd'
could do it -- nope.  The NIS+ utilities `nis{addent,populate}' are
tailored towards adding to NIS+ tables from ASCII files or NIS maps
rather than dealing with a single "user" entry.  And using plain
`nistbladm' and `nisaddcred' options is crude and error-prone.

I've searched to no avail for some "cookbook" method of handling NIS+
user management.  My old NIS+ book was useless for that issue.  Maybe
I just have a blind spot.  Any suggestions would be appreciated...
thanks!

-sjk

--
Scott J. Kramer                         Graham Technology Solutions
Sr. UNIX Systems Administrator          20823 Stevens Creek Blvd., Suite 300

http://www.graham.com                 +1.408.366.8001

2. uugetty question...

3. AIX User can't change own password

4. MMDF quandry

5. root changing a user's password (NIS)

6. Greation of a BIG file

7. Root changing user's NIS+ password, RPC key not updated too

8. multiple 3c509bs?

9. Can't change NIS+ password in NIS+ client

10. Allowing users to set/change their own password from html form

11. How can I allow users to change their own passwords with Apache?

12. users changing their own passwords?

13. yptools problem : can't change NIS password