Bug 671044 - Impossible to use as root by default
Summary: Impossible to use as root by default
Keywords:
Status: CLOSED DUPLICATE of bug 658747
Alias: None
Product: Fedora
Classification: Fedora
Component: unetbootin
Version: 14
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: ---
Assignee: Susi Lehtola
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-20 02:14 UTC by Iván Jiménez
Modified: 2011-01-20 18:46 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-01-20 09:57:08 UTC
Type: ---


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.