Bug 4382 - GDU can't find external utilities
Summary: GDU can't find external utilities
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Jani Välimaa
QA Contact:
URL:
Whiteboard:
Keywords: Triaged
Depends on:
Blocks:
 
Reported: 2012-02-02 12:47 CET by Juan Magallon
Modified: 2012-02-05 18:05 CET (History)
1 user (show)

See Also:
Source RPM: udisks2-1.90.0-2.mga2.src.rpm
CVE:
Status comment:


Attachments

Description Juan Magallon 2012-02-02 12:47:25 CET
When trying to erase or format any media (I tried with SD card, and USB thunb drives), I get errors like these:

Error deleting partition /dev/sdi1: Error spawning command-line `parted --script "/dev/sdi" "rm 1"': Failed to execute child process "parted" (No such file or directory) (g-exec-error-quark, 8) (udisks-error-quark, 0)

Error wiping device: Error spawning command-line `wipefs -a /dev/sdi': Failed to execute child process "wipefs" (No such file or directory) (g-exec-error-quark, 8) (udisks-error-quark, 0)

Both utilities are in system:

werewolf:~> which parted wipefs
/usr/sbin/parted
/sbin/wipefs

It seems to have some problems with paths...
Comment 1 Manuel Hiebel 2012-02-02 19:50:13 CET
Hi, thanks for reporting this bug.
Assigned to the package maintainer.

(Please set the status to 'assigned' if you are working on it)

Keywords: (none) => Triaged
Assignee: bugsquad => jani.valimaa

Comment 2 Jani Välimaa 2012-02-04 16:02:29 CET
(In reply to comment #0)
> It seems to have some problems with paths...

Yes, created symlinks to /usr/bin/ and it works. Need to do some more investigation about this one..

Status: NEW => ASSIGNED

Comment 3 Jani Välimaa 2012-02-04 16:57:43 CET
Actually I think the problem comes from udisks2 as g-d-u doesn't call directly wipefs or parted.

CC'ing Funda.

CC: (none) => fundawang
Source RPM: gnome-disk-utility-3.3.90-3.mga2.src.rpm => udisks2-1.90.0-2.mga2.src.rpm

Comment 4 Funda Wang 2012-02-04 17:23:20 CET
I guess we will need to use consolehelper for parted and wipefs to get this problem solved.
Comment 5 Funda Wang 2012-02-04 17:34:28 CET
I've submitted new udisks2, with patch from upstream. Hope it could fix this problem with using consolehelper. The big problem is that parted and wipefs is so dangerous that we might want to regular users to touch it.
Comment 6 Funda Wang 2012-02-04 17:35:47 CET
ah, Sorry, it should read:

I've submitted new udisks2, with patch from upstream. Hope it could fix this
problem without using consolehelper. The big problem is, parted and wipefs are
so dangerous that we might do not want to regular users to touch them.
Comment 7 Jani Välimaa 2012-02-05 18:05:42 CET
It works with new udisks2. So, I'm closing this as fixed.

And what comes to "security problem", it asks roots password if you're trying to format hard disks. User can only format removable devices such as USB-drives without entering root password.

Status: ASSIGNED => RESOLVED
Resolution: (none) => FIXED


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