LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-26-2009, 12:59 PM   #1
fedix
Member
 
Registered: Oct 2005
Location: Mpumalanga, South Africa
Distribution: Fedora / CentOS 5 / Ubuntu
Posts: 103

Rep: Reputation: 17
Run as


Is there a way to run a GUI file manager as su or root? Alternativel, how do I del a whole directory and all its files and sub directories?

I'm using Fedora 11

Regards
 
Old 11-26-2009, 01:30 PM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Open up a command prompt as root, cd to the directory above the directory you want to remove and rm -fr <name of directory you want to remove>.

Take care, though; making a mistake when running rm -fr as root has got many of us in trouble!
 
Old 11-26-2009, 01:37 PM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,880

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
If the directory and files you want to delete are in your home directory, use 'rm -rf /path/to/directory' to delete them (in a terminal). If you su to root, use the same command to delete an unwanted directory anywhere in the filesystem.

NOTE: Using su to delete directories outside your home directory is is very risky. Any mis-typed command could make the system unbootable.

If you are using the KDE environment, 'kdesu konqueror' will open konqueror with root privileges. Be very careful deleting directories this way. Be sure you have a recent backup ready to restore. Any typo could cause you a lot of grief.
 
Old 11-26-2009, 04:21 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,859

Rep: Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301
su mc
sudo mc
 
Old 11-26-2009, 05:49 PM   #5
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
Assuming Gnome: Open a terminal, su -(su space dash), type nautilus and hit enter. You are now running as root with all it's powers(be careful).

Quote:
[fred@localhost ~]$ su -
Password:
[root@localhost ~]# nautilus
Initializing nautilus-open-terminal extension

Last edited by lazlow; 11-26-2009 at 05:51 PM.
 
Old 11-27-2009, 12:52 AM   #6
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Quote:
Originally Posted by bigrigdriver View Post
Any typo could cause you a lot of grief.
True, but let us not exaggerate the danger; many of us do it regularly without problem. It has been said that it is more dangerous to run a GUI with root privileges (but I have not seen the reasons explained).
 
Old 11-27-2009, 03:26 AM   #7
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,453
Blog Entries: 55

Rep: Reputation: Disabled
I thought it was:
for Gnome: gksu or gksudo whatever.
for KDE: kdesu or kdesudo whatever.

Last edited by brianL; 11-27-2009 at 03:27 AM.
 
  


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
How to enter graphical mode (run level 5) command line (run lenel 3) edmondgyampoh Linux - Newbie 3 05-15-2009 06:33 PM
trying to fix xwindows or just run command line... changing run levels dave247 Debian 2 11-18-2008 06:11 PM
I run Fedora 9 and I boot from USB, how I run at startup Firewall and antivirus? gginis Linux - Software 3 06-08-2008 03:19 AM
Is a script, run at boot time from init.d, run with root authority? tmbrwolf53 Linux - Server 2 03-31-2007 08:15 PM
Cannot get NVIDIA-Linux-x86_64-1.0-6629-pkg2.run to run properly doctorwebbox Linux - Hardware 0 02-06-2005 06:18 AM


All times are GMT -5. The time now is 12:23 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