SlackwareThis 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.
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.
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...
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 3,129
Rep:
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 )
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
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 3,129
Rep:
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 )
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.