WinSCP

Copying files

© 2012 Dennis Leeuw dleeuw at made-it dot com
License: GPLv2 or later

Index

    1. WinSCP mask

WinSCP mask

When one copies files from Windows to Linux (e.g. by using WinSCP), there is a mismatch in rights and users. Copying directories always seems to work fine, even when using ACLs. However file permissions often give problems. There are two scenarios how rights influence the creation of new files:

In a directory with the following ACLs:

user::rwx
group::r-x
group:admin:rwx
mask::rwx
other::---
default:user::rwx
default:group::r-x
default:group:admin:rwx
default:mask::rwx
default:other::---
Setting the rights in winscp to 660 results in the following rights on the transfered file:
user::rw-
group::r-x                      #effective:r--
group:maadmin:rwx               #effective:rw-
mask::rw-
other::---
Setting the rights in winscp to 777 results in:
user::rwx
group::r-x
group:maadmin:rwx
mask::rwx
other::rwx