Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 5th February 2004, 04:45 PM
im_ka Offline
Registered User
 
Join Date: Feb 2004
Posts: 1
file manager - super user mode ??

greetz!

i've installed fedora yesterday, and it`s by far the greatest distro i've tried (suse, mandrake, slack, knoppix).

however, i can't find i feature that i've greatly appreciated in other distros:

file manager - super user mode

is there smthg like that (using gnome)? cause it makes it a lot quicker to copy/move/delete files than doing it in terminal.

thx 4 any help!
Reply With Quote
  #2  
Old 6th February 2004, 08:11 AM
mhelios Offline
Retired Community Manager
 
Join Date: Feb 2004
Location: Queensland, AU
Posts: 736
HOWTO: Launching program in GNOME menu with root privileges

There are at least a couple ways to do this. The first is a simple and non-permanent method of running a user program with root privileges. The second makes the privileges permanent and is used for all the standard programs that need to be run as root (such as all those in /sbin, /usr/sbin, etc.).

1) If you have set up your sudoers file and have a working sudo command (recommended), then simple issuing a `sudo <programname>` from a terminal will allow you to run the program with root privileges. Since you're looking for a file manager, you would use `sudo nautilus`, enter the root password and nautilus will opon up in /root with full access to all files/folders.

2) This method uses the program /usr/bin/consolehelper which is the little pop-up box you get when you you run any of the programs in the menu requiring root permissions (such as System Tools -> System Logs). It allows you to simply enter your root password into the box and the program launches as root. It is simply a GUI wrapper to the program /usr/bin/userhelper which is the program behind the scenes doing all the real work.
As an example, here's how you would add an entry for a "super-user" nautilus, the graphical shell for GNOME to require root's password and thus gain full access privileges:

[code:1]
# first copy /usr/bin/nautilus to /usr/sbin/nautilus
$sudo cp /usr/bin/nautilus /usr/sbin/nautilus
# now move /usr/bin/nautilus to an alternative location such as $HOME/bin
$mv /usr/bin/nautilus $HOME/bin

##NOTE: If you move it to $HOME/bin you can still run it with $`nautilus` if you add this location to your PATH. For example my .bashrc file contains:
"PATH=$HOME/bin:$PATH:/usr/local/j2re1.4.2/bin" (w/o quotes). [Adding $HOME/bin to the front of your PATH will be needed otherwise /usr/bin will be searched first and you'll just get a command not found error]##

# Now create a symlink from nautilus to consolehelper
$cd /usr/bin
$sudo ln -s consolehelper nautilus

# The PAM config files must be created for nautilus
$sudo gedit /etc/pam.d/nautilus
# Enter the following and save
------------CUT HERE-------------------------------------------
#%PAM-1.0
auth sufficient pam_rootok.so
auth sufficient pam_timestamp.so
auth required pam_stack.so service=system-auth
session required pam_permit.so
session optional pam_xauth.so
session optional pam_timestamp.so
account required pam_permit.so
-------------------------------------------------------------------

$sudo gedit /etc/security/console.apps/nautilus
# Enter the following and save
------------CUT HERE-------------------------------------------
USER=root
PROGRAM=/usr/sbin/nautilus
SESSION=true
-------------------------------------------------------------------
[/code:1]

Now, running nautilus from the command line or from the GNOME menu -> Home Folder will prompt for your root password.

One final thing you may wish to do is re-add a menu entry for a regular nautilus program. To do this you:
[code:1]
# Edit the menu entry for "Home Folder" to now specify it as the superuser # version
$sudo gedit /usr/share/applications/gnome-nautilus.desktop
-> Change the "Name" item to something like "Home Folder (Super User)" and save.
# Now create a new menu entry for the regular user version
$sudo gedit /usr/share/applications/gnome-nautilus-orig.desktop
# Enter the following and save
------------------CUT HERE------------------------------------------------------
[Desktop Entry]
Encoding=UTF-8
Name=Home Folder
Comment=View your home folder in the Nautilus file manager
Exec=/home/$USER/bin/nautilus
Icon=gnome-home.png
Terminal=false
Type=Application
Categories=Application;Core;X-Red-Hat-Base;
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=nautilus
X-GNOME-Bugzilla-Component=general
X-Gnome-Bugzilla-OtherBinaries=nautilus-adapter;nautilus-content-loser;nautilus-sidebar-loser;nautilus-text-view;nautilus-throbber;



X-Desktop-File-Install-Version=0.3
OnlyShowIn=GNOME;
--------------------------------------------------------------------------------------
[/code:1]
## NOTE: In "Exec", exchange $USER for your username

Now if everything went fine (and I hope it did!), you should now be able to select Menu-> Home Folder and receive the regular non-privileged nautilus window or Menu -> Home Folder (Super User) and be prompted for root's password to reach a nautilus window with full access permissions.

Well that's (finally) it. Feel free to add any corrections.

by mhelios (MH, 2004)
Reply With Quote
  #3  
Old 6th February 2004, 11:39 AM
Ug's Avatar
Ug Offline
Retired Community Manager
 
Join Date: Feb 2004
Posts: 2,999
I thought I ought to issue the standard super user warning:

Do NOT use super user for everything as this is a guaranteed way to fubar your system. And make sure you back everything up that you change when tinkering.
Reply With Quote
  #4  
Old 7th February 2004, 01:05 AM
mhelios Offline
Retired Community Manager
 
Join Date: Feb 2004
Location: Queensland, AU
Posts: 736
...

This is actually the safest way to grant these privileges to a program. As I mention at the top, I recommend people use sudo for all there tasks requiring root. Consolehelper works in much the same way. It uses the session management capabilities of PAM to temporarily grant elevated privileges to the program in question. Note, it's confined only to that GUI shell - not the whole desktop environment. Once the program is closed, the session ends and the regular user permissions are once again in place.

Of course, ug_the_caveman's advice should always be heeded - that is why the way these programs work minimise the potential for messing up any part of the system.

mhelios
Reply With Quote
  #5  
Old 25th February 2006, 11:55 AM
Minaki's Avatar
Minaki Offline
Registered User
 
Join Date: Feb 2006
Posts: 1
gksu

You can use too a gksu tool. it's more simple. It's a tool like gksudo then the Ubuntu distribution use. You just type gksu before the command like : gksu nauthilus.

But I suggest to you do not use the save password possibilities, you will maybe forget that you have a root privilege.

You can donwload at at Dries repository http://dries.ulyssis.org/.

For me the PAM method it's a very good method for adminitrator in enterprise network or something like that and you must use it. But if you are on PC at home you don't to be more royalist then the queen.

Best regards
Reply With Quote
  #6  
Old 31st March 2008, 12:18 PM
nishikant Offline
Registered User
 
Join Date: Mar 2008
Posts: 1
gksu or gksudo is not available for FEDORA. So fedora users can use "kdesu". you can also create a menu shortcut. In command box enter

Quote:
kdesu "nautilus --no-desktop --browser"


and u r done..
Attached Thumbnails
Click image for larger version

Name:	Screenshot.png
Views:	675
Size:	37.8 KB
ID:	15559  

Last edited by nishikant; 31st March 2008 at 12:29 PM.
Reply With Quote
Reply

Tags
file, manager, mode, super, user

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
File Manager in SU mode jpaxtons Using Fedora 2 2nd July 2008 07:43 PM
Konsole in super user mode in kde 4 gala_dragos Alpha - Beta (Fedora 9 Only) 4 9th May 2008 08:55 AM
File Manager (konqueror) Super User Mode Crash (FC6) gadgetwiz EOL (End Of Life) Versions 3 3rd July 2007 03:18 AM
is there a super user file manager ? coachwhip Using Fedora 7 3rd January 2007 10:28 PM
File Manager (Super user only) Beepa Using Fedora 2 13th May 2006 11:49 PM


Current GMT-time: 09:05 (Monday, 20-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat