1761330 Members
2966 Online
108901 Solutions
New Discussion юеВ

rlogin invalid argument

 
ricky_1
Frequent Advisor

rlogin invalid argument

Hi all,

I have got a very unique problem on one of my hpux 10.20 server . telnet, rcp, ftp , remsh with interactive shell and remsh with commands work for this server.but if i try to do just remsh then it fails giving me error

"rlogind: /dev/pts/2: Invalid argument."
Connection closed.

I have tried recreating the pts device files but no use, also the server is been rebooted in the mean while but still this problem remains.

I would appreciate if someone can help me on this.

Thanxs and regards.
Believe in Yourself!!
12 REPLIES 12
John Carr_2
Honored Contributor

Re: rlogin invalid argument

Ricky

are you having problems remsh out of the server or into the server ?

cheers
John.
ricky_1
Frequent Advisor

Re: rlogin invalid argument

Hi ,
I have problem logging into server.
Believe in Yourself!!
U.SivaKumar_2
Honored Contributor

Re: rlogin invalid argument

hi,
check your /etc/inetd.conf at rlogind entry for any errors in arguments. for help 'man rlogind'.

regards,
U.SivaKumar
Innovations are made when conventions are broken
John Carr_2
Honored Contributor

Re: rlogin invalid argument

Ricky

do you have an /etc/inetd.conf file containing ?

shell stream tcp nowait root /usr/lbin/remshd remshd


also are you remsh as root or a user ?

cheers
John
John Carr_2
Honored Contributor

Re: rlogin invalid argument

Ricky

I should have asked you this first is the remshd running ?


ps -ef | grep remshd


John
U.SivaKumar_2
Honored Contributor

Re: rlogin invalid argument

hi,

i hope this will solve the problem. Try increasing the value of NSTRPTY kernel parameter.

i assume that your rlogind uses STREAM based
pseudo terminals.

regards,
U.SivaKumar
Innovations are made when conventions are broken
ricky_1
Frequent Advisor

Re: rlogin invalid argument

Hello all,

as i said
1)remsh sh -i and
2)remsh work

so permissions should not be the problem.but still inetd.conf has shell, login entries .

Rgds,
Believe in Yourself!!
Zeev Schultz
Honored Contributor

Re: rlogin invalid argument

Ricky,

First of all,have you tried to rlogin the host?
Remsh (man remsh) with no commands (only host name ) acts as rlogin.

Also,what is your terminal emulation program (xterm,unix shell etc)?
nstrpty kernel parameter is set by default to
60 (sysdef | grep pty),which means 60 concurent pseudoterminal connections.What happens with stream based pseudoterminals -
it's a pair /dev/ptymx (master) and /dev/pts/N (N from 0 to 59 is a slave),is that master releases the slave which does all the work.
Btw,what parameters do you pass to the insf?
So computers don't think yet. At least not chess computers. - Seymour Cray
U.SivaKumar_2
Honored Contributor

Re: rlogin invalid argument

hi,
hp-ux 10.20 non-critical impact:
rlogin/rlogind - internet service enhanced to work with 4-byte EUC (NcEn178)

enhancement description
The rlogin/rlogind Internet service has been enhanced to work with 4-byte EUC (Extended Universal Character set). To support this feature, the pseudo terminal in rlogind now uses a STREAMS-based pty driver. The STREAMS master pty driver is ptm and the device used is /dev/ptmx. The STREAMS slave pty driver is pts and the slave devices used are /dev/pts/number.


This change to rlogind has an important effect on the NSTRPTY tuning parameter of the kernel. Because rlogind now uses the STREAMS-based pseudo terminal, the kernel parameter to be tuned for rlogin pseudo terminals is NSTRPTY, rather than NPTY, which is used for pseudo terminals using the traditional pty driver.

An additional effect of this change is that for rlogin-based pseudo terminals, the output of the tty command will now display /dev/pts/number rather than /dev/ttynumber.

regards,
U.SivaKumar


Innovations are made when conventions are broken