VMware Cloud Community
vmwareluverz
Contributor
Contributor
Jump to solution

WinSCP failed to copy permission error?

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.

Reply
0 Kudos
1 Solution

Accepted Solutions
prikryl
Contributor
Contributor
Jump to solution

Reply
0 Kudos
6 Replies
oreeh
Immortal
Immortal
Jump to solution

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
Jump to solution

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
Reply
0 Kudos
dconvery
Champion
Champion
Jump to solution

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"
Reply
0 Kudos
vmwareluverz
Contributor
Contributor
Jump to solution

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?

Reply
0 Kudos
dconvery
Champion
Champion
Jump to solution

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
Jump to solution

See WinSCP FAQ on sudo.

Reply
0 Kudos