Bug 396776

Summary: sudo does not work for NT domain users (samba/winbind)
Product: [openSUSE] openSUSE 11.0 Reporter: Forgotten User gxNgjAWAcH <forgotten_gxNgjAWAcH>
Component: YaST2Assignee: E-mail List <bnc-team-screening>
Status: RESOLVED INVALID QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None    
Version: RC 1   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Forgotten User gxNgjAWAcH 2008-06-03 16:06:53 UTC
Hi,
A fresh install fo 11.0 RC1, i386 as VMWare guest.
Using Windows domain authentication, I can log in as a domain user.

Now I tried to add this user in the sudoers, so I can use the same password.

Using Yast2 module, I was able to add the user MYDOMAIN\sunny as it should, but still sudo requires a root password, not the user's one:

MYDOMAIN\sunny@opensuse11rc1:~> sudo ls
root's password:
sudo: pam_authenticate: User not known to the underlying authentication module

If I provide root's password, it works OK.

Here is how sudoers file look like:

Defaults        targetpw
ALL     ALL = (ALL) ALL
MYDOMAIN\\sunny  ALL = (ALL) ALL

# Runas alias specification

# User privilege specification
root    ALL = (ALL) ALL


Everything looks right, the "\" is escaped as per the docs.
Comment 1 Forgotten User gxNgjAWAcH 2008-06-03 16:15:12 UTC
Sorry, forgot to remove targetpw. Works now