rcp error

1 view
Skip to first unread message

Jim Simpson

unread,
Apr 15, 2002, 10:50:18 AM4/15/02
to
I am running openserver5
a user runs a script that contains rcp -r etc etc

I then get an error message rcmd: socket: permission denied

Iknow its something to do with groups or someother dark magic

jim simpson


Jean-Pierre Radley

unread,
Apr 15, 2002, 1:29:50 PM4/15/02
to
Jim Simpson propounded (on Mon, Apr 15, 2002 at 03:50:18PM +0100):

Check TA 107330 and a couple of others on this problem.

--
JP

Jim Simpson

unread,
Apr 15, 2002, 3:37:36 PM4/15/02
to
TA ? what where ?
jim simpson
"Jean-Pierre Radley" <j...@jpr.com> wrote in message
news:20020415172...@jpradley.jpr.com...

Jean-Pierre Radley

unread,
Apr 15, 2002, 4:30:33 PM4/15/02
to
Jim Simpson propounded (on Mon, Apr 15, 2002 at 08:37:36PM +0100):
| TA ? what where ?

The TAs still live at http://stage.caldera.com/ta

--
JP

Jim Simpson

unread,
Apr 16, 2002, 4:28:42 AM4/16/02
to
I have read the TA's still no joy
if I login as user and type in command
rlogin hostname
it logs me in as same user on local machine so I am I right to think the
problem is with the copy bit of rcp rather than the rlogin bit

dazed and confused
Jim Simpson

"Jean-Pierre Radley" <j...@jpr.com> wrote in message

news:20020415203...@jpradley.jpr.com...

Greg M Lee

unread,
Apr 16, 2002, 9:39:13 PM4/16/02
to

Mmmm,
rcp, and rcmd both use the shell port, whilst rlogin uses the login
port. /etc/services should have lines like:
login 513/tcp
shell 514/tcp cmd # no passwords used
and /etc/inetd.conf should have lines like:
shell stream tcp nowait NOLUID /etc/rshd rshd
login stream tcp nowait NOLUID /etc/rlogind rlogind

Does running 'rcmd hostname who' work ?
If so then does 'rcmd hostname "cat file" >file' work ?
If so then you should be able to use something like:
rcmd hostname "find files -print | cpio -oC 1024" | cpio -ivumdC 1024

If none of the above work then go back to the TA but also repeat the
chmod commands for /usr/bin/rcp and /usr/bin/rcmd. In particular
# chown root:bin /usr/bin/rlogin /usr/bin/rcmd /usr/bin/rcp
# chmod 4711 /usr/bin/rlogin /usr/bin/rcmd /usr/bin/rcp

Cheers
-Greg

Reply all
Reply to author
Forward
0 new messages