canfar / arcade

ALMA Retrieval with the CANFAR Data System
GNU General Public License v3.0
1 stars 2 forks source link

Recursive vchmod on CAVERN #39

Closed drtobybrown closed 3 years ago

drtobybrown commented 3 years ago

It is critical for group data and project sharing that users can change permissions on directories and their subfolders.

drtobybrown commented 3 years ago

If we fix issue opencadc/skaha#117 I think it may be possible work around this by recursing into directories, executing the vchmod command on each file/directory found.

This may be the fastest/easiest way of solving this issue for the beta stage. A better solution should be found in the future.

brianmajor commented 3 years ago

Just wanted to note that you can use regular chmod from within arcade--no need for vchmod.

On Tue, Sep 22, 2020 at 9:34 AM Toby Brown notifications@github.com wrote:

If we fix issue opencadc/skaha#117 https://github.com/opencadc/arcade/issues/117 I think it may be possible work around this by recursing into directories, executing the vchmod command on each file/directory found. https://stackoverflow.com/questions/1333813/recursively-read-folders-and-executes-command-on-each-of-them

This may be the fastest/easiest way of solving this issue for the beta stage. A better solution should be found in the future.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/opencadc/arcade/issues/116#issuecomment-696837254, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB4T4AFP4BTKLBVECCY2OWDSHDGZ3ANCNFSM4RV5ZRYQ .

drtobybrown commented 3 years ago

Tried chmod -R a+rw folder/ and chmod -R 775 folder/ but other users still unable to write to (sub)directories.

yeunga commented 3 years ago

Fixed issue opencadc/skaha#117.

drtobybrown commented 3 years ago

With opencadc/skaha#117 fixed, here is the work around

In cavern/ directory find path_to_dir/ -type d,f -exec vchmod [mode] arc:{} "[group(s)]" \;

This with recurse into directories, executing the vchmod command on each file and directory found

brianmajor commented 3 years ago

Closing with work-around in place.