tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY:rcp
@ 1999-06-19 10:42 Stan Robinson
  0 siblings, 0 replies; 2+ messages in thread
From: Stan Robinson @ 1999-06-19 10:42 UTC (permalink / raw)
  To: tru64-unix-managers

Everyone who responded were basically correct.  Frank's input was first so
i'll list his response

original question was:
Hello managers.  This is probably something simple but here goes. I
received
the error msg "stty: tcgetattr: Permission denied" while attempting a
remote
copy(rcp).  
The  ".rhosts"  on local & remote are  set "+".  Thanks in advance.

*******************************************************


Frank:
The target account probably has something like

stty erase   # or any other stty option

in it's .profile or .login,  .cshrc,  or some other "dot" file executed by
the shell at login.  Stty,  since it controls terminal attributes,  assumes
that it is connected to a terminal.  This is not the case during an rcp job.
The fix is either to remove stty commands from the .profile (or whatever)
file,  or to modify the file to run them only if the shell is connected to a
terminal.  In the case of Bourne or Korn shells,  you can do this by taking
advantage of the fact that the variable PS1 is only defined if the shell is
connected to a terminal.  Just surround any terminal attribute manipulating
program with an "if" statement that checks PS1:

if [ "$PS1" ]
then
	stty option option etc.
	tset option option etc.
fi

Special thanks the following for responding quickly.
Donald Maner
Frank Wortner [frank@bondnet.com]
Alan Angulo [alan@esu.edu]
aad@nw.verio.net
Roger.Picard@compaq.com

Stan Robinson
Systems Engineering
800-598-8491

^ permalink raw reply	[flat|nested] 2+ messages in thread

* SUMMARY: rcp
@ 2000-10-23 20:51 Holmes, Tully
  0 siblings, 0 replies; 2+ messages in thread
From: Holmes, Tully @ 2000-10-23 20:51 UTC (permalink / raw)
  To: tru64-unix-managers

I earlier had the following error with the following command I executed on
ferret.wcc.edu:

# /> rcp -pr /raid/datatel16 eagles.wcc.edu:/raid
Permission denied.

The solution was to create a .rhosts file in root on eagles.wcc.edu with a
"ferret.wcc.edu" entry.  I also found the ferret entry in eagle's /etc/hosts
was incorrectly misspelled as:

x.x.x.x  ferret.wcc.ed  ferret

so I corrected the entry to:

x.x.x.x  ferret.wcc.edu  ferret


Thanks much for the assistance.


===============================
Tully Holmes
Systems Administrator
Wyoming Community College Commission
2020 Carey Avenue 8th Floor
Cheyenne, WY  82002
(307)-777-6832
FAX: (307)-777-6567
tholmes@commission.wcc.edu
===============================

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-10-23 20:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-06-19 10:42 SUMMARY:rcp Stan Robinson
  -- strict thread matches above, loose matches on Subject: below --
2000-10-23 20:51 SUMMARY: rcp Holmes, Tully

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox