vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| My users keep forgetting to logout their terminals and often stay logged in to my RS6K server. Besides being a security risk, this is not allowing backups to run at night. Anybody knows a way to terminate AIX 4.3 telnet sessions after a certain idle time? Or, what would be the command to kill all non-root processes that can be places in Cron before backup starts? Thanks in advance. |
| |||
| this might help ?q=timeout+ksh+group:comp.unix.aix+group:comp.unix .aix&hl=en&lr=&ie=UTF- 8&oe=UTF- 8&group=comp.unix.aix&scoring=d&selm=dee0a7c3.0208 290223.5edbbe34%40pos- ting.google.com&rnum=4 Rgds Mark -- Posted via http://dbforums.com |
| |||
| Thanks Mark.. That was helpful. I'm not so good at scripts but I'll keep trying. I apreciate it. "Mark Taylor" <member20596@dbforums.com> wrote in message news:3279739.1061756149@dbforums.com... > > this might help > > ?q=timeout+ksh+group:comp.unix.aix+group:comp.unix .aix&hl=en&lr=&ie=UTF- > 8&oe=UTF- > 8&group=comp.unix.aix&scoring=d&selm=dee0a7c3.0208 290223.5edbbe34%40pos- > ting.google.com&rnum=4 |
| |||
| Tarif wrote: > My users keep forgetting to logout their terminals and often stay logged in > to my RS6K server. Besides being a security risk, this is not allowing > backups to run at night. > > Anybody knows a way to terminate AIX 4.3 telnet sessions after a certain > idle time? > > Or, what would be the command to kill all non-root processes that can be > places in Cron before backup starts? > > Thanks in advance. > > > You might want to do what some people do and have Cron restart the machine and then do the backup. This will help if a session gets locked up or is still running and not showing as being idle. |
| |||
| Mark, export TMOUT=300 worked if a user was at a shell prompt, however, it wouldn't if a program was left running on the user's telnet screen which is the case in my situation. Thanks anyway. "Mark Taylor" <member20596@dbforums.com> wrote in message news:3279739.1061756149@dbforums.com... > > this might help > > > > ?q=timeout+ksh+group:comp.unix.aix+group:comp.unix .aix&hl=en&lr=&ie=UTF- > 8&oe=UTF- > 8&group=comp.unix.aix&scoring=d&selm=dee0a7c3.0208 290223.5edbbe34%40pos- > ting.google.com&rnum=4 |
| |||
| Thanks Michael, that's a good idea. would you know how crontabs should look like for a reboot at say 10:00pm? I'll figure out loading programs at boot, I guess. I still have to kick users off the system during daytime when they're inactive for over an hour for obvious security concerns. HR is not cooperating :-( Thanks once more. > > My users keep forgetting to logout their terminals and often stay logged in > > to my RS6K server. Besides being a security risk, this is not allowing > > backups to run at night. > > > > Anybody knows a way to terminate AIX 4.3 telnet sessions after a certain > > idle time? > > > > Or, what would be the command to kill all non-root processes that can be > > places in Cron before backup starts? > You might want to do what some people do and have Cron restart the > machine and then do the backup. This will help if a session gets locked > up or is still running and not showing as being idle. > |
| |||
| Tarif wrote: > Thanks Michael, that's a good idea. would you know how crontabs should look > like for a reboot at say 10:00pm? I'll figure out loading programs at boot, > I guess. > I still have to kick users off the system during daytime when they're > inactive for over an hour for obvious security concerns. HR is not > cooperating :-( > Thanks once more. > You should just have to add a line to Cron with 'shutdown -Fr' to reboot the system at the desired time. Then have another line in Cron that starts your backup script about 10-15 minutes later. > >>>My users keep forgetting to logout their terminals and often stay logged > > in > >>>to my RS6K server. Besides being a security risk, this is not allowing >>>backups to run at night. >>> >>>Anybody knows a way to terminate AIX 4.3 telnet sessions after a certain >>>idle time? >>> >>>Or, what would be the command to kill all non-root processes that can be >>>places in Cron before backup starts? > > >>You might want to do what some people do and have Cron restart the >>machine and then do the backup. This will help if a session gets locked >>up or is still running and not showing as being idle. >> > > > |
| |||
| Kills all users idle more that 45 minutes. Run it in cron. my=`/usr/bin/who -u|/usr/bin/grep -v nppp|/usr/bin/awk '{ if($6>"0:45") print($ 7)}'` if [ "$my" ] then kill -1 $my >/dev/null 2>&1 sleep 10 my=`/usr/bin/who -u|/usr/bin/awk '{ if($6>"0:45") print($7)}'` if [ "$my" ] then kill -9 $my >/dev/null 2>&1 fi fi |
| ||||
| Tarif wrote: > My users keep forgetting to logout their terminals and often stay logged in > to my RS6K server. Besides being a security risk, this is not allowing > backups to run at night. > > Anybody knows a way to terminate AIX 4.3 telnet sessions after a certain > idle time? > > Or, what would be the command to kill all non-root processes that can be > places in Cron before backup starts? > Better VERY late than never? Our newsfeed has been down for quite a while and I'm just catching up. Saw a number of good suggestions. As was noted, TMOUT is good, but only for users at a shell prompt. And a script based on "who -u" can be a problem: This command shows terminal idle time but it WILL consider a user who is running a cpu bound job (like a report) with no keyboard activity) to be idle. So it could log them off in the middle of the report. We wrote (and sell ;-) a product called LOGMON. This software monitors the cpu usage for each user, and their child processes. That way we can be sure the user really is idle. It can then send warnings and/or log the user off. You can vary the inactivity time by user, time of day, etc. For details, send a message to logmon@computron.com or visit www.logmon.com Thanks! Randy Styka, randy@computron.com |