rsh not working


 
Thread Tools Search this Thread
Operating Systems AIX rsh not working
# 1  
Old 01-20-2009
rsh not working

Hi,

I am getting the below error while using rsh from other logins in AIX 5.3

rcmd2: socket: The file access permissions do not allow the specified action.

whereas the same is working fine with root login.

I have already defined the host entries in etc/hosts as well as in .rhosts and hosts.equiv file and also check the user permission.



Thanks in Advance

Last edited by viplov; 01-20-2009 at 08:20 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Disk Space Utilization in HTML format working in one environment and not working on the other

Hi Team, I have written the shell script which returns the result of the disk space filesystems which has crossed the threshold limit in HTML Format. Below mentioned is the script which worked perfectly on QA system. df -h | awk -v host=`hostname` ' BEGIN { print "<table border="4"... (13 Replies)
Discussion started by: Harihsun
13 Replies

2. Shell Programming and Scripting

Rsh stops working after a few hundred calls

There's probably a better way to do what I'm doing and if so, let me know an alternative. I have a script that runs rsh for every entry in a txt file to go get the file size off the remote server. I then compare the remote size with a local size. My script worked fine until recently when I... (2 Replies)
Discussion started by: olds97_lss
2 Replies

3. Solaris

rsh is not working

i am using solaris 8. i can access my server through telnet. but not able to access rsh or rlogin. i can rsh from this server to another machine but not from other machine to this machine. How to start rsh service. i have restarted inetd. pkill -HUP inetd. thanks (1 Reply)
Discussion started by: sunnybee
1 Replies

4. Solaris

rsh -n flag not working between sme hosts

Hi there I have a strange scenario whereby I am trying to use the -n flag (or < /dev/null) to the input of between two particular hosts which doesn't seem to work, but is fine if between two other hosts First test (between myhost 1 and 2) -n doesn't return output test@myhost1% rsh... (1 Reply)
Discussion started by: rethink
1 Replies

5. AIX

AIX 5.3 ML10 new install, rsh only partially working

Two boxes we just reloaded to use as a two node HACMP cluster to insure our software is compatible. Install disks we received at our library on 5/2009 AIX 5.3-ML10 For sake of argument names ibmaix1 and ibmaix2 On both: ibmaix1# oslevel -r 5300-10 .rhosts files with 600 permissions... (0 Replies)
Discussion started by: DrKillPatient
0 Replies

6. Solaris

rsh is not working ,error :connection refused

rsh is not working command:rsh targethost -l username command Error:Connection refused I checked on the server rshd was not working. Tried to start by /usr/sbin/in.rshd start # ./in.rshd start rshd: getpeername: Socket operation on non-socket Please help (1 Reply)
Discussion started by: aneita
1 Replies

7. Shell Programming and Scripting

command not working with rsh(remote shell)

Hi, root@air01a>SS7Manager -status This command gives correct output. But when I write this in script and run it on SUNMC (which can connect to air01 and by default login as root). It gives the error "SS7manager not found" or "can not open". Here is the scripts. #!/bin/sh rsh air01a... (4 Replies)
Discussion started by: lastkey
4 Replies

8. AIX

RSH not working

Hi all I have updated my .rhosts file as per the norm, however for some reason on hostA I cannot rsh to hostB. The entries on /.rhosts on hostA are as follows :- hostB + hostB on the other can do rsh without a problem. Any ideas ? :confused: (1 Reply)
Discussion started by: jhansrod
1 Replies

9. Shell Programming and Scripting

Multiple rsh in a script not working

Hi, From one of the unix servers i want execute an rsh command to 5 different servers. i want to go to these servers execute a command and come back. i have a main program which calls a function, where in i use the rsh command. The server name is passed as a parameter to teh function. it is... (3 Replies)
Discussion started by: praphul
3 Replies

10. UNIX for Dummies Questions & Answers

rsh not working

Dear all; I have to Unix servers SUM1 and SUM2 running Reliant Unix 5.45 on both servers i have a system user called "netop". i want netop on SUM1 to execute rsh from SUM1 to SUM2. What i did, i put in the .rhosts file in the home directory of netop on SUM2 the following entry: netop ... (2 Replies)
Discussion started by: bcheaib
2 Replies
Login or Register to Ask a Question
rsh(1M) 						  System Administration Commands						   rsh(1M)

NAME
rsh, restricted_shell - restricted shell command interpreter SYNOPSIS
/usr/lib/rsh [-acefhiknprstuvx] [argument...] DESCRIPTION
rsh is a limiting version of the standard command interpreter sh, used to restrict logins to execution environments whose capabilities are more controlled than those of sh (see sh(1) for complete description and usage). When the shell is invoked, it scans the environment for the value of the environmental variable, SHELL. If it is found and rsh is the file name part of its value, the shell becomes a restricted shell. The actions of rsh are identical to those of sh, except that the following are disallowed: o changing directory (see cd(1)), o setting the value of $PATH, o pecifying path or command names containing /, o redirecting output (> and >>). The restrictions above are enforced after .profile is interpreted. A restricted shell can be invoked in one of the following ways: 1. rsh is the file name part of the last entry in the /etc/passwd file (see passwd(4)); 2. the environment variable SHELL exists and rsh is the file name part of its value; the environment variable SHELL needs to be set in the .login file; 3. the shell is invoked and rsh is the file name part of argument 0; 4. the shell is invoke with the -r option. When a command to be executed is found to be a shell procedure, rsh invokes sh to execute it. Thus, it is possible to provide to the end- user shell procedures that have access to the full power of the standard shell, while imposing a limited menu of commands; this scheme assumes that the end-user does not have write and execute permissions in the same directory. The net effect of these rules is that the writer of the .profile (see profile(4)) has complete control over user actions by performing guaranteed setup actions and leaving the user in an appropriate directory (probably not the login directory). The system administrator often sets up a directory of commands (that is, /usr/rbin) that can be safely invoked by a restricted shell. Some systems also provide a restricted editor, red. EXIT STATUS
Errors detected by the shell, such as syntax errors, cause the shell to return a non-zero exit status. If the shell is being used non- interactively execution of the shell file is abandoned. Otherwise, the shell returns the exit status of the last command executed. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
intro(1), cd(1), login(1), rsh(1), sh(1), exec(2), passwd(4), profile(4), attributes(5) NOTES
The restricted shell, /usr/lib/rsh, should not be confused with the remote shell, /usr/bin/rsh, which is documented in rsh(1). SunOS 5.10 1 Nov 1993 rsh(1M)