Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux HostsFree MagazinesJobs
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > Your Distro > Redhat / Fedora Linux Help
Reload this Page Unable to log in unless using root account
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Redhat / Fedora Linux Help Help and discussion related to Redhat and Fedora Linux.

Reply
 
Thread Tools Display Modes
Old 07-02-2008   #1 (permalink)
Just Joined!
 
Join Date: Jul 2008
Posts: 3
Unable to log in unless using root account

Hi,
I'm pretty new to Linux and would appreciate your thoughts on this: I have a number of accounts on my system and used to be able to log in with any of them. Recently, something must have changed as I can no longer log in with anything but the root account. I first noticed this when using PuTTY for remote access.
This is where it gets a little bizarre! If I try to log on with an account other than root and I type an incorrect password I am informed that the password is incorrect and prompted to enter it again. If I type the correct password returned to the login prompt. If I do the same using PuTTY I am returned to the login prompt if I enter an incorrect password and if I enter the correct password the session ends with an error (Network error: software caused connection abort).
If I log in as root and su to another account I receive a permission denied message but if I type whoami the account appears to be the specified user. If I su - to the new account I do not receive an error message. This may, of course be totally unrelated!
I did find an article that suggested that the problem mat be related to permissions on some files / directories. The following was correct:
/etc 755
bashrc 644
/home/useraccount directory 740

Thanks in advance for any assistance you can provide.
riskym is offline   Reply With Quote
Old 07-02-2008   #2 (permalink)
Bigtomrodinator
 
bigtomrodney's Avatar
 
Join Date: Nov 2004
Location: Sunny South-East of Ireland
Posts: 5,189
What is the default shell for each of these users? If they are disabled it might be something like /bin/false.
Code:
awk -F: '{print $7}' </etc/passwd
That would explain them logging out again.
__________________
Registered Linux user #378740
New members read here / Forum Rules
#linuxforums on irc.freenode.net
bigtomrodney is offline   Reply With Quote
Old 07-02-2008   #3 (permalink)
Just Joined!
 
Join Date: Jul 2008
Posts: 3
Thanks for the quick response. The default shell for the users is /bin/bash. There are a couple of (old) accounts that are set to bin/false but not the ones that I have been using.
riskym is offline   Reply With Quote
Old 07-02-2008   #4 (permalink)
Just Joined!
 
Join Date: Feb 2008
Posts: 17
there are many issues tht can keep someone from logging in (beside the file permission that u say have already checked)
i ll try address few of them

1. nologin -> ur shell mightbe false or nologin, sheck in /etc/passwd to see ur shell
2.expired acount -> chage -l username wil display the acc info
3. user being locked -> if u see "!" before the encrypted passwd of tht user in /etc/shadow try usermod -U username this will unlock the account
4.check for missing /etc/shadow or /etc/passwd or /etc/group or /etc/securetty (or commented tty name in last file), bust since u can log in as superuser this hardly can be the case. if u identify the problem as one of these do get back i ll may try givin the workin solution in detail
__________________
for any problem if there is a way in , there sure is a way out
shank_el is offline   Reply With Quote
Old 07-03-2008   #5 (permalink)
Just Joined!
 
Join Date: Jul 2008
Posts: 3
Thanks for the ideas:
shell is ok
accounts are not expired
No ! before passwords in passwd file
All files are in place
Back to the drawing board .....
riskym is offline   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
 

Free Magazines
Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe
Systems Management News, the newspaper for IT systems administration and data center managers!
Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe
The Enterprise Newsweekly
eWeek is the essential technology information source for builders of e-business.
subscribe
Oracle Magazine
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe
Total Telecom
Total Telecom is "The Economist of the communications industry".
subscribe
More free magazines »



All times are GMT. The time now is 06:12 PM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.2.0