LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 07-23-2007, 09:22 PM   #1
sbammel
LQ Newbie
 
Registered: Jul 2007
Posts: 3

Rep: Reputation: 0
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
 
Old 07-23-2007, 10:35 PM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
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.
 
Old 07-24-2007, 12:03 AM   #3
sbammel
LQ Newbie
 
Registered: Jul 2007
Posts: 3

Original Poster
Rep: Reputation: 0
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
 
Old 07-24-2007, 12:34 AM   #4
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Does your sudo use PAM?
Code:
ldd /usr/bin/sudo | grep libpam
If so, what does your /etc/pam.d/sudo file look like?
 
Old 07-24-2007, 12:48 AM   #5
sbammel
LQ Newbie
 
Registered: Jul 2007
Posts: 3

Original Poster
Rep: Reputation: 0
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
 
  


Reply



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
No password for sudo? orange400 Linux - Software 9 03-18-2012 10:08 AM
Lock screen (requiring password to unlock) when resuming from suspend theoldman Linux - Laptop and Netbook 2 12-17-2009 09:35 PM
/etc/hosts modification crapped out sudo, synaptic, anything requiring admin hexter Ubuntu 1 11-30-2005 11:58 AM
How do I remount a network SMB share (on reboot) requiring a username & password BuckRogers01 Linux - Networking 1 07-09-2005 11:53 AM
requiring root password for app access? mysticpain Linux - Software 3 06-08-2004 08:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 05:45 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration