<div dir="ltr">Hi all<div><br></div><div>Many thanks for the replies here -</div><div><br></div><div>As it turned out I just needed to run kinit admin and enter the password, as Net Vent suggested, and that resolved the issue. For that matter, I found I could also simply run su - admin and then run the ipa host-del command and also achieve the same result. </div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 25 September 2014 18:41, Martin Kosek <span dir="ltr"><<a href="mailto:mkosek@redhat.com" target="_blank">mkosek@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 09/25/2014 04:11 AM, Alex Harvey wrote:<br>
> Hi all<br>
><br>
> I'm new to IPA and struggling a bit to automate some tasks.<br>
><br>
> I am unable to delete hosts from the command line although have no problem<br>
> doing this using the GUI, e.g.<br>
><br>
> [root@myipaserver ~]# ipa host-del <a href="http://myhost.example.com" target="_blank">myhost.example.com</a><br>
><br>
> ipa: ERROR: Insufficient access: not allowed to perform this command<br>
><br>
> I guess I need to somehow pass the admin user's username and password?<br>
> However the man page doesn't seem to provide any option for doing this.<br>
><br>
> Thanks<br>
> Alex<br>
<br>
</div></div>Hello Alex,<br>
<br>
I assume you created a non-admin user with some permissions allow deleting a host.<br>
<br>
This error message is thrown when a virtual operation check fails. This is<br>
raised for example when a user is trying to do unathorized operation with<br>
certificates, like if user having host deletion permission does not also have<br>
permission to revoke certificates for deleted users.<br>
<br>
Does the privileged user has "Revoke Certificate" permission assigned through<br>
some privilege/role?<br>
<br>
The mismatch of behavior between CLI and UI is strange. They call the same<br>
code, maybe you run it with different users.<br>
<br>
Also, what is your FreeIPA version?<br>
<span class="HOEnZb"><font color="#888888"><br>
Martin<br>
</font></span></blockquote></div><br></div>