Mustafa.Yildiz

updated

5 years ago

0

1052

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.

  • Indukr

    6 Posts

    761

    1

    Posted 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
  • Indukr

    6 Posts

    790

    0

    Posted 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

  • 775

    0

    Posted 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?

  • 699

    0

    Posted June 3rd, 2021 01:00

     Hi @Indukr 

    It solves our problem, thank yor for response.