scp doesn't apply umask for the files copied
This document (7010246) is provided subject to the disclaimer at the end of this document.
In testing, with a pair of servers where files are copied from a source server to a destination server, the file mode as dictated by a umask of 0002 in the local user's .bashrc file would copy files with a mode of 644. In the production environment with the same configuration, the copied files have a mode of 644 instead of 644.
This has been reported to development.
WORKAROUND: As documented in the man page, the mode will be preserved from source
to destination with an scp copy by using the -p option.
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:7010246
- Creation Date: 02-Mar-2012
- Modified Date:03-Mar-2020
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: firstname.lastname@example.org