-   Slackware (
-   -   Problems with su, sudo, root and user (

bwgolling 06-01-2011 02:54 PM

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?

TobiSGD 06-01-2011 03:03 PM

For GUI applications you should use kdesu.

zordrak 06-01-2011 03:09 PM

Or alternatively for when in a root shell:


# xauth merge ~<username logged into X>/.Xauthority
# export DISPLAY=:0.0

bwgolling 06-01-2011 03:47 PM

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 :)

TobiSGD 06-01-2011 03:51 PM

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, it has the same functionality.

bwgolling 06-01-2011 03:55 PM

During the install I checked full install. Maybe I should try it again and start fresh.

ruario 06-01-2011 03:58 PM

Stick this in your ~/.bashrc

xhost +local:root > /dev/null

bwgolling 06-01-2011 04:11 PM

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.

bwgolling 06-01-2011 10:07 PM

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.

ruario 06-02-2011 01:53 AM

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?

bwgolling 06-02-2011 02:28 PM

Actually that is without a .bashrc. I was able to start thunar under su or sudo

All times are GMT -5. The time now is 10:38 AM.