Hi, I tried to do some research on this subject, but got nothing conclusive.
I have the following need:
I have different servers with AIX versions 3.2.5 through 4.3.2.
Some of them have two ASCI terminals connected.
I have a shell script that is executed by a user on the main console (let's say tty1), and I need it to be able to disable the other terminal (let's say tty12) temporarily upon execution of the script and reactivate it afterwards.
By disabling, I mean log out users that are using that other terminal (on tty12) and prevent them from logging back in on it or just prevent users from logging in if nobody is logged in.
I need it to be done instantaneously, without a reboot.
To me, the idea seems easy, but is it even possible to do it? If yes, can somebody lighten me up on how it's done?
I saw such commands as disable and enable, but as I found out, in AIX it only applies to printers, not ttys. Also, I don't want to cause any permanent damage, as it's a very busy and important system
, so I'm afraid to do too much testing without knowing what I am doing exactly (like trying to temporarily rename tty files etc..).