LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-05-2010, 09:57 PM   #1
jlavik
LQ Newbie
 
Registered: Aug 2010
Location: St. Paul, Minnesota
Posts: 15

Rep: Reputation: 0
How to perform root level tasks while in GUI?


There must be a way to perform privileged tasks in the Gnome desktop (or actually Nautilus, I guess)...similar to using SUDO in a terminal window.

For example I want to change the rights to a file, but Nautilus tells me I can't because I'm not the owner.

Thanks
 
Old 10-05-2010, 10:11 PM   #2
captainhardway
LQ Newbie
 
Registered: Oct 2010
Distribution: Slackware
Posts: 16

Rep: Reputation: 1
Quote:
Originally Posted by jlavik View Post
There must be a way to perform privileged tasks in the Gnome desktop (or actually Nautilus, I guess)...similar to using SUDO in a terminal window.

For example I want to change the rights to a file, but Nautilus tells me I can't because I'm not the owner.

Thanks
Greetings

Could you not open a terminal window under gnome and sudo chmod your file? Maybe under Accessories Menu?

If not, perhaps alt-ctrl-f7 would give u a terminal?

Otherwise, you will have to start any file manager you are using as root or your username will have to have root priviliges. There are a few options to accomplish this, but I suggest the easy way with the terminal window.

I hope this helps you.

Last edited by captainhardway; 10-05-2010 at 10:17 PM.
 
Old 10-05-2010, 10:57 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mint, OpenBSD
Posts: 11,361
Blog Entries: 12

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
You can open a terminal and sudo nautilus to open Nautilus with root privileges.

You can also sudo su and retain root privileges until you or done doing root stuff and type exit.
 
Old 10-06-2010, 07:19 AM   #4
dixiedancer
Member
 
Registered: Feb 2010
Location: Florida, Occupied CSA
Distribution: Xubuntu
Posts: 98
Blog Entries: 3

Rep: Reputation: 37
The first time I was looking for root privileges in a file manager, I just happened to be using LXDE's file manager, called PCManFM. At the top of the screen I click on Tools > Open Current File as Root. It asks for the root password and then opens a new window with a warning: "Warning! You are in Superuser Mode!" When I'm through making whatever changes, I simply close the "Superuser" window. No terminal at all. I discovered it by "accident" while exploring LXDE. Now it's my favorite file manager.

Keeping it simple,
Robin
 
Old 10-06-2010, 09:04 AM   #5
jlavik
LQ Newbie
 
Registered: Aug 2010
Location: St. Paul, Minnesota
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks all! I wanted to find a way to avoid using the terminal. I know how to do that but don't know the linux commands well enough yet to do what I want.

Dixiedancer's answer was what I was looking for.

If I do SUDO SU in the terminal, does that give me SU privilege in my instances of Nautilus, or would I have to do the SUDO NAUTILUS to accomplish that.

Once again, thanks all!
 
Old 10-06-2010, 09:06 AM   #6
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
You don't have to be afraid of the terminal! See the "LinuxCommand" tutorial in my sig, it's quite beginner friendly.
 
Old 10-06-2010, 09:55 AM   #7
fbobraga
Member
 
Registered: Jul 2010
Location: São Paulo - Brasil
Distribution: Debian 7 / Crunchbang 11
Posts: 229

Rep: Reputation: 41
It's matter of a configuration: in "Gnome's Mint" there is a "Run as administrator" right-click menu item to open/run something as root
 
Old 10-06-2010, 09:58 AM   #8
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,734
Blog Entries: 12

Rep: Reputation: 461Reputation: 461Reputation: 461Reputation: 461Reputation: 461
Alt+F2
gksu nautilus


NAME
gksu - GTK+ frontend for su and sudo

SYNOPSIS
gksu

gksu [-u <user>] [options] <command>

gksudo [-u <user>] [options] <command>

DESCRIPTION
This manual page documents briefly gksu and gksudo

gksu is a frontend to su and gksudo is a frontend to sudo. Their pri‐
mary purpose is to run graphical commands that need root without the
need to run an X terminal emulator and using su directly.

Notice that all the magic is done by the underlying library, libgksu.
Also notice that the library will decide if it should use su or sudo as
backend using the /apps/gksu/sudo-mode gconf key, if you call the gksu
command. You can force the backend by using the gksudo command, or by
using the --sudo-mode and --su-mode options.

If no command is given, the gksu program will display a small window
that allows you to type in a command to be run, and to select what user
the program should be run as. The other options are disregarded, right
now, in this mode.
 
Old 10-06-2010, 11:39 AM   #9
captainhardway
LQ Newbie
 
Registered: Oct 2010
Distribution: Slackware
Posts: 16

Rep: Reputation: 1
Quote:
Originally Posted by jlavik View Post
Thanks all! I wanted to find a way to avoid using the terminal. I know how to do that but don't know the linux commands well enough yet to do what I want.

Dixiedancer's answer was what I was looking for.

If I do SUDO SU in the terminal, does that give me SU privilege in my instances of Nautilus, or would I have to do the SUDO NAUTILUS to accomplish that.

Once again, thanks all!
Greetings again.

After reading exactly what you want to accomplish, I offer you this.

Open a terminal window on you desktop

type, if nautilus is your program name

sudo nautilus &

It should ask for the password and then open up natilus on your desktop with root priviliges. You can do that for any program you wish as long as you have the name. When you exit the program, it is gone, no worries.

I hope this simplifies it for you.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Best books for learning Linux (Not GUI simple tasks) Xenarios Linux - General 5 08-26-2010 09:45 AM
LXer: Scheduling Tasks using Gnome-Scheduler, a GUI for Cron and At LXer Syndicated Linux News 0 08-03-2010 10:30 AM
Tasks to perform when host is connected to internet. venkat_k Red Hat 1 01-30-2009 04:52 AM
GUI test tool to perform widget functions via a text file liguorir Linux - Software 0 01-05-2004 03:30 PM
Perform low level format of a floppy disk in C juby Programming 4 01-09-2003 08:47 PM


All times are GMT -5. The time now is 06:54 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration