Operating System - HP-UX
1757761 Members
2422 Online
108863 Solutions
New Discussion юеВ

How to set login time restriction in HPUX

 
SOLVED
Go to solution
Lai Siew Yuen
Frequent Advisor

How to set login time restriction in HPUX

Hi,
I would like to know if I can set the login time restriction in HPUX? How do I do it if it is possible?
Appreciate for your kind advice. Many thanks in advance.
5 REPLIES 5
Lai Nee Shyang_1
Frequent Advisor
Solution

Re: How to set login time restriction in HPUX

Hi Siew Yuen

Go to SAM->Accounts for Users and Groups -> Users
select the user u wish to restrict (use space key)
select action->Set Authorized Login Times...
(use tab key to move to action)
and u can select the login time for that user.

Hope this help

Lai
If it doesn't work, We'll make it work. If it works, We'll make it work better.
A. Clay Stephenson
Acclaimed Contributor

Re: How to set login time restriction in HPUX

This can be done on a trusted system via the /usr/lbin/modprpw command.

For example, to allow user "mickey" to login only between the hours of 0800-1700 Mon-Fri and only between 1000-1030 on Saturdays then:

/usr/lbin/modprpw -m timeof=Wk0800-1700,Sa1000-1030 mickey.

Man modprpw, prpwd for details.

SAM is for wimps.
If it ain't broke, I can fix that.
Lai Siew Yuen
Frequent Advisor

Re: How to set login time restriction in HPUX

Hi Lai,
Got it. Thanks for your advice. Really appreciate your prompt response.
You have a good day :)
A. Clay Stephenson
Acclaimed Contributor

Re: How to set login time restriction in HPUX

Oops, I'm stupid.

/usr/lbin/modprpw -m timeof=Wk0800-1700,Sa1000-1030 mickey

should be:
/usr/lbin/modprpw -m timeod=Wk0800-1700,Sa1000-1030 mickey.
If it ain't broke, I can fix that.
Lai Siew Yuen
Frequent Advisor

Re: How to set login time restriction in HPUX

I must also thanks A. Clay Stephenson for your kind advice. Thank you and have a great day too.