Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
05-15-2006, 01:06 AM
|
#1
|
Member
Registered: Aug 2004
Distribution: opensuse ,debian/ubuntu
Posts: 222
Rep:
|
how to su in X ?
Sorry for stupid question.
how to make root run GUI app while in other user's X ?
(basically is how to su for X environment)
I use KDE.
|
|
|
05-15-2006, 01:11 AM
|
#2
|
Member
Registered: May 2004
Location: Student of University of Mumbai, Maharastra State, India
Distribution: Redhat Linux 9.0, Knoppix LIVE CD, Ubuntu Live CD, Kubuntu Live CD
Posts: 483
Rep:
|
I think, you can open a konsole in KDE using the Run window and typing "konsole".
Then, you can type "su" and it would prompt for the password. That's it...you are in!...
I hope, this is what you have been looking for :-?
|
|
|
05-15-2006, 01:45 AM
|
#3
|
Senior Member
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145
Rep:
|
You have to give other users permission to access your X server. Most people use xhost to do it, in KDE there's a easier alternative called kdesu
|
|
|
05-15-2006, 02:09 AM
|
#4
|
Senior Member
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519
Rep:
|
this is from eric / alien bob in a reply to my on compiling kernels a few days ago:
Quote:
echo $DISPLAY # you'll be needing this value 3 lines below
sudo -i # or "su -" on older Slackwares
xauth merge ~alien/.Xauthority # use your own username here instead of "alien"
export DISPLAY=:0.0 # use the value of DISPLAY you've seen 3 lines before
|
many things in the "K-menu" you can right click put in run dialog and then check off run as different user and click ok then fill in root pass. not all work tho.
bye for now.
Last edited by Old_Fogie; 06-10-2006 at 12:20 AM.
|
|
|
05-15-2006, 10:24 AM
|
#5
|
Member
Registered: Jul 2005
Location: Finland
Distribution: Slackware
Posts: 213
Rep:
|
kdesu, I use it all the time!
|
|
|
06-15-2006, 12:03 PM
|
#6
|
Member
Registered: Aug 2004
Distribution: opensuse ,debian/ubuntu
Posts: 222
Original Poster
Rep:
|
I can't find kdesu in my system.
Quote:
I think, you can open a konsole in KDE using the Run window and typing "konsole".
Then, you can type "su" and it would prompt for the password. That's it...you are in!...
I hope, this is what you have been looking for :-?
|
not really. For example, i can't run konqueror from konsole using su. but
gvim can, although I don't know if the gvim that run from su has root priviledge or not. Maybe some X apps can be run from su while others can't.
CMIWW
I asked because often i want to use konqueror with root priviledge without have to login as root like rename file, delete file,etc. That dialog box about you-don't- have-permission thing has made me iritated.
|
|
|
06-15-2006, 12:14 PM
|
#7
|
Member
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 641
Rep:
|
Quote:
Originally Posted by hottdogg
I can't find kdesu in my system.
For example, i can't run konqueror from konsole using su.
|
If you have a standard slackware installation, kdesu is at /opt/kde/bin/kdesu
It allows you to do just what you wanted - to run konqueror and other X applications as superuser without logging into X as root.
From a puristic point of view, I cannot help but point out that I in general terms recommend against running any app as superuser in X unless absolutely necessary. If you wish to remove/move files, I would do it in terminal by mv / cp commands etc...
-Y1
|
|
|
06-15-2006, 01:28 PM
|
#8
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Rep:
|
There are some builtin KDE options too.
Look at 'K'>'System'>'More...' . There is superuser terminal in there, along with super user file manager.
But as an additional question:
I use Xfce, and how do I 'browse' as a su in a gui?
(I have many mounted remote nfs volumes, and need su privs to change things.)
As stated thoughout this thread, it is as easy as pie in KDE, but what about xfce?
Any ideas?
|
|
|
06-15-2006, 05:02 PM
|
#9
|
Member
Registered: Dec 2005
Location: ~
Distribution: Slackware -current
Posts: 467
Rep:
|
i know this is a stupid thing to do, but if you really wanted to:
type xhost +
become root
start your application
(again, not recommended and posts above are way better options)
Last edited by MannyNix; 06-15-2006 at 05:03 PM.
|
|
|
06-15-2006, 05:05 PM
|
#10
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Rep:
|
No way to do it in gui (like KDE)? only cli?
|
|
|
06-15-2006, 05:27 PM
|
#11
|
Member
Registered: Dec 2005
Location: ~
Distribution: Slackware -current
Posts: 467
Rep:
|
my bad, i was trying to answer to 1st post, please ignore my post above. sorry
|
|
|
07-15-2006, 11:08 AM
|
#12
|
LQ Newbie
Registered: Sep 2004
Posts: 28
Rep:
|
there is a wrapper for su called sux... you can get it from apt, synaptic, yum or whatever package management system your distro uses if you don't already have it installed.
in a terminal 'sux' will transfer display privalages to the user you are switching to. so open your terminal of choice (xterm for me),issue the command 'sux', enter your root password when prompted for it, then run whatever graphical program you want.
|
|
|
All times are GMT -5. The time now is 04:20 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|