rcmd socket error

2007-12-25 10:24:00

The solution was that the permissions for /bin/rsh had been whacked.

The overwhelming suggestion, however, was to switch to ssh and quit

using r commands altogether. I'll look into that shortly.

Thanks to all who responded.

-Michael

> Sun Managers,

>

> I recently "tightened the screws" on security, and inadvertently shot

> myself in the foot. I had a small script that executed an rsh command

> to a remote machine. This script worked fine before the adjustments,

> but gives the following error now:

>

> rcmd: socket: Permission denied.

>

> The content of the script follows.

>

> #!/bin/ksh

> /usr/openwin/bin/xhost remotehost;

> rsh remotehost "DISPLAY=myhost:0 ; export DISPLAY ; /usr/bin/nwadmin"

>

> Does anyone know what change I made that no longer allows this script

> to run? Your help is appreciated. I'll summarize upon completion.

>

> Thanks,

>

> Michael Lightfoot

>

> --

> --------------------------------

> Michael A. Lightfoot

> Unix Systems Administrator

> LinCom Corporation

> Johnson Space Center

> email: mlightfoot@lincom-asg.com

> phone: 281-483-3338

>

Comments

Got something to say?

You must be logged in to post a comment.