IgnorantGuru's Blog

Linux software, news, and tips

Open Current Folder As Root

A note on “Open Current Folder As Root” in PCManFM-Mod:

This Arch/gksudo bug may render the “Open Current Folder As Root” command in pcmanfm and pcmanfm-mod unresponsive because by default the programs use /usr/bin/gksudo

No error will be displayed but the root folder won’t open. You can see the error by manually running:

/usr/bin/gksudo "pcmanfm-mod --no-desktop '/home/'"

sudo: sorry, a password is required to run sudo

On Arch /usr/bin/gksudo is a link to /usr/bin/gksu, so one temporary method to avoid this problem is to force pcmanfm-mod to use gksu by deleting /usr/bin/gksudo (if that’s missing, pcmanfm-mod will use gksu).

Or, you can use the following patch for vfs-utils.c, which causes it to prefer gksu over gksudo:

Download patch
MD5SUM: c5de7aef236136f95c7f9f7978695a84
SHA256SUM: 03031fb7efcd78cac4d50d857441f200a5299c0321671a67a85aba5b87628213

August 23, 2010 - Posted by | Mods, Tips

1 Comment

  1. You can also fix the problem by patching libgksu (http://bugs.gentoo.org/show_bug.cgi?id=290733#c6) or disabling tty_tickets in your /etc/sudoers

    Comment by Steven | August 23, 2010


Sorry, the comment form is closed at this time.

Follow

Get every new post delivered to your Inbox.

Join 123 other followers