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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-02-2006, 07:34 PM
|
#1
|
LQ Newbie
Registered: Aug 2005
Posts: 19
Rep:
|
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...
|
|
|
04-02-2006, 07:56 PM
|
#2
|
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141
Rep: 
|
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?
|
|
|
04-02-2006, 07:59 PM
|
#3
|
LQ Newbie
Registered: Aug 2005
Posts: 19
Original Poster
Rep:
|
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.
|
|
|
04-02-2006, 08:23 PM
|
#4
|
Senior Member
Registered: Dec 2004
Location: Lee, NH
Distribution: OpenSUSE, CentOS, RHEL
Posts: 1,794
Rep:
|
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.
|
|
|
04-02-2006, 08:26 PM
|
#5
|
LQ Newbie
Registered: Aug 2005
Posts: 19
Original Poster
Rep:
|
You read my post?
|
|
|
04-02-2006, 08:40 PM
|
#6
|
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141
Rep: 
|
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)?
|
|
|
04-02-2006, 08:46 PM
|
#7
|
LQ Newbie
Registered: Aug 2005
Posts: 19
Original Poster
Rep:
|
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
|
|
|
04-02-2006, 09:03 PM
|
#8
|
LQ Newbie
Registered: Aug 2005
Posts: 19
Original Poster
Rep:
|
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
|
|
|
|
04-02-2006, 09:10 PM
|
#9
|
LQ Newbie
Registered: Aug 2005
Posts: 19
Original Poster
Rep:
|
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
|
|
|
|
04-02-2006, 11:30 PM
|
#10
|
Member
Registered: Feb 2004
Location: Washington, USA
Distribution: Debian
Posts: 265
Rep:
|
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?
|
|
|
04-03-2006, 12:03 AM
|
#11
|
LQ Newbie
Registered: Aug 2005
Posts: 19
Original Poster
Rep:
|
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
|
|
|
04-03-2006, 02:41 PM
|
#12
|
Senior Member
Registered: Dec 2004
Location: Lee, NH
Distribution: OpenSUSE, CentOS, RHEL
Posts: 1,794
Rep:
|
Quote:
Originally Posted by RVR777
You read my post?
|
Oops, sorry, got it backwards last night. You have my sincerest apology. 
|
|
|
04-03-2006, 04:41 PM
|
#13
|
LQ Newbie
Registered: Aug 2005
Posts: 19
Original Poster
Rep:
|
No problem
Service are running normal now 
|
|
|
All times are GMT -5. The time now is 03:23 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|