06-24-2011
Unable to copy file using SCP (Input/output & Permission denied error)
Hi,
I am facing issue while using scp. Source & target machines are Linux & HP-UX respectively.
On target machine, if I fire the following command, I get error:
Quote:
bash-2.05# scp jim@source:/builds/20110622/trunk/hpux/abc.jar .
jim@source's password:
abc.jar 100% 33MB 8.2MB/s 10.2MB/s 00:04
scp: /builds/20110622/trunk/hpux/abc.jar: Input/output error
Now if I try scp on another file, which is on the same source machine, it works fine.
Quote:
bash-2.05# scp jim@source:/builds/20110622/trunk/linux/xyz.jar .
jim@source's password:
xyz.jar 100% 15MB 7.5MB/s 8.4MB/s 00:02
bash-2.05#
All directories and subdirectories for both the source files have same permissions. Even the source files themselves have identical permissions set. The target location is also the same. Still, I am getting error for one file, and not for the other.
One thing to be noted is that the error description changes after I get the above input/output error. On second (and further attempts) unsuccessful try, I get the following error message:
Quote:
bash-2.05# scp jim@source:/builds/20110622/trunk/hpux/abc.jar .
jim@source's password:
abc.jar 100% 33MB 8.2MB/s 10.2MB/s 00:04
scp: /builds/20110622/trunk/hpux/abc.jar: Permission denied
Another thing to be noted is that this copy operation was working fine few days back. Suddenly, the user has started getting this error. I understand that something might have changed but I am really finding it hard to figure that out.
Also, both the source files get copied successfully when I use scp with some other user's credential.
Any help would really be appreciated.
Thanks,
Gaurav
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am very new to Unix. We have a script that will remove files from a directory. The account removing the files has the same permissions as the directory the files are located. We have logged in as the account and deleted the files from that directory but when we run the script with the account... (7 Replies)
Discussion started by: Cech2002
7 Replies
2. UNIX for Advanced & Expert Users
When I do a 'cd /appl' and issue 'ls -al' command, I get the following error for .. directory.
./..: Permission denied
But still I get a listing of other directories under /appl.
Also, if I give 'man' for any command under this /appl folder, I get the following error:
... (3 Replies)
Discussion started by: Deepa
3 Replies
3. Shell Programming and Scripting
When I try to run xterm at a command prompt in solaris 2.5.1, i'm getting a permission denied error. But the directory and user permissions look ok, they are part of a users group and then also root,sys,adm so what gives? Any ideas? Thanks! (1 Reply)
Discussion started by: kymberm
1 Replies
4. UNIX for Advanced & Expert Users
Hi People
I am getting this error Couldn't canonicalise: Permission denied. Anyone knows what does this error mean ? It all started when my team members were testing Sftp functions on some directories and they were hitting directory no found errors within their scripts.
So when we enquired... (8 Replies)
Discussion started by: wilsontan
8 Replies
5. OS X (Apple)
Hello,
I am using Tiger 10.4.11
I am trying out the GIMP, so I installed the X11 package from "Optional Installs" on the cd.
Whenever I open X11, I get an error:
xterm: could not exec /dev/null: Permission denied
I have chmodded /dev/null to 777, as well as the /tmp directory.
I deleted... (2 Replies)
Discussion started by: Ricardo-san
2 Replies
6. UNIX for Dummies Questions & Answers
Hi All,
I am working on Solaris Sparc 9 and I developed application and in that I want to open any file when any action is happened but when I am trying to do the same.I am getting the error --
"Error launching /test.txt", "", "Process.execAndWait",
"java.io.IOException: Cannot run... (0 Replies)
Discussion started by: smartgupta
0 Replies
7. Solaris
Hi,
i am trying to remote copy from a guest domain to primary domain , i can use scp but i can't use rcp ...I installed Ldom and created guest domains.. as you know Jass has been installed with ldom too and some services has been disabled by Jass ... i create .rhosts and edit /etc/hosts file ,... (3 Replies)
Discussion started by: baykan
3 Replies
8. UNIX for Dummies Questions & Answers
Hello,
I was trying a perl-cgi tutorial and saving the data from online form to a file named (guests.txt). I am using the localhost port 80 for practice.
My page file "guestbook.html" is working as I saw the online form. After filled out the blanks and submit, I was expecting to see the result... (3 Replies)
Discussion started by: yifangt
3 Replies
9. UNIX for Dummies Questions & Answers
Team,
we use below command to store the contents in a logfile.
cat a.txt > a.log
a.txt content is
123
345
Is there any options available to store the command used also?
for eg a.log may show as
cat a.txt
123
345 (5 Replies)
Discussion started by: sid2013
5 Replies
10. Shell Programming and Scripting
Hello,
I am trying to stream lines written into file. When first source is down, I expect the code to swap to second line and run it.
Script below works as usual and it prints out each line of the input file (s.txt):
#!/bin/bash
while read -r line;
do
echo "$line"
done <"$1"
exit 0Output... (12 Replies)
Discussion started by: baris35
12 Replies