Start a Conversation

Solved!

Go to Solution

906

May 28th, 2021 05:00

powerscale ansible 1.1 remove everyone permission

Hi all, i am trying to automatize our powerscale enviroment with ansible and i need to delete default everyone permission. Is there any way to delete this permission?

Thanks.

6 Posts

May 31st, 2021 04:00

Yes @Mustafa.Yildiz .

We can pass permission_type: "Deny" to revoke access. This can be done using module 'dellemc.powerscale.smb'.

Following is a sample playbook task:

- name: Modify ldap user permission for a non system access zone SMB share
dellemc_powerscale_smb:
onefs_host: "{ {onefs_host}}"
verify_ssl: "{ {verify_ssl}}"
api_user: "{ {api_user}}"
api_password: "{ {api_password}}"
share_name: "{ {name}}"
access_zone: "{ {non_system_access_zone}}"
permissions:
- user_name: '{ {non_system_az_ldap_user}}'
permission: "write"
permission_type: "deny"
provider_type: "ldap"
- group_name: '{ {non_system_az_ldap_group}}'
permission: "read"
permission_type: "deny"
provider_type: "ldap"
- wellknown: "everyone"
permission: "full"
permission_type: "deny"
provider_type: "ldap"
state: "{ {state_present}}"
 
Please give it a try and let us know if this helps.
 
Thanks
Rajendra

6 Posts

May 30th, 2021 23:00

Hi @Mustafa.Yildiz ,

Thanks for initiating this discussion. To take it further, are there any specific components for which you are looking for this requirement like  accesszones, smb etc ?

Thanks

Rajendra

May 31st, 2021 00:00

Hi @Indukr 

 

Thanks for your response. I am trying to delete default smb share permission, is there a way to do this with ansible?

June 3rd, 2021 01:00

 Hi @Indukr 

It solves our problem, thank yor for response.

No Events found!

Top