Skip to content
This repository has been archived by the owner on Sep 28, 2024. It is now read-only.

Ability to control file transfer permissions #526

Open
Jonesb opened this issue Mar 20, 2018 · 1 comment
Open

Ability to control file transfer permissions #526

Jonesb opened this issue Mar 20, 2018 · 1 comment

Comments

@Jonesb
Copy link

Jonesb commented Mar 20, 2018

Is it possible to control the file creation when using Copy-VMFile against a linux machine. For instance changing the default file permissions when copying to certian locations? Currently everything gets copy down with root permissions, leaving standard users without write access. It would be good to be able to change the deafault permissions for certain locations and even whitelist and blacklist other areas.

@adelino-sdsu
Copy link

This doesn't appear to be a lis-rpms related question.

Depending on the version of Linux, You should be able to use the /etc/bashrc and /etc/profile files to specify the default permissions on file creation using umask.

Source: https://www.cyberciti.biz/tips/understanding-linux-unix-umask-value-usage.html

Using setfacl, you could set default permissions on a specific folder and any newly created sub-folders and files. It may work for what you are attempting to do?

Source: https://askubuntu.com/questions/44534/how-to-set-umask-for-a-specific-folder and https://serverfault.com/questions/458550/setting-per-directory-umask-using-acls

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants