snapcraft run asks for the sudo password without explaining why

Bug #1481499 reported by Leo Arias
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Snapcraft
Fix Released
Medium
Sergio Schvezov

Bug Description

I find it bad when a command I execute as a normal user asks for my sudo password.
When we do this, we should add a message explaining why the password is needed. In this case, because ubuntu-device-flash requires it.

Maybe, it would also be nice to print a warning mentioning that the user should be sure that he obtained snapcraft from an official source.

Tags: first-steps

Related branches

Revision history for this message
Daniel Holbach (dholbach) wrote :

For installing additional packages this is now the case. Are you still experiencing the problem?

Changed in snapcraft:
status: New → Incomplete
tags: added: first-steps
Revision history for this message
Leo Arias (elopio) wrote :

Yes, this is still valid.

I get:

elopio@tangamandapio76:~/workspace/canonical/snapcraft/trunk/examples/godd$ ./../../bin/snapcraft run
Using the following ssh key: /home/elopio/.ssh/id_canonical_rsa
[sudo] password for elopio:

Changed in snapcraft:
status: Incomplete → New
Changed in snapcraft:
milestone: none → 0.2
Changed in snapcraft:
status: New → In Progress
assignee: nobody → Sergio Schvezov (sergiusens)
importance: Undecided → Medium
Changed in snapcraft:
status: In Progress → Fix Committed
Changed in snapcraft:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.