Bug 671044

Summary: Impossible to use as root by default
Product: [Fedora] Fedora Reporter: Iván Jiménez <icj>
Component: unetbootinAssignee: Susi Lehtola <susi.lehtola>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 14CC: susi.lehtola
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-01-20 09:57:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Iván Jiménez 2011-01-20 02:14:23 UTC
Description of problem:
If unetbootin is run as a normal user, it says it must be root as root with sudo or su -c, but issuing "su -c unetbootin" yields:

**
GLib-GIO:ERROR:gdbusconnection.c:2270:initable_init: assertion failed: (connection->initialization_error == NULL)

which makes it effectively unusable.

Version-Release number of selected component (if applicable):
unetbootin-0-8.494bzr.fc14.x86_64

How reproducible:
always

Steps to Reproduce:
1. install it
2. run with su -c
  
Actual results:
error

Expected results:
unetbootin run as root

Additional info:
A workaround is to add the normal user to sudoers and run it with "sudo unetbootin", in which case it runs fine.

Comment 1 Susi Lehtola 2011-01-20 09:57:08 UTC
You're not using the su command correctly.

Instead of plain "su" use "su -" which also takes into account the login shell parameters.

*** This bug has been marked as a duplicate of bug 658747 ***

Comment 2 Iván Jiménez 2011-01-20 18:10:26 UTC
(In reply to comment #1)
> You're not using the su command correctly.
> 
> Instead of plain "su" use "su -" which also takes into account the login shell
> parameters.
> 
> *** This bug has been marked as a duplicate of bug 658747 ***

You're right, it works using su -. But still there is a bug, because the dialog says it must be run as root with su -c '/usr/bin/unetbootin', but then it aborts with the mentioned error when run with that command. It should say:
su - -c '/usr/bin/unetbootin'

Comment 3 Susi Lehtola 2011-01-20 18:46:07 UTC
OK, reported upstream.

https://bugs.launchpad.net/unetbootin/+bug/705567