Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants