LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 11-26-2014, 04:30 AM   #1
andwan0
LQ Newbie
 
Registered: Jan 2009
Posts: 22

Rep: Reputation: 0
Quick Question: root/sudo enabled File Browser & Folder Diff/Compare


Just started using Debian on VirtualBox (using the pre-made image from VirtualBox also).

It's quite good. I can use apt-get or synaptic to update/download packages.

Just quick question, how can I run the File Browser (from menu Applications, System Tools) as sudo/root without logging in as root?

Also, is there a nice folder diff/compare tool... like I right-click on one folder to "Select Left Compare"... then right-click another folder to "Select Right Compare"?
 
Old 11-26-2014, 02:10 PM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by andwan0 View Post
Just quick question, how can I run the File Browser (from menu Applications, System Tools) as sudo/root without logging in as root?
you can create a custom .desktop file in /usr/share/desktop that starts your file manager (nautilus?) via e.g. gksu.
 
Old 11-27-2014, 10:34 PM   #3
Cityscape
Member
 
Registered: Jan 2010
Location: British Columbia
Distribution: Debian 8
Posts: 140

Rep: Reputation: 15
You can run almost any application as root by running the command "gksudo application." So for example; Nautilus file manager it'd be "gksudo nautilus" and pcmanfm it'd be "gksudo pcmanfm." Or gksu if sudo isn't installed on your system.

You can create a launcher for it in many places, just use that command for the launcher.

If you use Nautilus you might try the package nautilus-compare or the package kompare.
 
Old 11-27-2014, 10:59 PM   #4
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
gksu will ask you for your password or the password for root (administrative password).

gksu is also not real well supported development wise now. Been pretty much abandoned for authentication and is no longer installed by default.

The preferred command uses polkit for authentication and is "pkexec". That should work in a command for any launcher or custom menu entry with any DE as installed by default.

I would give you an example of a launch command but I am a grumpy geezer and, in spite of the above caution, I install gksu and use it.

I am going to be reviewing this policy though because a recent package upgrade for polkit made me go look at the config file;
/etc/polkit-1

I found it was quite different than the last time I looked at it (2+ years). At that time there were user configurable entries for each application using it for authentication. You could easily change the authentication from "admin" to "none" for anything. This struck me as unhygenic security wise. This was plastered all over the web particularly one the Ubuntu Forums.

Now those are not there and if you want to change the configuration you need to hunt up the proper wording and syntax to do so. This strikes me as a big improvement and has the advantage of being in a currently supported authentication agent.

If I remember correctly, and if you create a launcher for, say, synaptic or gparted you should be able to see the command that uses, the command is very similar to that used if you are using gksu.
 
Old 11-28-2014, 12:28 AM   #5
Cityscape
Member
 
Registered: Jan 2010
Location: British Columbia
Distribution: Debian 8
Posts: 140

Rep: Reputation: 15
Great information widget, thanks for posting!

Quote:
Originally Posted by widget View Post
gksu is also not real well supported development wise now. Been pretty much abandoned for authentication and is no longer installed by default.
Just in reply to this, gksu actually is installed by default on my installation of Debian with Mate desktop. It is also installed by default on Linux Mint I know.

Quote:
Originally Posted by widget View Post
If I remember correctly, and if you create a launcher for, say, synaptic or gparted you should be able to see the command that uses, the command is very similar to that used if you are using gksu.
I took a look at my launchers and they are "synaptic-pkexec" and "gparted-pkexec".
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to compare only the file names between two directories? (diff?) SparceMatrix Linux - General 11 09-24-2013 01:39 PM
How to compare timestamp of same file residing in two diff directories prasenjit.patra AIX 1 10-21-2009 04:45 PM
Recursive diff ( File compare ) script sharathkv25 Programming 5 02-22-2007 08:39 AM
mass file compare or diff mijohnst Linux - Software 11 01-27-2006 06:32 AM
Problem: Root enabled, sudo disabled Conjurer Ubuntu 4 01-15-2006 12:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 01:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration