Results 1 to 3 of 3

Thread: Opening an application as root

  1. #1

    Default Opening an application as root

    I run GNOME and i want to open a file using gedit as root. I just want it as a shortcut on my desktop panel - so i guess a command or a script should do it. I tried the 'sudo' command but it didn't work. How can i do it?

  2. #2

    Default Re: Opening an application as root

    Never mind. I got the answer in the command
    Code:
    xdg-su -u root -c "gedit <file name>"
    .

    Works great !

    So the tip goes to the others probably

  3. #3
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,487
    Blog Entries
    15

    Default Re: Opening an application as root

    Quote Originally Posted by ddas4
    Never mind. I got the answer in the command
    Code:
    --------------------
    xdg-su -u root -c "gedit <file name>"
    --------------------
    Hi
    An easier one is;

    Code:
    gnomesu gedit <filename>
    --
    Cheers Malcolm (Linux Counter #276890)
    SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.37-0.1-default
    up 3:57, 2 users, load average: 0.47, 0.51, 0.32
    GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.18


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •