1833261 Members
3119 Online
110051 Solutions
New Discussion

Re: modprpw and NIS

 
generic_1
Respected Contributor

modprpw and NIS

Hello Everyone,

I have a two part question.
First question is I saw this quote in the modprpw man page and I was wondering if modprpw commands were not supported in nis environments or what the interpretation or this is:

Usage other than via SAM, and/or modifications out of sync with
/etc/passwd or NIS+ tables, may result in serious database corruption
and the inability to access the system.


Second I was wondering how to add a user in nis with a random password with modprpw and would you just need to add their home directory once this was done or are there some other steps needed in a nis environment.

Thanks
6 REPLIES 6
Sundar_7
Honored Contributor

Re: modprpw and NIS

modprpw can only operate on protected password database (i.e trusted system).

NIS wont work on a trusted system. So if you are running NIS, it is obviously not a trusted system, and thus you cannot use modprpw to do any kind of manipulation with the password database.

Learn What to do ,How to do and more importantly When to do ?
generic_1
Respected Contributor

Re: modprpw and NIS

What is the -n domain option for then? Just curious.
Dave Olker
Neighborhood Moderator

Re: modprpw and NIS

The -n domain option is to specify the NIS+ domain name. NIS+ is supported with Trusted Systems. NIS is not.

Regards,

Dave


I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
generic_1
Respected Contributor

Re: modprpw and NIS

I meant to say NIS+ in my question :). Sorry.
Sundar_7
Honored Contributor

Re: modprpw and NIS

OK, the location of the modprpw binary should give you a hint. binaries located under /usr/lbin are not meant to be used directly.

In this case, *prpw* commands are used by the SAM to perform operations against protected password database files.

You can use them from the command line. But as man page tell you, that is unsupported and the options could change without notice.
Learn What to do ,How to do and more importantly When to do ?
generic_1
Respected Contributor

Re: modprpw and NIS

So how do I use modprpw to create a nis+ account with a random password and is the only external thing thats need to create a home directory?