Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
07-23-2007, 09:22 PM
|
#1
|
LQ Newbie
Registered: Jul 2007
Posts: 3
Rep:
|
sudo not requiring password
I have setup and configured sudo very basically. As you can see from the file below, I just want me(shane) to be able to sudo as root. Anywho, the problem is the fact that sudo never requires my password. This is not an issue of remember either, as it never did. Also, running sudo -K does not change the situation. I can freely sudo all day long w/o entering my password, ever.
Here's my sudoers file:
Quote:
#sudoers file.
## This file MUST be edited with the "visudo" command as root.
## See the man page for details on how to write a sudoers file.
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
#root ALL=(ALL) ALL
#onthego ALL=/usr/sbin/mesm
#%users ALL=/usr/bin/apt-get -s upgrade
shane ALL = PASSWD: ALL
|
As you can see i even included PASSWD: trying to force it as having nothing there didn't. I have never specified NOPASSWD either.
Any help?
Thanks,
Shane
|
|
|
07-23-2007, 10:35 PM
|
#2
|
LQ Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870
|
Does it work fine if you try with the following config? It's Ubuntu's default, with "%admin" changed to "shane".
Code:
Defaults !lecture,tty_tickets,!fqdn
root ALL=(ALL) ALL
shane ALL=(ALL) ALL
Last edited by win32sux; 07-23-2007 at 10:37 PM.
|
|
|
07-24-2007, 12:03 AM
|
#3
|
LQ Newbie
Registered: Jul 2007
Posts: 3
Original Poster
Rep:
|
Quote:
Originally Posted by win32sux
Does it work fine if you try with the following config? It's Ubuntu's default, with "%admin" changed to "shane".
Code:
Defaults !lecture,tty_tickets,!fqdn
root ALL=(ALL) ALL
shane ALL=(ALL) ALL
|
Erm... that works the same as it did. Sudo is functioning, but no password request.
This is in Mepis 6.5 if this helps.
Thanks,
Shane
|
|
|
07-24-2007, 12:34 AM
|
#4
|
LQ Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870
|
Does your sudo use PAM?
Code:
ldd /usr/bin/sudo | grep libpam
If so, what does your /etc/pam.d/sudo file look like?
|
|
|
07-24-2007, 12:48 AM
|
#5
|
LQ Newbie
Registered: Jul 2007
Posts: 3
Original Poster
Rep:
|
Quote:
Originally Posted by win32sux
Does your sudo use PAM?
Code:
ldd /usr/bin/sudo | grep libpam
If so, what does your /etc/pam.d/sudo file look like?
|
Looks like it does.
Quote:
shane@2[~]$ ldd /usr/bin/sudo | grep libpam
libpam.so.0 => /lib/libpam.so.0 (0xb7fa0000)
|
Quote:
Originally Posted by /etc/pam.d/sudo
#%PAM-1.0
@include common-auth
@include common-account
|
Shane
|
|
|
All times are GMT -5. The time now is 04:25 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|