LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 06-01-2011, 02:54 PM   #1
bwgolling
LQ Newbie
 
Registered: Nov 2006
Posts: 10

Rep: Reputation: 0
Problems with su, sudo, root and user


This is probably a trivial matter but I am stumped. I have been using ubuntu or a derivative distro and perhaps I grew too used to sudo.
If it matters I am on Slackware 13.37 and xfce4. I was able to adjust sudoers to allow sudo but I am having difficulties running some progs as root. The biggest concern is trying to start thunar as root. It wont run after sudo, su, or su -l. What am I doing wrong?
 
Old 06-01-2011, 03:03 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Gentoo
Posts: 15,411
Blog Entries: 2

Rep: Reputation: 3995Reputation: 3995Reputation: 3995Reputation: 3995Reputation: 3995Reputation: 3995Reputation: 3995Reputation: 3995Reputation: 3995Reputation: 3995Reputation: 3995
For GUI applications you should use kdesu.
 
Old 06-01-2011, 03:09 PM   #3
zordrak
Member
 
Registered: Feb 2008
Distribution: Slackware
Posts: 595

Rep: Reputation: 115Reputation: 115
Or alternatively for when in a root shell:

Code:
# xauth merge ~<username logged into X>/.Xauthority
# export DISPLAY=:0.0
 
Old 06-01-2011, 03:47 PM   #4
bwgolling
LQ Newbie
 
Registered: Nov 2006
Posts: 10

Original Poster
Rep: Reputation: 0
I thought of kdesu but I can;t find it. I assumed it would have been installed during original installation but I dont think so. I looked in the slackware dvd and apparantly it is not in a separate pkg.
Software installation seems to me to be the only difficulty of slackware. Got lazy with apt-get
 
Old 06-01-2011, 03:51 PM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Gentoo
Posts: 15,411
Blog Entries: 2

Rep: Reputation: 3995Reputation: 3995Reputation: 3995Reputation: 3995Reputation: 3995Reputation: 3995Reputation: 3995Reputation: 3995Reputation: 3995Reputation: 3995Reputation: 3995
If you are new to Slackware it is strongly recommended to do a full install. Have you done that?
If you don't want to install the KDE packages you can install gksu from SlackBuilds.org, it has the same functionality.
 
Old 06-01-2011, 03:55 PM   #6
bwgolling
LQ Newbie
 
Registered: Nov 2006
Posts: 10

Original Poster
Rep: Reputation: 0
During the install I checked full install. Maybe I should try it again and start fresh.
 
Old 06-01-2011, 03:58 PM   #7
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 1,806

Rep: Reputation: 810Reputation: 810Reputation: 810Reputation: 810Reputation: 810Reputation: 810Reputation: 810
Stick this in your ~/.bashrc
Code:
xhost +local:root > /dev/null
 
Old 06-01-2011, 04:11 PM   #8
bwgolling
LQ Newbie
 
Registered: Nov 2006
Posts: 10

Original Poster
Rep: Reputation: 0
That did the trick. thank you very much.
I still have a lot to learn with this pkg system and this certainly has me going in the right direction.
 
Old 06-01-2011, 10:07 PM   #9
bwgolling
LQ Newbie
 
Registered: Nov 2006
Posts: 10

Original Poster
Rep: Reputation: 0
For what its worth, I re-installed Slackware, this time leaving out KDE. There is no problem using su or sudo to open thunar or anything else yet.
 
Old 06-02-2011, 01:53 AM   #10
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 1,806

Rep: Reputation: 810Reputation: 810Reputation: 810Reputation: 810Reputation: 810Reputation: 810Reputation: 810
In its default configuration I would not expect you to be able to start graphical apps as root with su or sudo from a terminal running under your user account. Did you preserve or copy over your ~/.bashrc?
 
Old 06-02-2011, 02:28 PM   #11
bwgolling
LQ Newbie
 
Registered: Nov 2006
Posts: 10

Original Poster
Rep: Reputation: 0
Actually that is without a .bashrc. I was able to start thunar under su or sudo
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] sudo is not switching to root, running as same user instead thebombzen Linux - Software 4 05-15-2011 10:50 AM
sudo non-user/non-root password Alex_Dc Linux - Security 3 02-19-2010 06:28 PM
Gconf-editor settings not sticking for root, sudo user, or user when run sandaili Fedora 1 07-19-2008 08:31 AM
Give root access to user's display + sudo problems Ephracis Linux - General 12 01-11-2006 11:25 PM
SUDO as *non-root* user spratty Linux - Newbie 3 05-19-2004 03:35 AM


All times are GMT -5. The time now is 04:24 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration