User password change by root using NIS

User password change by root using NIS

Post by Walter Vanmeer » Wed, 22 Oct 1997 04:00:00



 Hi there,

I'm having a small problem with a password change.
Whenever i try to change the password as root for another user (in case
he/she has forgotten the password) the command yppasswd username does not
work as it keeps on asking me for the existing password.
The system is running NIS and Sun Solaris

Any parameters i'm missing or is this normal behaviour for NIS.
I can blank the password for the user by editing the passwd and shadow files
but i want to be able to just change the password by using the yppasswd
command on the shell prompt

Thanks in advance

--
Walter Vanmeert


 
 
 

User password change by root using NIS

Post by Richard C. Gaine I » Thu, 06 Nov 1997 04:00:00



> Hi there,
>I'm having a small problem with a password change.
>Whenever i try to change the password as root for another user (in case
>he/she has forgotten the password) the command yppasswd username does not
>work as it keeps on asking me for the existing password.

While logged in to the YP/NIS master use passwd -files username  This
should work for what you want to do.

 
 
 

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. Searching afther 'oki4linux-1.0.tar.gz', wher to find it?

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

4. Radius accounting

5. Can root change NIS password of any user ?

6. Adaptec 19160

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

8. file system problem

9. changing NIS+ root master root password

10. Changing local root password on box running NIS

11. changing root password on a NIS+ server

12. Changing root password (NIS+)

13. NIS+ - Changing root passwords