In linux for each of the project the mount is assigned to a group and only members of that group can access it. What is the best way for every new project we can access the mount with a newgrp "groupName", either this can set as a global variable like currentShow and the value can be used to switch group and execute the tank scripts. Currently shotgun fails when we run create folders. The server we are using is https://grid-animation.shotgunstudio.com/.
Error :- (Permission denied as its not is correct group)
ERROR: Error when creating folders!
[Errno 13] Permission denied: '/srv/projects/ziggy/library'
The current environment is shotgun_task.
File "/srv/pipeline/grid/thirdParty/tank/ziggy/studio/install/apps/app_store/tk-shotgun-folders/v0.1.5/app.py", line 87, in create_folders
entities_processed = self.tank.create_filesystem_structure(entity_type, entity_ids)
File "/srv/pipeline/grid/thirdParty/tank/ziggy/studio/install/core/python/tank/api.py", line 483, in create_filesystem_structure
File "/srv/pipeline/grid/thirdParty/tank/ziggy/studio/install/core/python/tank/folder/operations.py", line 203, in process_filesystem_structure
folders_created = io_receiver.execute_folder_creation()
File "/srv/pipeline/grid/thirdParty/tank/ziggy/studio/install/core/python/tank/folder/folder_io.py", line 73, in execute_folder_creation
File "/srv/pipeline/grid/thirdParty/tank/ziggy/studio/install/core/python/tank/api.py", line 519, in execute_hook
return self.pipeline_configuration.execute_hook(hook_name, parent=self, **kwargs)
File "/srv/pipeline/grid/thirdParty/tank/ziggy/studio/install/core/python/tank/pipelineconfig.py", line 549, in execute_hook
return hook.execute_hook(hook_path, parent, **kwargs)
File "/srv/pipeline/grid/thirdParty/tank/ziggy/studio/install/core/python/tank/hook.py", line 120, in execute_hook
return execute_hook_method([hook_path], parent, None, **kwargs)
File "/srv/pipeline/grid/thirdParty/tank/ziggy/studio/install/core/python/tank/hook.py", line 187, in execute_hook_method
ret_val = hook_method(**kwargs)
File "/srv/pipeline/grid/thirdParty/tank/ziggy/studio/install/core/hooks/process_folder_creation.py", line 102, in execute
File "/usr/lib/python2.7/os.py", line 157, in makedirs