LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 07-14-2010, 04:08 PM   #1
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,057

Rep: Reputation: 328Reputation: 328Reputation: 328Reputation: 328
Slackware64 -current, SlackBuild's gksu problems run-helper...


error message
Quote:
"failed to run * as user root, the gksu-run-helper program is not found or is not executable"
Tried googling and checking threads at LQ
didnt find a solution or another instance running slackware64 current..

everything built fine, tried and everythings executable...

I also have Alien's multilib installed, with only firefox and flashplugin as 32bit, everything else 64bit.

I can't open any apps as root by normal user

Any ideas?
Thanks
 
Old 07-15-2010, 05:09 AM   #2
samac
Senior Member
 
Registered: Mar 2004
Location: Westray, Orkney
Distribution: Slackware64-14.1 (multi-lib) KDE 4.11.4
Posts: 1,422

Rep: Reputation: 137Reputation: 137
Is your user a member of the group "wheel"?

samac
 
Old 07-15-2010, 06:12 AM   #3
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,057

Original Poster
Rep: Reputation: 328Reputation: 328Reputation: 328Reputation: 328
hello samac
thanks for answering

yes, user is member of wheel group

user is member of these groups

ip
wheel
power
floppy
audio
video
games
cdrom
messagebus
haldaemon
plugdev
netdev
main group users

heres sudoers which may be wrong, though no errors doing visudo
the sudoers is a experiment so its messy...

Code:
# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the sudoers man page for the details on how to write a sudoers file.
#

# Host alias specification

# User alias specification

# Cmnd alias specification

# Defaults specification

# Runas alias specification

# User privilege specification
root	ALL=(ALL) ALL

# Uncomment to allow people in group wheel to run all commands
# %wheel	ALL=(ALL)	ALL

# Same thing without a password
 %wheel	ALL=(ALL)	NOPASSWD: ALL

# Samples
 %users  ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
 %users  localhost=/sbin/shutdown -h now

guest     ALL=(ALL) ALL
guest ALL=NOPASSWD: /usr/bin/Terminal
guest ALL=NOPASSWD: /usr/bin/pcmanfm
#guest ALL=NOPASSWD: ALL
guest ALL=NOPASSWD: /usr/bin/sudo, /usr/bin/hag-exit-fluxbox, /sbin/shutdown -r now, /sbin/shutdown -h now, /usr/sbin/create-slxsave-xfs-gui, /usr/bin/killall, /usr/bin/Terminal, /usr/bin/pcmanfm
also, entering "gksu" in term as user gives no error and works fine
but any command like "gksu lxterminal"
results in the error...
 
Old 07-15-2010, 07:53 AM   #4
Keith Hedger
Member
 
Registered: Jun 2010
Location: Devon,UK
Distribution: Linux From Scratch, Slackware64,
Posts: 832

Rep: Reputation: 167Reputation: 167
Gksu has been radically changed and now uses a different system to escalate privileges and has changed the way way it reads its arguments and ( in my opinion ) doesn't work at all except for very simple arguments ie "gksu gedit" works fine but "gksu gedit --new-window" causes gksu to fall over it is now all but useless ( you now also have to give the ROOT password rather than your admin password like before )
 
Old 07-15-2010, 07:57 AM   #5
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,057

Original Poster
Rep: Reputation: 328Reputation: 328Reputation: 328Reputation: 328
hello Keith Hedger
I got around some of gksu's problems in all my slackware/arch installs by porting debians
"su-to-root" script to slackware/arch
the command being instead of "gksu /usr/bin/pcmanfm"
to "su-to-root -X -c /usr/bin/pcmanfm"
and you gotta have a .su-to-rootrc in users home
which just says
SU_TO_ROOT_SU=sudo

However, none of it works on the 64bit slack....
 
Old 07-15-2010, 08:24 AM   #6
Keith Hedger
Member
 
Registered: Jun 2010
Location: Devon,UK
Distribution: Linux From Scratch, Slackware64,
Posts: 832

Rep: Reputation: 167Reputation: 167
Actually I have now changed my scripts to use zenity to ask for a password and use sudo -S ie:
Code:
#!/bin/bash

TEST=$(echo XXX|sudo -S ls 2> /dev/null)
if [ "X$TEST" = "X" ];then
	PASS=$(zenity --entry --hide-text --text="Please enter your admin password" --title="Authorization")
fi
echo $PASS|sudo -S gnome-terminal -x vim "$1"
which opens a selected file in vim as root in a new gnome terminal
( the test part is just to see if i need to pop up a dialog to ask for the password )
 
1 members found this post helpful.
  


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] Video Problems in VirtualBox on Slackware64-current TSquaredF Slackware 8 10-20-2009 11:44 PM
Updating from Slackware64-current to Slackware64 13. glore2002 Slackware 4 08-28-2009 06:50 PM
Slackware64-current on a second HD. glore2002 Slackware 7 08-23-2009 11:38 AM
asciidoc + docbook problems on slackware64-current Ron Parker Slackware 2 07-17-2009 01:29 PM
problems with su, gksu nixer4me Debian 1 03-11-2006 04:39 PM


All times are GMT -5. The time now is 01:39 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