I added a user to a group and set the file and dir content to 775. When i use winscp to modify a file it complains it cant set the timestamp bc of a permission error. But it is able to update the file i edit. Why? details on how i set the user is here but i dont think anyone needs to read it Why cant a group member modify a file in a group he is part of?
Linux timestamp permission error with winscp
debianfile-permissionslinuxtimestampwinscp
Related Topic
- Linux – Set default permissions for new files (Linux)
- Linux – How to allow multiple people to change mtime -timestamp of a file through sftp
- Linux – group permission not working
- Ubuntu – Getting “Received too large SFTP packet” error when connecting with root account to the server via WinSCP
- Nginx doesn’t have permission to access files with the same ownership
- Linux Permissions – How to Troubleshoot ‘Permission Denied’ Errors in Linux
Best Answer
WinSCP tries to 'preserve time stamp' by default. Some unix systems do not like letting users that don't own a file to change permissions or timestamps even if they have write access, for some strange reason.
To fix this error I went to
WinSCP Options > Preferences > Transfer
then edited theDefault
and uncheckedPreserve timestamp
.This, I believe, leaves you with the functionality that when a file is modified the timestamp is updated, which makes sense I guess.