1753787 Members
7464 Online
108799 Solutions
New Discussion юеВ

Re: Auto Lock

 
Ann Majeske
Honored Contributor

Re: Auto Lock

Chris,

Can you post the results of "edauth -g " on the account that you did the usermod command?

Ann
Chris_769
New Member

Re: Auto Lock

Hi,

I dont understand why the crontab did not work either:

It locked fine, but would not unlock. I have removed the two lines, but I know that they were correct.

The usermod worked. It was that I had entered Wk instead of listing each day.
Does anyone know how to remove it now if I want to? It is the u_tod= that needs to be removed in the db.
Any ideas how that fine can be edited?

Many cheers,
Chris
Victor Semaska_3
Esteemed Contributor

Re: Auto Lock

Chris,

Try this:

usermod -x logon_hours=""

Vic
There are 10 kinds of people, one that understands binary and one that doesn't.
Ann Majeske
Honored Contributor

Re: Auto Lock

usermod can be used to modify the account.

You can also use the edauth command to modify the fields directly. See "man edauth" for information on the edauth command. See "man prpasswd" for information on the fields.

Ann
Ralf Puchner
Honored Contributor

Re: Auto Lock

Howto enable automatic logout of idle telnet sessions

Set environmental variables:

csh and tcsh
set autologout=60

where 60 represents the number of minutes if inactivity.

ksh and bash
TMOUT=3600 ; export TMOUT

where 3600 represents the number of seconds of inactivity.

C2 is not necessary here!
Help() { FirstReadManual(urgently); Go_to_it;; }