Disabling an ASCI terminal in AIX versions 3 and 4


 
Thread Tools Search this Thread
Operating Systems AIX Disabling an ASCI terminal in AIX versions 3 and 4
# 1  
Old 03-09-2010
Question Disabling an ASCI terminal in AIX versions 3 and 4

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 Smilie, so I'm afraid to do too much testing without knowing what I am doing exactly (like trying to temporarily rename tty files etc..).
# 2  
Old 03-11-2010
disable login on tty

Yes, you can enable and disable the login attribute for a tty.

To terminate any processes running from tty12:
Code:
# fuser -k /dev/tty12

To disable the login:
Code:
# chdev -l tty12 -a login=disable

To enable login on tty:
Code:
# chdev -l tty12 -a login=enable

edit by bakunin: added code-tags. Please add them yourself next time. Thank you.

Last edited by bakunin; 03-12-2010 at 07:36 AM..
# 3  
Old 03-12-2010
Thank you! Thank you! Thank you!

You just solved a hell of a problem for me!

I'll sleep like a baby tonight!

homeyjoe for president! Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Older versions of the XL C/C++ Evaluation for AIX 5.3

Hello, IBM offers a evaluation version of their XL C/C++ compiler. Unfortunatly v16.1 (from Developerworks) can not be installed on AIX 5.3 (I can not upgrade my old 32 Bit RS/6000 to a later version) and I have not found any older versions on the IBM and Developerworks pages. Is there a... (8 Replies)
Discussion started by: eh2scqw
8 Replies

2. AIX

Can I get some clue on disabling SSLv1, v3 and TLS1.0 on AIX

Hi, We've a requirement to disable the protocols SSLv3, SSL v2 and TLS 1.0. And have TLS 1.2 enabled using AEAD (Authentication Encryption with Associated Data). This is the only information i have, I'm not sure how to proceed, was trying to find information using google. Can you... (6 Replies)
Discussion started by: system.engineer
6 Replies

3. AIX

Disabling entries on inetd.conf (AIX).

Hello, We're working on securing the AIX environment. started with disabling unused services on AIX. Below are the entries which are not commented on my test LPAR (even other LPARs). ntalk dgram udp wait root /usr/sbin/talkd talkd daytime stream tcp nowait root... (1 Reply)
Discussion started by: system.engineer
1 Replies

4. AIX

Disabling SNMP in AIX 7.1

Hi, I am planning to disable SNMP in our AIX LPARs. wanted to see by disabling in a test LPAR. before that, I would like to check disabling this SNMP will impact any of our application or database in anyway. what kind of other software depends on these SNMP daemons ? Can you please let me... (9 Replies)
Discussion started by: system.engineer
9 Replies

5. AIX

AIX 7.1 Login Terminal

Hi there, I am a newbie in AIX. I have reboot the AIX today and then the CDE login screen disappear. :eek:I have reboot several times and still it only shows the terminal (lft0) with only green characters and black screen:confused:. Anyway I can have the CDE login screen back?:confused: Also, as... (5 Replies)
Discussion started by: sunnytai
5 Replies

6. AIX

Disabling SSH direct access for an AIX user

Hello everyone, Can anyone help me please. I want to disable SSH direct access for an AIX user. For example, if I have USER1 and USER2. I want to disactivate direct access for USER2. The user must enter his login (USER1) and his password and then he can do su - USER2 . Thanks, (3 Replies)
Discussion started by: adilyos
3 Replies

7. AIX

apache/tomcat compatibility with AIX versions

Hello, Where can i find the information about the compatibility versions of tomcat with AIX? for example, AIX 5.2 supported tomcat versions?? (1 Reply)
Discussion started by: balareddy
1 Replies

8. Programming

C++ ASCI int values

Hi All, I'm currently fiddling about trying to learn C++ and wrote a little program that outputs the ASCI values for numbers 0-255 but it's got a problem... For the numbers 255 thru 128 it shows a negative number. For numbers 127-0 (my loop decrements) it shows the correct numerical value...... (6 Replies)
Discussion started by: pondlife
6 Replies

9. AIX

Aix terminal download manager

Is there such thing like wget? Because I have telnet (no ssh) on a AIX machine, but I can't transfer a rpm file which I'd like to install. How can I do that? How can I transfer a file on the machine? (11 Replies)
Discussion started by: aixn00b
11 Replies

10. UNIX for Dummies Questions & Answers

Versions of HP-UX or AIX

Can I install a HP-UX or IBM AIX in my home pc?. It is a Intel Pentium 4 of 64 bits. Is there any version for me?. (5 Replies)
Discussion started by: kurt1978
5 Replies
Login or Register to Ask a Question