Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Proper way to open apps as root in X

Share your HowTo, Documentation, Tips and Tricks. Not for support questions!.
Message
Author
User avatar
dbbolton
Posts: 2129
Joined: 2007-06-20 08:17
Location: Iapetus

Re: Proper way to open apps as root in X

#21 Post by dbbolton »

mzilikazi wrote:What he's saying is that gksudo is just a link to the real executable gksu. This is apparently an Ubuntu thing. Check for yourself:

Code: Select all

ls -al $(which gksudo) 
It is not just an Ubuntu thing:

Code: Select all

root@ganymed:~# cat /etc/issue 
Debian GNU/Linux squeeze/sid \n \l

root@ganymed:~# file /usr/bin/gksudo       
/usr/bin/gksudo: symbolic link to `gksu'

# followed by aptitude purge gksu sudo
GitHub | zsh docs in Letter PDF
Telemachus wrote:Put down the CGI.

AnInkedSoul
Posts: 461
Joined: 2010-06-11 05:05

Re: Proper way to open apps as root in X

#22 Post by AnInkedSoul »

to clarify.....
jollysnowman wrote:I thought sudo shouldn't be used for opening applications (as opposed to doing stuff on the command line)? I remember reading somewhere that when sudo opens an application, it uses the user's config settings for that application instead of root's and bad things happen.
It is perfectly fine in debian to open graphical apps using sudo.
Edit: Also, gksudo exists. I've definitely seen it in Ubuntu.
gksu is the actual program whereas gksudo is a symlink
That page may be accurate in regards to ubuntu but it is not accurate in regards to debian.

Jollysnowman knows all this already....

User avatar
slowcoach
Posts: 148
Joined: 2007-05-02 17:34
Location: UK

Re: Proper way to open apps as root in X

#23 Post by slowcoach »

Difference between "su" and "su -" explained http://www.linfo.org/su.html
Currently, British inventors are responsible for over half of all the new inventions in the World.

secipolla
Posts: 1127
Joined: 2010-06-21 14:20

Re: Proper way to open apps as root in X

#24 Post by secipolla »

sux is not needed for the root user. It looks like that's a misconception that came from sidux (maybe it was once needed?).
sux is used if one wants to open graphical apps as a different unprivileged user.

User avatar
craigevil
Posts: 5391
Joined: 2006-09-17 03:17
Location: heaven
Has thanked: 28 times
Been thanked: 39 times

Re: Proper way to open apps as root in X

#25 Post by craigevil »

HOWTO - get kdesu back to normal in KDE4 - http://forums.debian.net/viewtopic.php?f=16&t=40158



This one is actually pretty easy. In a terminal here is what you do:
Anywhere you see ## just after that is instructions you do NOT have to type the text directly AFTER the ## signs,
what you have to type will either be BEFORE the ## on a line or the line will have NO ## signs.

Code: Select all

   ##first type in:
    su

    ##after you hit enter you will see
    Password:         ##<----------- type in your root password here.

    ##Now you will see your prompt change from a $ to a # sign

    ##Don't worry, almost done now...

    ##type:

    ln -s /usr/lib/kde4/libexec/kdesu /usr/bin/kdesu

    ##hit enter, then type:
    exit

    ##You are now back to your regular user in your terminal. Lets test that puppy out!

    kdesu dolphin

    ##The normal kdesu dialog should pop up asking for roots password with the explanation that the program 
    ##dolphin needs root permissions. You can just cancel the dialog box since it was only a test to see if the link
    ##worked.
Raspberry PI 400 Distro: Raspberry Pi OS Base: Debian Sid Kernel: 5.15.69-v8+ aarch64 DE: MATE Ram 4GB
Debian - "If you can't apt install something, it isn't useful or doesn't exist"
My Giant Sources.list

Post Reply