You are not logged in.
Pages: 1
I did an update today that included a sudo update. Afterwords, sudo is apparently giving me problems.
I use Openbox and wrote my own menu XML files. Among the program entries are a few that open an app as root so that I can do things that require such permissions.
The command I use in the menu files is "gksudo application". Previously, it would ask for my sudo password, then run the application. This no longer does anything at all when run from a menu and nothing when run from a command line.
If I change the command to "sudo application", it does noting from the menu and runs it from the command line (after asking for my usual sudo password)
If I change the command to "gksu application", it asks for the root user password, then runs the application. (this is expected behavior).
Below is the relevant portion of my sudoers file. I am a member of the wheel group.
##
## User privilege specification
##
root ALL=(ALL) ALL
## Uncomment to allow members of group wheel to execute any command
%wheel ALL=(ALL) ALL
## Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL
## Uncomment to allow members of group sudo to execute any command
# %sudo ALL=(ALL) ALL
## Uncomment to allow any user to run sudo if they know the password
## of the user they are running the command as (root by default).
# Defaults targetpw # Ask for the password of the target user
# ALL ALL=(ALL) ALL # WARNING: only use this together with 'Defaults targetpw'
ALL ALL=NOPASSWD: /usr/sbin/hddtemp
## Read drop-in files from /etc/sudoers.d
## (the '#' here does not indicate a comment)
#includedir /etc/sudoers.d
# Reset environment by default
Defaults env_reset
# Set default EDITOR to nano, and do not allow visudo to use EDITOR/VISUAL.
Defaults editor="/usr/bin/nano", !env_editor
I feel like I am missing something simple here, but I'm just not seeing it. Searches I have done explain to use the gksudo command, as I have been, but it no longer seems to work. I'm not sure where to look beyond this. Any ideas what's going on?
Thanks
Last edited by andrekp (2015-07-23 12:02:18)
Offline
You could set `gksu` to ask for your user password instead of the root password.
gconftool-2 --set --type boolean /apps/gksu/sudo-mode true
Offline
Try invoking gksudo with -d for debug info.
Offline
Offline
Tried running debug mode with meld:
DIR: ~/$ gksudo -d meld
No ask_pass set, using default!
xauth: /tmp/libgksu-BlyVsR/.Xauthority
STARTUP_ID: gksudo/meld/3100-0-bokuarch_TIME0
cmd[0]: /usr/bin/sudo
cmd[1]: -H
cmd[2]: -S
cmd[3]: -p
cmd[4]: GNOME_SUDO_PASS
cmd[5]: -u
cmd[6]: root
cmd[7]: --
cmd[8]: meld
buffer: -sudo: main: unable to allocate memory-
buffer: --
buffer: --
buffer: --
buffer: --
buffer: --
buffer: --
buffer: --
buffer: --
buffer: --
buffer: --
buffer: --
buffer: --
buffer: --
buffer: --
buffer: --
buffer: --
buffer: --
buffer: --
buffer: --
buffer: --
buffer: --
buffer: --
buffer: --
buffer: --
buffer: --
buffer: --
buffer: --
buffer: --
buffer: --
buffer: --
buffer: --
buffer: --
buffer: --
buffer: --
buffer: --
buffer: --
buffer: --
buffer: --
buffer: --
buffer: --
buffer: --
buffer: --
buffer: --
buffer: --
buffer: --
buffer: --
buffer: --
buffer: --
buffer: --
brute force GNOME_SUDO_PASS ended...
No password prompt found; we'll assume we don't need a password.
xauth: /tmp/libgksu-BlyVsR/.Xauthority
xauth_env: /home/andrekp/.Xauthority
dir: /tmp/libgksu-BlyVsR
I'm not sure what it means. I LOOKS like it can't integrate with the password authentication or something, but this isn't really clear to me.
Offline
Have you tried with -u option and the username you are logged into X with?
Offline
The sudo package has been updated today and `gksudo` now works as expected on my system.
Offline
I added the line
username ALL=(ALL) ALL
Not sure if this was a correct fix, but found it on the mighty google search.
Crude matter we are not, Luminous beings we are
Offline
I added the line
username ALL=(ALL) ALL
Not sure if this was a correct fix, but found it on the mighty google search.
What were you trying to "fix"? The gksudo issue is resolved by the package update.
All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.
Offline
Todays sudo update to 1.8.14.p3-2 fixed the problem. Obviously it was a bug in sudo.
marked as solved.
Offline
Pages: 1