LinuxQuestions.org
Help answer threads with 0 replies.
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 04-02-2006, 07:34 PM   #1
RVR777
LQ Newbie
 
Registered: Aug 2005
Posts: 19

Rep: Reputation: 0
Unhappy Can't login in Debian


Hi,

I have got various problems, because I can't login in the system with any user, except root. MySQL don't start, apache give permission errors, samba don't work, ftp don't accept the passwords and other users can't login...

After some time, I think that all this problem is because the users are not working... I can login in the system only as root. Other users don't work.

I am usign Debian 3.1, but I have no idea in how to solve this problem...

Thanks, if anyone could help me


PS: sorry, my english is not too good...
 
Old 04-02-2006, 07:56 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Do you have users listed in the /etc/passwd and /etc/shadow files and groups in /etc/group? You can tell by logging in as root and using a text editor to view the files or just use cat to view them in a terminal window.

Also, what does ls -l /etc/passwd /etc/shadow /etc/group return?
 
Old 04-02-2006, 07:59 PM   #3
RVR777
LQ Newbie
 
Registered: Aug 2005
Posts: 19

Original Poster
Rep: Reputation: 0
Quote:
tiger:/etc# ls -l /etc/passwd /etc/shadow /etc/group
-rw-r--r-- 1 root root 577 2006-04-01 19:59 /etc/group
-rw-r--r-- 1 root root 1052 2006-04-02 20:03 /etc/passwd
-rw-r----- 1 root shadow 797 2006-04-02 19:54 /etc/shadow
The permissions looks correct...

And yes, i have the user in /etc/passwd and /etc/shadow, and the groups in /etc/group.
 
Old 04-02-2006, 08:23 PM   #4
KimVette
Senior Member
 
Registered: Dec 2004
Location: Lee, NH
Distribution: OpenSUSE, CentOS, RHEL
Posts: 1,794

Rep: Reputation: 46
I haven't used Debian itself but use Ubuntu, and its security configuration by default is similar to that of OS X. That is, the first configured user is an Admin-like user and that user can su to root, but root cannot log in by default. If Debian itself works the same way simply log in to your normal user account, su to root, and then do:

passwd root

and set a password. You should then be able to log in as root.
 
Old 04-02-2006, 08:26 PM   #5
RVR777
LQ Newbie
 
Registered: Aug 2005
Posts: 19

Original Poster
Rep: Reputation: 0
You read my post?
 
Old 04-02-2006, 08:40 PM   #6
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
I'm also not a Debian user, but can you try the following and we'll see if the errors give any useful information. What error message do you get when you:

1. Login to the system as a user?
2. Use ftp as a user?
3. Login to the system as root and su to a user (e.g. su - rvr77)?
 
Old 04-02-2006, 08:46 PM   #7
RVR777
LQ Newbie
 
Registered: Aug 2005
Posts: 19

Original Poster
Rep: Reputation: 0
1. Nothing, like if I have put the worng password...
2. Login incorrect
3. No Shell

But the user have the /bin/bash seted in /etc/passwd
 
Old 04-02-2006, 09:03 PM   #8
RVR777
LQ Newbie
 
Registered: Aug 2005
Posts: 19

Original Poster
Rep: Reputation: 0
I find something interesting in syslog...

Quote:
Apr 2 21:44:40 localhost proftpd[2253]: localhost.localdomain (192.168.2.10[192.168.2.10]) - Unable to open password file /etc/passwd for reading: Permission denied
 
Old 04-02-2006, 09:10 PM   #9
RVR777
LQ Newbie
 
Registered: Aug 2005
Posts: 19

Original Poster
Rep: Reputation: 0
This I find in auth.log

Quote:
Apr 2 23:09:57 localhost sshd[2313]: Accepted keyboard-interactive/pam for renan from 192.168.2.10 port 3799 ssh2
Apr 2 23:09:57 localhost sshd[2317]: (pam_unix) session opened for user renan by (uid=0)
Apr 2 23:09:58 localhost sshd[2317]: fatal: login_get_lastlog: Cannot find account for uid 1000
 
Old 04-02-2006, 11:30 PM   #10
elfoozo
Member
 
Registered: Feb 2004
Location: Washington, USA
Distribution: Debian
Posts: 265

Rep: Reputation: 32
Are you doing your troubleshooting from the console keyboard if possible to rule out network issues?

Have you checked your permissions on /etc for rwxr-x-r-x root root to verify all users can get to /etc/passwd?

Have you added/removed any accounts by just deleting lines in /etc/group, /etc/passwd or /etc/shadow without using adduser / deluser commands?
 
Old 04-03-2006, 12:03 AM   #11
RVR777
LQ Newbie
 
Registered: Aug 2005
Posts: 19

Original Poster
Rep: Reputation: 0
Hi,

Like I posted before, the permissions to this files are OK.

I solved the problem, altering the permission of /

chmod 655 /

I think it has been set to 644, but I didn't chmod the /

Someone knows anything that can do this?

Thanks
 
Old 04-03-2006, 02:41 PM   #12
KimVette
Senior Member
 
Registered: Dec 2004
Location: Lee, NH
Distribution: OpenSUSE, CentOS, RHEL
Posts: 1,794

Rep: Reputation: 46
Quote:
Originally Posted by RVR777
You read my post?
Oops, sorry, got it backwards last night. You have my sincerest apology.
 
Old 04-03-2006, 04:41 PM   #13
RVR777
LQ Newbie
 
Registered: Aug 2005
Posts: 19

Original Poster
Rep: Reputation: 0
No problem

Service are running normal now
 
  


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
Login to ROOT with Debian? elamigo2004 Linux - Newbie 13 11-21-2010 04:36 AM
Debian Sarge cant login fur Debian 2 01-13-2005 06:32 PM
Debian Login help mobo Debian 11 09-09-2004 05:10 PM
How to startX in Debian first login try? Bomb187 Debian 6 04-18-2004 10:37 AM
Debian... I'm beyond the login prompt, what now? lordevereste Linux - Distributions 8 02-20-2003 05:30 PM

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

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