well this is the debian user forums and here we discuss debian....sorryjollysnowman wrote:I did, and got the same results as in the link I posted. I tried it in CrunchBang 9.04, which is Ubuntu-based.
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
-
- Posts: 461
- Joined: 2010-06-11 05:05
Re: Proper way to open apps as root in X
-
- Posts: 134
- Joined: 2009-08-29 19:42
- Location: Austin, TX
Re: Proper way to open apps as root in X
I can test it on debian later, but I don't think there would be a different implementation of sudo in debian, especially since Ubuntu is debian-based. Either way, I'll report later.AnInkedSoul wrote:well this is the debian user forums and here we discuss debian....sorryjollysnowman wrote:I did, and got the same results as in the link I posted. I tried it in CrunchBang 9.04, which is Ubuntu-based.
AnInkedSoul, I really advise you to be more helpful in your posts. I asked you to elaborate, and you gave me a one word response. I'm not a troll, and I do my best to remain friendly, if a bit dry; I've already had my fair share of Internet debates in a handful of different forums. Providing a meaningless post is the same as not providing one at all. You would do everyone a favor by putting some thought into what you submit.
-
- Posts: 461
- Joined: 2010-06-11 05:05
Re: Proper way to open apps as root in X
I am being concise. Nothing meaningless about it. A sufficient answer is sufficient.
- Jackiebrown
- Posts: 1246
- Joined: 2007-01-02 04:46
- Location: San Antonio, TX
Re: Proper way to open apps as root in X
That happens to me as well. It was a real issue when you use sudo to run an installer and the installer launched the game for you. You had to go back and change the the ownership in your home file (/home/user/.doom3) to yourself unless you wanted to always have to play the game as root.jollysnowman wrote:I did, and got the same results as in the link I posted. I tried it in CrunchBang 9.04, which is Ubuntu-based.
Heck, this happened to me with dolphin once (i ran sudo dolphin before ever running it as a user) and really messed with my kde install. It took me a while to figure out why dolphin wouldn't start after that.
That said, this was in ubuntu for me as well. Maybe it is different for ubuntu since there is no root account for it to use. When I set up sudo in debian, it is for specific programs that I would probably never run as a regular user (synaptic comes to mind.)
Re: Proper way to open apps as root in X
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:jollysnowman wrote:Can you elaborate? As it is, your post doesn't really help.AnInkedSoul wrote:You should rethinkjollysnowman wrote:I thought sudo
Code: Select all
ls -al $(which gksudo)
Debian Sid Laptops:
AMD Athlon(tm) 64 X2 Dual-Core Processor TK-55 / 1.5G
Intel(R) Pentium(R) Dual CPU T2390 @ 1.86GHz / 3G
AMD Athlon(tm) 64 X2 Dual-Core Processor TK-55 / 1.5G
Intel(R) Pentium(R) Dual CPU T2390 @ 1.86GHz / 3G
Re: Proper way to open apps as root in X
It is not just an Ubuntu thing: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)
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
-
- Posts: 461
- Joined: 2010-06-11 05:05
Re: Proper way to open apps as root in X
to clarify.....
Jollysnowman knows all this already....
It is perfectly fine in debian to open graphical apps using sudo.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.
gksu is the actual program whereas gksudo is a symlinkEdit: Also, gksudo exists. I've definitely seen it in Ubuntu.
That page may be accurate in regards to ubuntu but it is not accurate in regards to debian.
Jollysnowman knows all this already....
Re: Proper way to open apps as root in X
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.
Re: Proper way to open apps as root in X
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.
sux is used if one wants to open graphical apps as a different unprivileged user.
- 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
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.
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
Debian - "If you can't apt install something, it isn't useful or doesn't exist"
My Giant Sources.list