LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-04-2009, 11:33 PM   #1
MrHyde77
LQ Newbie
 
Registered: Nov 2007
Posts: 6

Rep: Reputation: 0
su: incorrect password


Hi,

I hope someone can help. I have done a search for other similar threads and tried their suggestions.

To replicate the problem, this is what I do.

1) Open a putty session with the server
2) Log in as root
3) su - someuser

After executing the su command, I get the error "su: incorrect password". This is happening with all users. No users can log in directly using putty either.

The only change made to the server recently was that subversion was installed by one of the users.

The nsswitch.conf file specifies "files ldap" as the order for passwd, shadow, etc, so that looks ok.

I've had a look at the /etc/pam.d/su file and others, but they don't make any sense to me. I just can't figure out why this has happened and can't think of any reason for subversion to have made a change.

I have also tried creating a new user using "useradd testuser" and then "passwd testuser" to set the password and then "su - testuser". That also fails and testuser can't log in directly using ssh either. I am sure the password is correct, so there is something else wrong.

Can someone please help with some more ideas.

Cheers,
MrHyde77
 
Old 01-05-2009, 02:00 AM   #2
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
Is the 'su' command still setuid and owned by root?

ls -l `which su`
 
Old 01-05-2009, 02:21 AM   #3
kenneho
Member
 
Registered: May 2003
Location: Oslo, Norway
Distribution: Ubuntu, Red Hat Enterprise Linux
Posts: 657

Rep: Reputation: 40
So, as root you're not able to switch to any other user? That is very strange.
  • Is the /etc/shadow file corrupt, and is the file permissions set properly?
  • Are you running SElinux?
  • Can you backtrace exactly which command the user who installed svn run?
  • Does /var/log/messages report anything?
 
Old 01-05-2009, 11:31 PM   #4
MrHyde77
LQ Newbie
 
Registered: Nov 2007
Posts: 6

Original Poster
Rep: Reputation: 0
Its not just su that is stuffed as none of the users can ssh into the box, so I feel it is something to do with users.

Some answers from the questions raised:

# ls -l `which su`
-rwsr-xr-x 1 root root 52770 Oct 6 2004 /bin/su

Is the /etc/shadow file corrupt, and is the file permissions set properly?
The permissions on the file are 700 and its contents look ok.

Are you running SElinux?
SELinux is enforcing. However, I don't really need it - so can disable if needed.

Can you backtrace exactly which command the user who installed svn run?
No. He is currently on leave, so can't ask him.

Does /var/log/messages report anything?
This is interesting. /var/log/messages shows the following line:
Jan 6 17:27:31 minerva nss_wins[6120]: pam_ldap: error trying to bind (Invalid credentials)

However, the nsswitch.conf file says "files ldap". Shouldn't it be checking the local system first before ldap. And I am interested to know why ldap is there is the first place. We don't have any ldap server in our environment. Do you know if svn uses/requires ldap?

Thanks for the help guys.

Cheers
 
Old 01-06-2009, 09:03 AM   #5
kenneho
Member
 
Registered: May 2003
Location: Oslo, Norway
Distribution: Ubuntu, Red Hat Enterprise Linux
Posts: 657

Rep: Reputation: 40
Could you try and set selinux to "permissive", and see what happens?
 
Old 01-06-2009, 10:41 AM   #6
thorkelljarl
Senior Member
 
Registered: Jun 2008
Posts: 1,820

Rep: Reputation: 229Reputation: 229Reputation: 229
Does this help?

There is a thread here that may give you a way in.

http://www.linuxquestions.org/questi...d-10.1-680626/
 
  


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
su: incorrect password psuresh Linux - Security 17 11-20-2009 02:27 AM
su: incorrect password MarioT Red Hat 1 05-28-2007 07:17 AM
kdesu gives incorrect password error with correct password. dasy2k1 SUSE / openSUSE 1 04-16-2007 10:34 AM
Xubuntu-password incorrect? thomas-linuxing Ubuntu 8 08-05-2006 05:26 AM
incorrect password when logging in as su - DMB Linux - General 3 07-09-2002 03:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:01 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