SFTP client needs setstat.
Issue
- The sftp client "Transmit" is getting error message "“Could not change attributes” when uploading file.
The error is the result of a Transmit feature called Safe Save that writes a temporary file to the remote server, then renames it once it’s done transferring. It also attempts to set the modification date to match the original file, which doesn’t seem to be supported by your server. Confusingly, the error message just says “Could not change attributes” — the modification date is the attribute it’s referring to, rather than user permissions on the file.
The good news is your files are being uploaded and saved. The bad news is this error message will pop up each time you upload a file to this server. Disabling the Safe Save feature isn’t currently possible, I’m afraid, but we’re looking into making it an option in an upcoming update to Transmit.
Transmit uses the setstat command to modify the last time the file was written to, which is a pretty standard command on most servers. You may want to get in touch with the folks there to see why your account isn’t able or doesn't have permission to run setstat against your files. If they can grant this, the error should go away automatically.
Environment
- Red Hat Enterprise Linux
- sftp
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
