LMDE update: problem with sudo.

Post your update and upgrade related errors here
Forum rules
Before you post please read this

LMDE update: problem with sudo.

Postby rayandrews on Mon May 21, 2012 6:17 pm

All,

Got my 1177 packages upgrade more or less working. So far only one thing seems broken: it seems that when I sudo, I'm not getting access to my root path like I used to. My sudoers file is unchanged:
#
Code: Select all
# This file MUST be edited with the 'visudo' command as root.
#
Defaults   env_reset, timestamp_timeout=100

root   ALL=(ALL:ALL) ALL
ray   ALL=(ALL:ALL) ALL

# Allow members of group sudo to execute any command
%sudo   ALL=(ALL:ALL) ALL



When I:
"sudo echo $PATH"
I see my normal users path, not root's path as I think I should. Because almost the whole system was upgraded, it's hard to know where to start looking. I use zsh, but had the same problem with bash.
I can do anything I need to by su-ing to root, so I'm not stuck, but I'd sure like sudo working again. Perhaps one of those scripts that is overwritten has something to do with it?

Thanks guys.
rayandrews
Level 2
Level 2
 
Posts: 99
Joined: Sun Jul 10, 2011 8:56 pm

Linux Mint is funded by ads and donations.
 

Re: LMDE update: problem with sudo.

Postby squeezy on Mon May 21, 2012 7:33 pm

Check to see that you're in the sudo group.
squeezy
Level 5
Level 5
 
Posts: 567
Joined: Thu Feb 23, 2012 2:05 pm
Location: The Land of Enchantment

Re: LMDE update: problem with sudo.

Postby craigevil on Mon May 21, 2012 7:59 pm

my /etc/sudoers

Code: Select all
#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults   env_reset
Defaults   mail_badpass
Defaults   secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root   ALL=(ALL:ALL) ALL

# Allow members of group sudo to execute any command
%sudo   ALL=(ALL:ALL) ALL

# See sudoers(5) for more information on "#include" directives:

#includedir /etc/sudoers.d


$ groups
craig lp cdrom floppy sudo audio dip video plugdev users netdev lpadmin powerdev scanner debian-tor

Make sure you have the Default lines in your sudoers file.
Debian Sid KDE4.8.4 Kernel 3.4 Thinkpad R40 CPU Pentium M 1.3MHz RAM 2GB ATI Mobility 7500
Debian - "If you can't apt-get something, it isn't useful or doesn't exist"
Giant Debian sources.list | Debian upgrade script smxi | sysinfo script inxi
craigevil
Level 5
Level 5
 
Posts: 559
Joined: Wed Sep 15, 2010 6:10 am
Location: down the rabbit hole

Re: LMDE update: problem with sudo.

Postby rayandrews on Mon May 21, 2012 8:44 pm

Gentlemen:

I am In the sudo group. I added this line:

Code: Select all
#
Defaults   secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"


... and now Synaptic works (it was the busted thing that brought this problem to my attention), but 'sudo echo $PATH' still shows my 'user' path. Dunno, maybe that's a red herring. Synaptic is fine, and so I guess that's all I need to worry about.
rayandrews
Level 2
Level 2
 
Posts: 99
Joined: Sun Jul 10, 2011 8:56 pm


Return to Update/Upgrade Issues

Who is online

Users browsing this forum: No registered users and 6 guests