Jul 26, 2025 - 09:43 PMDeutsch | English
Hello unlogged user [ Register | Log in ]

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
oxyde
Post subject: "su" "su -" or "sux" ?  PostPosted: Dec 16, 2011 - 11:36 AM



Joined: Dec 16, 2011
Posts: 6

Hello

In order to edit /etc/apt/sources.list I opened Konsole, and typed "su -" to get root-privileges. Become root, I typed
Code:

# kwrite /etc/apt/sources.list

and I got this answer:
Code:

Invalid MIT-MAGIC-COOKIE-1 keykwrite: cannot connect to X server :0.0


I tried another time, but typing "sux" instead of "su -" and all worked fine.
Which is the right command to get root-privileges and be able to launch graphical applications like kwrite?

Thanks for the help
 
 View user's profile Send private message  
Reply with quote Back to top
Kano
Post subject: "su" "su -" or "sux" ?  PostPosted: Dec 16, 2011 - 11:51 AM



Joined: Dec 17, 2003
Posts: 16809

That is sux if you want to stay root. If you want to execute only one command for X as root you can press alt+f2 then kdesu app or from cli you can use gksu app.
 
 View user's profile Send private message  
Reply with quote Back to top
oxyde
Post subject: RE: "su" "su -" or "sux" ?  PostPosted: Dec 16, 2011 - 10:55 PM



Joined: Dec 16, 2011
Posts: 6

Ok, thanks. Smilie
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
 
Deutsch | English
Logos and trademarks are the property of their respective owners, comments are property of their posters, the rest is © 2004 - 2006 by Jörg Schirottke (Kano).
Consult Impressum and Legal Terms for details. Kanotix is Free Software released under the GNU/GPL license.
This CMS is powered by PostNuke, all themes used at this site are released under the GNU/GPL license. designed and hosted by w3you. Our web server is running on Kanotix64-2006.