LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-15-2006, 01:06 AM   #1
hottdogg
Member
 
Registered: Aug 2004
Distribution: opensuse ,debian/ubuntu
Posts: 222

Rep: Reputation: 30
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.
 
Old 05-15-2006, 01:11 AM   #2
redhatrosh
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: Reputation: 30
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 :-?
 
Old 05-15-2006, 01:45 AM   #3
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
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
 
Old 05-15-2006, 02:09 AM   #4
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Rep: Reputation: 63
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.
 
Old 05-15-2006, 10:24 AM   #5
con
Member
 
Registered: Jul 2005
Location: Finland
Distribution: Slackware
Posts: 213

Rep: Reputation: 30
kdesu, I use it all the time!
 
Old 06-15-2006, 12:03 PM   #6
hottdogg
Member
 
Registered: Aug 2004
Distribution: opensuse ,debian/ubuntu
Posts: 222

Original Poster
Rep: Reputation: 30
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.
 
Old 06-15-2006, 12:14 PM   #7
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 641

Rep: Reputation: 36
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
 
Old 06-15-2006, 01:28 PM   #8
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
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?
 
Old 06-15-2006, 05:02 PM   #9
MannyNix
Member
 
Registered: Dec 2005
Location: ~
Distribution: Slackware -current
Posts: 467

Rep: Reputation: 55
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.
 
Old 06-15-2006, 05:05 PM   #10
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
No way to do it in gui (like KDE)? only cli?
 
Old 06-15-2006, 05:27 PM   #11
MannyNix
Member
 
Registered: Dec 2005
Location: ~
Distribution: Slackware -current
Posts: 467

Rep: Reputation: 55
my bad, i was trying to answer to 1st post, please ignore my post above. sorry
 
Old 07-15-2006, 11:08 AM   #12
magesing
LQ Newbie
 
Registered: Sep 2004
Posts: 28

Rep: Reputation: 15
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration