💻 Software
Change permissions upon uploading with scp
Fresh5 days ago
Mar 15, 2026119846 viewsConfidence Score1%
1%
Problem
I am uploading files to my shell account using scp. As I need different permissions on the server than on my computer, I'd like to have a way to easily change the permissions upon upload without needing to ssh to the account and change them manually.
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Change permissions upon uploading with scp
Low Risk
If you're copying from a windows machine, you can use WinSCP to copy, and it has an option to set the permissions on the copied files after the upload. If not, I think your only choice is to execute a chmod on the server after the upload, which you could do remotely with an ssh command:
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix