Operating System - HP-UX
1834206 Members
2211 Online
110066 Solutions
New Discussion

Re: How to use modprpw to change system-wide defaults?

 
Adrian Pillai
New Member

How to use modprpw to change system-wide defaults?

I want to run modprpw -m umaxlntr=10 on .../system/defaults. Anyone know the syntax? I can only apply it for individual users currently. Using SAM is not an option since I want to run this on 200 boxes remotely.
4 REPLIES 4
John Dvorchak
Honored Contributor

Re: How to use modprpw to change system-wide defaults?

Have you tried to add that line to the /tcb/files/auth/system/default file?

If it has wheels or a skirt, you can't afford it.
John Dvorchak
Honored Contributor

Re: How to use modprpw to change system-wide defaults?

Ok sorry about that last reply. It's getting late and I had a brain fog. I was thinking about a sed script to add the line. Please don't assign any points for my replies and I appologize.
If it has wheels or a skirt, you can't afford it.
Darren Prior
Honored Contributor

Re: How to use modprpw to change system-wide defaults?

Hi Adrian,

I don't believe you can use modprpw on the default file. Have you considered writing a program using the getprdfent/setprdfent system calls? See the getprdfent(3) man page.

Alternatively, you could perform the task once in SAM and note the command line used from the SAMlog viewer, which will use modprdef.

Please bear in mind that modprdef has no man page and is not recommended to be used outside of SAM. The following document in the knowledge base reinforces this: KBRC00005452

regards,

Darren.
Calm down. It's only ones and zeros...
Adrian Pillai
New Member

Re: How to use modprpw to change system-wide defaults?

John,
No worries.

Darren,
The log viewer shows the modprdef syntax I need. Thanks.