Timeline for How can I copy files from remote to local with a specific active group?
Current License: CC BY-SA 4.0
3 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 28, 2021 at 7:23 | comment | added | FelixJN |
Yes. The set GID-bit will ensure that independently of the user's (active) group the actual group of the file will be used for any commands. I hereby assumed that a/b/c already is owned by group abc, though. If not you would need to change the group accordingly (chgrp -R abc /a/b/c). Again: the chmod command would only be run once and then persist. I.e. no need to run it with every scp.
|
|
| Jun 28, 2021 at 7:13 | comment | added | vesii |
So basically you are saying, I need to run ssh <hostname> chmod g+s abc -R /a/b/c and then scp?
|
|
| Jun 26, 2021 at 14:43 | history | answered | FelixJN | CC BY-SA 4.0 |