Sponsored Content
Operating Systems AIX Users can not login with telnet 3004-031 Post 302841201 by rbatte1 on Wednesday 7th of August 2013 05:43:40 AM
Old 08-07-2013
Could this be that you have exhausted the defined pool of terminals. We have an HP-UX server with a similar issue. We increased the number of terminals, but that just delayed things. We ended up finding the old processes that were holding the terminals busy and terminating them Not the neatest bit of coding I ever wrote, but it was years ago. The script (run from /dev/pts) is this:-
Code:
#!/usr/bin/ksh

case `id -u` in
0)      who |cut -f2 -d "/" | cut -f1 -d " " > /tmp/liveterms

        for pid in $(fuser t* 2>&1 | grep -vf /tmp/liveterms | \
                grep -v ": $" | cut -f2- -d" " | tr -d "o")
        do
                echo >> /tmp/killprocs.$$
                echo ${pid} >> /tmp/killprocs.$$
                ps -eaf | grep ${pid} | grep -v grep >> /tmp/killprocs.$$

                kill -9 ${pid}

        done ;;
*)      echo "\n\n\nRunning $0 with sudo"
        sudo $0 ;;
esac

Obviously, you may need to assure yourself with the processes first. Change the kill -9 to echo kill -9 and it won't do any damage. If you are okay with this, then schedule it.

The bit in red shows why we have to run it from /dev/pts. If we were to fully qualify it, then the expansion of /dev/pts/t* exceeded the command line limit.



I hope that this helps,

Robin
Liverpool/Blackburn
UK
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

telnet login

I am having a problem logging into my SUN box. When i telnet to the box, i dont get as far as the login/password bit - instead i have the following appear on my screen: telnetd: could not grant slave pty Any suggestions would be greatly appreciated... Ta Rich (2 Replies)
Discussion started by: colesy
2 Replies

2. Linux

Can Telnet in Linux 8.0 be restricted for users

Hi, I want to create a user and allow its to be able to have telnet session like what you have in the ftp allow and deny. Is this possible Thanx. (3 Replies)
Discussion started by: kayode
3 Replies

3. AIX

Login Error 3004-304

I am trying to log on and get an error "3004-304 You are not allowed to login at this time.". This happens with both "root" and "admin" (the only other user ID on the system). System console or telnet session, doesn't matter. When I reboot the system, which I can only do with the power button since... (0 Replies)
Discussion started by: dino_bekas
0 Replies

4. AIX

Not able to login as normal users through console /telnet/ssh

Hi , I am having problem,users are not able to login through ssh or telnet.Only we can login as root user in console. Restarted telnet and sshd ,no luck. Any ideas. AIX -- 5.2 ML 07 Thanks, MNK (1 Reply)
Discussion started by: mnkfre
1 Replies

5. AIX

Login Error 3004-304 aix 4.3 please help

hello, I am trying to log on and get an error "3004-304 You are not allowed to login at this time.". The server is in production level, works as a cluster under hacmp, the other server took the services but I cannot log into the first one. Please help me because I need to solve the problem as... (2 Replies)
Discussion started by: andwhat
2 Replies

6. UNIX for Dummies Questions & Answers

Automatically login in the telnet from present telnet

Hi, I was writing one script which includes to switch to the another telnet automatically from the present telnet server. I was using rlogin but firstly it takes the same user name of the present telnet and secondly it is prompting for the password. But i want to switch to the another telnet... (2 Replies)
Discussion started by: Prateek
2 Replies

7. HP-UX

telnet login successful ,but ssh can not login

why I can login by telnet using root account but when i use login by ssh using root account it is not successful ,is it different password i am sure ssh service is started (2 Replies)
Discussion started by: alert0919
2 Replies

8. Shell Programming and Scripting

enabling telnet for some users

dear all telnet on our server is disabled for security reasons , if we want to allow telnet for some users , ( maybe 1 or 2 to be able to telnet ) is their any way to do that ?? does anyone have any ideas ? thanks (3 Replies)
Discussion started by: semaan
3 Replies

9. UNIX for Dummies Questions & Answers

Console Login and Telnet

Hopefully my question makes sense, but I was wondering if the telnet service has anything to do with console logins or if they are completely unrelated. So for example, does the /etc/default/login file in UNIX have anything to do with Telnet? So if I want to verify that the root user can't login... (8 Replies)
Discussion started by: ixauditor
8 Replies

10. AIX

3004-312 All available login sessions are in use.

Hello, I have a strange situation here. I am running an AIX6.1 machine and i face a problem when i am trying to login via telnet. When i use my username and password to login to the server i get the following message: 3004-312 All available login sessions are in use. The weird thing is that... (3 Replies)
Discussion started by: omonoiatis9
3 Replies
PTS_SOURCE(1)						       AFS Command Reference						     PTS_SOURCE(1)

NAME
pts_source - Read pts commands from a file SYNOPSIS
pts source [-file] <file name> [-cell] <cell name> [-noauth] [-localauth] [-force] pts so [-f] <file name> [-c] <cell name> [-n] [-l] [-f] DESCRIPTION
The pts source runs commands from a file as if they were typed in pts interactive mode. The command can be run from the command line or interactively. CAUTIONS
Prior to OpenAFS 1.4.5 and OpenAFS 1.5.23, the pts source command was only available on Unix or Linux and when OpenAFS was compiled with the supergroups option (disabled by default). As of OpenAFS 1.4.5 and 1.5.23, it is always available. OPTIONS
pts source takes the following options: -cell <cell name> Names the cell in which to run the command. For more details, see pts(1). -force Enables the command to continue executing as far as possible when errors or other problems occur, rather than halting execution at the first error. -help Prints the online help for this command. All other valid options are ignored. -localauth Constructs a server ticket using a key from the local /etc/openafs/server/KeyFile file. Do not combine this flag with the -cell or -noauth options. For more details, see pts(1). -noauth Assigns the unprivileged identity anonymous to the issuer. For more details, see pts(1). OUTPUT
This command shows the output of each command in the file as if it were run normally. EXAMPLES
Here is an example of using pts source in a pts interactive session: % echo examine admin > /tmp/commands.txt % pts interactive pts> source /tmp/commands.txt Name: admin, id: 1, owner: system:administrators, creator: anonymous, membership: 2, flags: S----, group quota: 20. pts> quit % SEE ALSO
pts(1), pts_interactive(1), pts_quit(1), pts_sleep(1) COPYRIGHT
Copyright 2007 Jason Edgecombe <jason@rampaginggeek.com> This documentation is covered by the BSD License as written in the doc/LICENSE file. This man page was written by Jason Edgecombe for OpenAFS. OpenAFS 2014-04-08 PTS_SOURCE(1)
All times are GMT -4. The time now is 04:05 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy