Re: aix shell script
From: rens (rens.groenewegen_at_xs4all.nl)
Date: 12/22/04
- Previous message: rens: "Re: How to remove the VeritasVolumes signature"
- In reply to: Mike Z. Helm: "Re: aix shell script"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 22 Dec 2004 00:29:18 +0100
preventing double logins:
put this in profile
[ `who -i |grep -c -w ^$LOGNAME` -gt 1 ] && logout
This goes for *every user* including you yourself........
might want to exclude your self by using an if construct...... ;)
timed log out:
there is a timed-logout variable for the shell.
does not log you out if you run another program in that shell ( like vi
or whatever )
try the 'w' command and check the output.
you can script around that info, of course.
*please note: it is not safe to blindly kill user sessions, they might
loose data.
*
regards Rens
Mike Z. Helm wrote:
>On 9 Dec 2004 12:10:11 -0800, roger1991@hotmail.com
>
>
>
>>I need a shell script to stop duplicate concurrent logins. I need a
>>second script to timeout a logged in inactive user after a
>>predetermined time limit.
>>Thanks for your help.
>>
>>
>
>I find it helpful to set their login shell to /bin/false.
>
>Everything runs so much smoother when I do that - except the phone tends
>to ring a lot, so I forward it to the mailroom.
>--
>"Freedom is not always a good thing." -- P.R. Smith, a self-described conservative and Bush supporter
>
>
- Previous message: rens: "Re: How to remove the VeritasVolumes signature"
- In reply to: Mike Z. Helm: "Re: aix shell script"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|