LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-09-2006, 09:43 AM   #1
humbletech99
Member
 
Registered: Jun 2005
Posts: 374

Rep: Reputation: 30
sudo problem


Hi,
I'm running Suse 10 and have domain authentication working correctly via samba+winbind+kerberos. I can log on via ssh as administrator of the domain or locally via console. I've added the following line to sudoers:

Code:
administrator   ALL=(ALL) ALL
but I still can't "sudo su". I get the message:

Code:
sudo: pam_authenticate: User not known to the underlying authentication module

I've checked the pam for sudo and it references the four common-* files which ssh and login also use so this should just work.

This all works on another gentoo machine.

What have I missed?
 
Old 02-09-2006, 10:25 AM   #2
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491

Rep: Reputation: 50
can you run other sudo function e.g. sudo cat /etc/passwd

or is just switching user (su) and the associated authentication.....
 
Old 02-09-2006, 10:28 AM   #3
humbletech99
Member
 
Registered: Jun 2005
Posts: 374

Original Poster
Rep: Reputation: 30
no, it's a sudo problem, I can't do "sudo bash" either and the error is always the same from the sudo pam_authentication not finding the domain user, even though it appears in getent passwd and wbinfo -u and I am logged in as that user via SSH...
 
Old 02-09-2006, 10:45 AM   #4
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491

Rep: Reputation: 50
does it work when you are logged in locally?
 
Old 02-09-2006, 10:50 AM   #5
humbletech99
Member
 
Registered: Jun 2005
Posts: 374

Original Poster
Rep: Reputation: 30
ok sorted it, there were a couple of sneaky lines that this stupid suse machine had in there by default, removed them and all is working now, thanks. The lines were:

Code:
Defaults targetpw    # ask for the password of the target user i.e. root
%users ALL=(ALL) ALL # WARNING! Only use this together with 'Defaults targetpw'
 
Old 02-09-2006, 10:51 AM   #6
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491

Rep: Reputation: 50
lol, i would have told you that if you had posted the entire file.

then again i hate those posts that give, say, an entire xorg.conf and then say 'so what's going wrong here guys'
 
Old 02-09-2006, 11:01 AM   #7
humbletech99
Member
 
Registered: Jun 2005
Posts: 374

Original Poster
Rep: Reputation: 30
yeah me too, who can be bothered to read whole xorg.conf when you can usually point to problem by symptom. Although here, because I'm confident in this, I didn't think my stuff was wrong, which is wasn't, but I didn't see the lines at the top of the file, I later just spotted them by accident after much frustration. Usually there is nothing enabled so you don't have to strip things out, don't know what was going on there, fresh suse machine...

will know to be more thorough next time!


thanks for helping...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Restricting Editing in Sudo (Advanced Sudo Question) LinuxGeek Linux - Software 4 11-04-2006 03:20 PM
Sudo Problem shooters Linux - General 2 12-14-2005 10:12 PM
Problem with sudo SwannAnderson Linux - Newbie 5 10-03-2005 07:10 PM
sudo problem drigz Linux - Software 4 06-21-2004 03:46 PM
Problem with sudo punx120 Linux - Software 0 05-08-2004 10:43 AM

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

All times are GMT -5. The time now is 02:39 AM.

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