-
Notifications
You must be signed in to change notification settings - Fork 67
sudo/root access for cf dev destroy
#190
Comments
We have created an issue in Pivotal Tracker to manage this. Unfortunately, the Pivotal Tracker project is private so you may be unable to view the contents of the story. The labels on this github issue will be updated when the story is started. |
I just found this on https://docs.pivotal.io/pcf-dev/configuring.html
I did not setup any certificates (to my knowledge), so the password prompt should not be given. |
@C-Otto does the VM fail to be destroyed? We do attempt to run commands using sudo but we should be ignoring any error that occurs and continuing to destroy. The reason for needing sudo access is the way certificates are stored on linux. When we go to destroy the VM, we have no way of knowing if the PCF Dev certs have been added to your cert store. So we always run If you just run |
@mdelillo I did not try (and right now I can't reproduce). But I think the mere fact that a root/sudo access is prompted without any need is confusing for people - especially those who do not have root access and were able to start/use PCFDev nevertheless. Could you remember if certificates were added (presumably requiring root access) and, if this is not the case, do not try to remove them? If done like that, the prompt would disappear. As I now understand the issue, I see that it is quite minor - maybe it suffices to add an explanation to the output of |
Is there a reason we can't figure out if our certificate is installed without requiring root access or storing state? This seems like it would be fairly straightforward. (As a side note, we should probably detect if |
From what I remember, we had trouble putting the certificate in an accessible place (such as There may be a better way of adding/removing the certs, but we couldn't find anything that worked for most distros aside from commands like |
I see. What about "Would you like to scan for PCFDev certificates and remove them? (Requires sudo with root access) [Y/n]"? |
This issue is no longer applicable to the latest iteration of CF Dev. |
On my machine I'm allowed to start and use PCF Dev as a non-root user. Only when I want to run
cf dev destroy
, I need root access usingsudo
. On my particular machine I am root, butsudo
was not setup for my user (which I changed).In general, I'd like PCF Dev to either not need root access, or communicate this before creating the VM.
The text was updated successfully, but these errors were encountered: