** Also affects: xdiagnose (Ubuntu Precise)
   Importance: Undecided
       Status: New

** Changed in: xdiagnose (Ubuntu Precise)
       Status: New => Fix Committed

** Changed in: xdiagnose (Ubuntu Quantal)
       Status: Triaged => Fix Committed

** Changed in: xdiagnose (Ubuntu Raring)
       Status: Triaged => Fix Committed

** Changed in: xdiagnose (Ubuntu Precise)
   Importance: Undecided => Medium

** Description changed:

  [Impact]
  xdiagnose requires root permission to run, otherwise it crashes when it tries 
to update the grub configuration.
  
  This is showing up in the automatically collected errors:
  
https://errors.ubuntu.com/bucket/?id=%2Fusr%2Fbin%2Fxdiagnose%3AIOError%3Amove%3Ahandle_enable_apport%3Amove%3Acopy2%3Acopyfile
  
  This shows the issue affects precise, quantal, and raring users, with
  quantal being the most heavily affected.
+ 
+ [Testcase]
+ 1.  Open xterm window
+ 2.  Run `xdiagnose` as a non-root user
+ 3.  Change some grub settings
+ 4.  Click apply
+ 
+ Expected behavior:  At step 2, remind user to run app as superuser.
+ Actual behavior: Crashes at step 4
  
  [Fix]
  A partial fix was added to the .desktop file, which made xdiagnose use 
gksu/pkexec to request root permissions when run from the menus.  However, 
xdiagnose can also be run directly from X terminals.  To address this case it 
needs to check if it's run as root at startup, and if not print an error so the 
user knows to run it with sudo or similar.
  
  [Regression Risk]
  The patch is very trivial and non-invasive so not likely to cause 
regressions.  Also, the application is for diagnostic purposes so the impact of 
a regression in this tool is pretty minor.
  
  [Original Report]
  Hello
  Launching the xdiagnose gui from the icon, it start, accept the checkboxes 
variation but when i click apply it don't require me the password to read the 
grub file.
  Launching it from terminal it return the permission denied error.
  Thanks
  Fabio

-- 
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to xdiagnose in Ubuntu.
https://bugs.launchpad.net/bugs/769419

Title:
  xdiagnose needs root privilege to create /etc/default/grub.bak

To manage notifications about this bug go to:
https://bugs.launchpad.net/xdiagnose/+bug/769419/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~ubuntu-x-swat
Post to     : ubuntu-x-swat@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-x-swat
More help   : https://help.launchpad.net/ListHelp

Reply via email to