LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

Reply
 
Search this Thread
Old 02-13-2005, 11:18 PM   #1
tchoua
LQ Newbie
 
Registered: Feb 2005
Posts: 11

Rep: Reputation: 0
can't login as user account


hello,
I am having a hard time with my mandrake 10.0.
since few days I can't login as a normal user. when I type the login and password I waite few minutes and I go back to the login window.
I can only login as root.
how can I fix this problem ?
thanks
tchoua
 
Old 02-14-2005, 01:14 AM   #2
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 65
This should help.

http://www.linuxquestions.org/questi...91#post1469791

I hope anyway.

Later

 
Old 02-14-2005, 03:16 PM   #3
tchoua
LQ Newbie
 
Registered: Feb 2005
Posts: 11

Original Poster
Rep: Reputation: 0
I tryed to change my user password but it doesn't solve the problem.
I am sure that the problem is not a password problem.
when I login the it start the graphic environement and then the screen goes black and I return on the login window.
It seems that it is more the user sesion that is broken.
I try to create a new user but I can't login with the new user.
my security is set to very few level.
 
Old 02-14-2005, 09:00 PM   #4
youknowwho
Member
 
Registered: Oct 2003
Location: india
Distribution: slack
Posts: 34

Rep: Reputation: 15
try a different windowmanager or try a failsafe session
 
Old 02-14-2005, 09:09 PM   #5
tchoua
LQ Newbie
 
Registered: Feb 2005
Posts: 11

Original Poster
Rep: Reputation: 0
I can't log even in a text mode session I get the error : "login : no shell : permission denied"
 
Old 02-14-2005, 09:18 PM   #6
youknowwho
Member
 
Registered: Oct 2003
Location: india
Distribution: slack
Posts: 34

Rep: Reputation: 15
login as root and check in which group th e user is in
also check the default shell ,usually it is bash
which distro are you using?
 
Old 02-14-2005, 10:11 PM   #7
tchoua
LQ Newbie
 
Registered: Feb 2005
Posts: 11

Original Poster
Rep: Reputation: 0
my user name is tchoua and my groups is tchoua and fileshare and I also cheked users (witch was not cheker and I thought that it was good to ckek it)
my bash is /bin/bash
and I am using a mandrake 10.0
 
Old 02-15-2005, 01:26 AM   #8
bunnadik
Member
 
Registered: Jan 2005
Location: Ívik, Sweden
Distribution: MDK 10.1
Posts: 450

Rep: Reputation: 30
Do a 'grep tchoua /etc/passwd' . It should look something like this:
tchoua:x:501:501:tchoua:/home/tchoua:/bin/bash

You can also try adding another user 'useradd test && passwd test' and try logging in as that.

- Peder
 
Old 02-15-2005, 02:33 PM   #9
tchoua
LQ Newbie
 
Registered: Feb 2005
Posts: 11

Original Poster
Rep: Reputation: 0
yes my etc/password file has the correct line:
tchoua:x:501:501:chiausa francois:/home/tchoua:/bin/bash

I already tryed to create a new user but the problem is the same with that new user.
 
Old 02-16-2005, 01:12 AM   #10
bunnadik
Member
 
Registered: Jan 2005
Location: Ívik, Sweden
Distribution: MDK 10.1
Posts: 450

Rep: Reputation: 30
Check the permissions of /bin/bash : 'ls -la /bin/bash'
Also check /bin : 'ls -lad /bin'
bash chould be "-rwxr-xr-x" and /bin "drwxr-xr-x"
If not run 'chmod 755 /bin/bash ; chmod 755 /bin'

- Peder
 
Old 02-16-2005, 12:42 PM   #11
tchoua
LQ Newbie
 
Registered: Feb 2005
Posts: 11

Original Poster
Rep: Reputation: 0
permissions on /bin wasn't rwxr-xr-x so I change it for it.
chmod 755 /bin and now it has the rwxr-xr-x permissions.
this doesn't solve the problem.
do you have an other idea ?
 
Old 02-17-2005, 01:35 AM   #12
bunnadik
Member
 
Registered: Jan 2005
Location: Ívik, Sweden
Distribution: MDK 10.1
Posts: 450

Rep: Reputation: 30
Also check / the same way and chmod it 755 as well.

I'm guessing you ran some chmod command as root whan all of this happened and you managed
to screw up your filesystem rights.

- Peder
 
Old 02-17-2005, 01:59 PM   #13
tchoua
LQ Newbie
 
Registered: Feb 2005
Posts: 11

Original Poster
Rep: Reputation: 0
I have more information on my error.
I did a strace su - tchoua -c /bin/bash and have a lots od error or file missing I'm not sure this is the message (it is very impressive so clean it up a bit) :
open("/etc/passwd", O_RDONLY) = -1 EACCES (Permission denied)
open("/etc/ld.so.cache", O_RDONLY) = -1 EACCES (Permission denied)
open("/lib/tls/i686/sse/mmx/libnss_nisplus.so.2", O_RDONLY) = -1 EACCES (Permission denied)
.... etc ....
stat64("/usr/lib/mmx", 0xbfffca20) = -1 EACCES (Permission denied)
open("/usr/lib/libnss_nisplus.so.2", O_RDONLY) = -1 EACCES (Permission denied)
stat64("/usr/lib", 0xbfffca20) = -1 EACCES (Permission denied)
open("/lib/libnss_nis.so.2", O_RDONLY) = -1 EACCES (Permission denied)

I don't know what to do and I event don't know what is the file libnss_nisplus.so.2 for ?
if this message means something to you give me an ansuwer.
 
Old 02-18-2005, 01:35 AM   #14
bunnadik
Member
 
Registered: Jan 2005
Location: Ívik, Sweden
Distribution: MDK 10.1
Posts: 450

Rep: Reputation: 30
Yupp, I really think you have screwed up your permissions. I bet an 'ls -lad / ' or 'ls -lad /etc' will show "rwx------" or similar.

Begin by 'chmod 755 / ' and see if things start to work. If not, the easiest way to get everything right is probably to reinstall MDK.
If that's not possible you could try
Code:
chmod -R 755 / 
chmod 400 /etc/shadow
chmod 600 /etc/shadow-
chmod 700 -R /home
This could have some security implications if you have a multi user system (other users will be able to read log files
and stuff they normaly wouldn't).

libnss_nisplus is used if you login against NIS+ (Suns Directory Service, similar to Active Directory, LDAP or NDS).
It's a default in /etc/nsswitch.conf

- Peder
 
Old 02-18-2005, 01:45 AM   #15
navaladi
Member
 
Registered: Dec 2004
Location: chennai
Distribution: chennai
Posts: 81

Rep: Reputation: 15
hai,
i have the same problem one day then find what is it?
the solution is simple.
the window goes back to login window shows that u r not able to load the KDE
 
  


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
user account won't boot x, stays in graphical login in suse 9.1 oily_rags Linux - Newbie 5 10-22-2007 04:36 PM
FC4-test1 not creating a User Account - Cannot Login DigeratiPrime Fedora - Installation 1 03-17-2005 07:41 PM
can't login my user account/KDE from boot MI3GTO Mandriva 1 02-27-2005 03:11 PM
Force user login with different account rte Linux - Newbie 1 04-01-2004 09:09 AM
can't login to regular user account luchobucho Linux - General 2 10-27-2003 05:11 AM


All times are GMT -5. The time now is 11:08 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration