vmwareluverz
Contributor
Contributor

WinSCP failed to copy permission error?

Jump to solution

i'm having issue using WinSCP to copy files to root folders using generic or sudo accounts. i was able to copy files to generic user folders and sudo but can't copy to root/var/updates folder for instance. i think it ties to permission issue.

i have disable root ssh login and using sudo for alternatives but want to copy files to / folder for patches and upgrades etc... any advice on this how to bypass it.

0 Kudos
1 Solution

Accepted Solutions
prikryl
Contributor
Contributor
0 Kudos
6 Replies
oreeh
Immortal
Immortal

A normal user doesn't have the required permission and WinSCP won't execute the sudo part for you.

So either copy the files to a temporary folder and move them to the desired folder afterwards or enable root logins (not recommended!).

Yattong
Expert
Expert

Hey,

You can use another product called Veeam FastSCP, which can be configured to bypass permission problems.

Its a bit faster too.



Good Luck

~y

If you found this or any other answer useful please consider the use of the Helpful or correct buttons to award points ~y
0 Kudos
dconvery
Champion
Champion

You also need to disable the resume feature...

Dave Convery, VCDX-DCV #20 ** http://www.tech-tap.com ** http://twitter.com/dconvery ** "Careful. We don't want to learn from this." -Bill Watterson, "Calvin and Hobbes"
0 Kudos
vmwareluverz
Contributor
Contributor

for some reasons i'm not able to copy both using winscp and fastscp as mentioned.....i was able to copy to my existing logon accounts folders but not / or /var/updates or /tmp folder Smiley Sad if i enabled root ssh logon than it's fine but disable root ssh logon no ways i can get it to copy to where i wanted unless move it to tempary location and move again using root. isn't there any choice or solution betweens switch rootremotelogon (no->yes) all the times when needed?

0 Kudos
dconvery
Champion
Champion

something is up with the user account. You should be able to write to /tmp. That's how I always do it. Then su or sudo and move it to where you want it. The other thing you can do is copy the files to a vmfs partition if you have VC 2.5 installed....

Dave

Dave Convery, VCDX-DCV #20 ** http://www.tech-tap.com ** http://twitter.com/dconvery ** "Careful. We don't want to learn from this." -Bill Watterson, "Calvin and Hobbes"
prikryl
Contributor
Contributor
0 Kudos