- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- remshd: Login incorrect. New Problem
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2005 05:16 PM
05-17-2005 05:16 PM
I know there have been several threads that have answered similar questions, but I believe my situation is a bit different.
I have 2 servers, A and B.
I login as myself, then su to informix user.
On Server A, I can
remsh serverB ls
On Server A, I can
rlogin serverB
On Server B, I can
rlogin serverA
BUT I can't on serverB do
remsh serverA ls
I get the remshd: Login incorrect. message
thx for ur help
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2005 05:30 PM
05-17-2005 05:30 PM
Re: remshd: Login incorrect. New Problem
On serverA, check /var/adm/inetd.sec and see if any services are denied/blocked for serverB.
Regards,
Naveej
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2005 06:17 PM
05-17-2005 06:17 PM
Re: remshd: Login incorrect. New Problem
Only the following is in the /var/adm/inetd.sec file
dtspc allow 127.0.0.1 loopback hwae4640
It is the same on both servers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2005 06:21 PM
05-17-2005 06:21 PM
SolutionAnother reason may be as,
1. you may try with different user from serverB to another user in server A.
2. remshd daemon may be stopped on server A
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2005 06:30 PM
05-17-2005 06:30 PM
Re: remshd: Login incorrect. New Problem
I checked /etc/securetty file on serverA it contained
only console, I pounded it out, ran inetd -c and it still doesn't work.
Do I need to restart something?
I can use root to remsh from serverB to serverA, but when I use
any other users it doesn't work.
How do I check if the remshd daemon is running or not?
Thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2005 06:40 PM
05-17-2005 06:40 PM
Re: remshd: Login incorrect. New Problem
Check /etc/inetd.conf; you should see the line as follows.
shell stream tcp nowait root /usr/lbin/remshd remshd
Make sure there is no '-l' at the end of the line. It would disallow use of .rhosts file for non-privileged users.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2005 06:54 PM
05-17-2005 06:54 PM
Re: remshd: Login incorrect. New Problem
I have the following line in both servers' /etc/inetd.conf
shell stream tcp6 nowait root /usr/lbin/remshd remshd
no -l was found.
Thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2005 07:03 PM
05-17-2005 07:03 PM
Re: remshd: Login incorrect. New Problem
server A:
--/etc/hosts.equiv--
serverB
and vice versa.
.rhosts in root home directory of serverA as,
serverB
and vice versa.
This is a common problem that, user login from one machine to another with different user will make problem as login incorrect.
Check out /etc/hosts.equiv and .rhosts file contents. It will work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2005 07:05 PM
05-17-2005 07:05 PM
Re: remshd: Login incorrect. New Problem
http://www.informatik.uni-frankfurt.de/doc/man/hpux/hosts.equiv.4.html
Read on all EXAMPLES in that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2005 07:13 PM
05-17-2005 07:13 PM
Re: remshd: Login incorrect. New Problem
There are no entries in /etc/hosts.equiv on both servers.
I have .rhosts in / on both servers.
.rhosts on serverA /
serverB root
.rhosts on serverB /
serverA root
I also have .rhosts in /mnt6/informix on both servers.
.rhosts on serverA /mnt6/informix
serverB informix
.rhosts on serverB /mnt6/informix
serverA informix
I have made sure
serverA's /etc/hosts contains serverB info
and vice versa
thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2005 07:28 PM
05-17-2005 07:28 PM
Re: remshd: Login incorrect. New Problem
Anything in /var/adm/syslog/syslog.log?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2005 07:31 PM
05-17-2005 07:31 PM
Re: remshd: Login incorrect. New Problem
Compare /etc/inetd.conf and /etc/services on both servers and check for any differences in the services for remsh and login
Regards,
Naveej
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2005 07:35 PM
05-17-2005 07:35 PM
Re: remshd: Login incorrect. New Problem
Informix user is in /etc/passwd on both servers.
Its password is not locked (*)
I have watched the /var/adm/syslog/syslog.log on serverA
while trying to remsh serverA ls from serverB. No error
or special message came out. Below is a sample of the
/var/adm/syslog/syslog.log on serverA. I did a rlogin, then
tried remsh from serverB to serverA
May 18 13:14:10 serverA inetd[19287]: login/tcp: Connection from serverB (192.
168.x.x) at Wed May 18 13:14:10 2005
May 18 13:14:23 serverA inetd[19306]: shell/tcp: Connection from serverB (192.
168.x.x) at Wed May 18 13:14:23 2005
Thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2005 07:46 PM
05-17-2005 07:46 PM
Re: remshd: Login incorrect. New Problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2005 07:46 PM
05-17-2005 07:46 PM
Re: remshd: Login incorrect. New Problem
login is the same in both /etc/services, /etc/inetd.conf
shell is the same in both /etc/services, /etc/inetd.conf
remsh is not found in both /etc/services
thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2005 07:50 PM
05-17-2005 07:50 PM
Re: remshd: Login incorrect. New Problem
*.debug
# kill -HUP `cat /var/run/syslog.pid`
Now check debug.log for additional remshd messages.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2005 07:55 PM
05-17-2005 07:55 PM
Re: remshd: Login incorrect. New Problem
You have configured on both machines to accept remote execution from root to root or informix to informix.
If you want to make change that informix -> root and root -> informix then,
server A
.rhosts of /
serverB informix
.rhosts of informix
serverB root
and vice versa.
If you want to allow all users to access root account on server A then,
.rhosts of /
serverB
That is all.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2005 08:12 PM
05-17-2005 08:12 PM
Re: remshd: Login incorrect. New Problem
The problem I am having with remsh is from informix user to informix user.
I have added serverB root in the .rhosts file in my informix user home directory
on serverA but that didn't work either.
Dear Ermin Borovac,
How can I re-start syslog? I kill its pid.. does it restart automatically?
thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2005 08:36 PM
05-17-2005 08:36 PM
Re: remshd: Login incorrect. New Problem
What is the permission of .rhosts file of informix. It has to be readable by ALL. Else you will get problem.
chmod 644 .rhosts
It will work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2005 08:41 PM
05-17-2005 08:41 PM
Re: remshd: Login incorrect. New Problem
# kill -HUP `cat /var/run/syslog.pid`
so that syslogd is asked to reconfigure it's configuration. Check out the syslogd running status with ps -ef | grep syslogd or looking into syslog file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2005 08:56 PM
05-17-2005 08:56 PM
Re: remshd: Login incorrect. New Problem
I believe informix directory is NFS mounted on serverA,
how can I check to make sure?
I chmod 777 .rhosts file in the informix home directory on serverA,
and it still doesn't work.
ps -ef | grep syslogd didn't return anything, I think I killed off
the process. How can I restart it?
thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2005 09:28 PM
05-17-2005 09:28 PM
Re: remshd: Login incorrect. New Problem
/etc/init.d/syslog restart
What is your machine configuration? uname -a of serverA and serverB.
Do one check as,
on every .rhosts file on root user and informix only add remote server name only as,
.rhosts
serverB
.rhosts
serverA
Check this. Is it working or not. It will allow all users to do remsh.
keep user permission and 644 permission on .rhosts file.
P.S: Check this without anyother contents in .rhosts file.
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2005 09:50 PM
05-17-2005 09:50 PM
Re: remshd: Login incorrect. New Problem
In hp-ux "/sbin/init.d/syslogd start" to start the syslog deamon.
Immediately after trying the remsh run the below command to find out what user name is passed to ServerA.
# /usr/sbin/acct/fwtmp < /var/adm/btmp
See the last lines. The hostname and user name is logged here. Make sure you have same hostname and username on the .rhosts.
Just a thought.
Regds
TT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2005 01:06 AM
05-18-2005 01:06 AM
Re: remshd: Login incorrect. New Problem
What is the UID of user "informix" on both machines? The UID's must be same.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2005 09:14 PM
05-18-2005 09:14 PM
Re: remshd: Login incorrect. New Problem
I found the problem to be the root directory on serverA had different group and permission then serverB.
serverA's ROOT directory
drwxrwx--- 37 root informix 8192
serverB's ROOT directory
drwxr-xr-x 37 root root 8192
I made the changes to have serverA matches serverB and it works.
Thanks all again.