LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-28-2004, 10:02 AM   #1
kpachopoulos
Member
 
Registered: Feb 2004
Location: Athens, Greece
Distribution: Gentoo,FreeBSD, Debian
Posts: 705

Rep: Reputation: 30
cannot login as root


First, if this has anything to do, i had been fooling around with "chsh" command , before the problem disappeared . It started as soon as i tried to login in KDE control center; the message asking for the password appeared and when i entered it, a message appeared, which informed me, that the password was incorrect. I also post the message aking me for the password if it helps :
-----------------------------
kcmshell /usr/share/applications/Yast2/disk.de
--embed 54526856 --lang en_US
-----------------------------
Also when i use the "su" command:
kostas@linux:~> su
Password:
su: bash: Such file or folder does not exist
kostas@linux:~>

And i cannot use the "gnome desktop manager". When i choose the desktop environment and try to log in as root a message appears which informs that there is a problem and i have to look in the .xsession-errors file.
here it is:
-----------------------------------
/etc/opt/gnpme/gdm/PreSession/Default: Registering your session with wtmp and utmp

/etc/opt/gnpme/gdm/PreSession/Default:running :/usr/bin/X11/sessreg -a -w /var/log/wtmp -u /var/run/utmp -x "var/lib/gdm/:0-XServers" -h "" -l "-0" "root"
 
Old 08-28-2004, 10:52 AM   #2
lone_nut
Member
 
Registered: Dec 2003
Location: Denmark
Distribution: Mandrake
Posts: 179

Rep: Reputation: 30
You might have deleted bash (the command shell). What does this command say?
whereis bash
Please post the result
 
Old 08-28-2004, 11:06 AM   #3
kpachopoulos
Member
 
Registered: Feb 2004
Location: Athens, Greece
Distribution: Gentoo,FreeBSD, Debian
Posts: 705

Original Poster
Rep: Reputation: 30
kostas@linux:~> whereis bash
bash: /bin/bash /etc/bash.bashrc /usr/share/man/man1/bash.1.gz
kostas@linux:~>
 
Old 08-29-2004, 03:54 AM   #4
kpachopoulos
Member
 
Registered: Feb 2004
Location: Athens, Greece
Distribution: Gentoo,FreeBSD, Debian
Posts: 705

Original Poster
Rep: Reputation: 30
Not being able to login as root can be a big problem, you know. I don't need the right answer only; ideas are welcomed too. I'd appreciate any help.
I have to add, that before the appearance of the problem, not only did i fool around with the "chsh" command, but i also installed "Usermin", an administration tool.

Last edited by kpachopoulos; 08-29-2004 at 04:10 AM.
 
Old 08-29-2004, 04:13 AM   #5
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
What is root's shell currently set to? 'finger root' (no quotes) should tell you.
 
Old 08-29-2004, 10:53 AM   #6
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
also: can you simply no 'su' or can you actually not log in as root ie: logout and login as root
 
Old 08-29-2004, 04:57 PM   #7
kpachopoulos
Member
 
Registered: Feb 2004
Location: Athens, Greece
Distribution: Gentoo,FreeBSD, Debian
Posts: 705

Original Poster
Rep: Reputation: 30
"finger root" command shows the following:
----------------------------------------------
kostas@linux:~> finger root
Login: root Name: root
Directory: /root Shell: bash
On since Sun Aug 29 15:47 (EEST) on tty1, idle 0:03
New mail received Sat Aug 28 03:40 2004 (EEST)
Unread since Tue Aug 24 04:30 2004 (EEST)
No Plan.
kostas@linux:~>
-----------------------------------------------------------------
First, with "su" i cannot login at all. Second, i use runlevel three and if i have logged in as root in the terminal and use "startx" command, i am immediately taken into kde as root, but if i use the "gdm" command, i cannot login as root in the "gnome login manager" and the problem described in post 1 appears (the one telling me to have a look in "xsession-errors"
 
Old 08-29-2004, 08:18 PM   #8
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
The shell should be /bin/bash, not bash -- you need the full path in your password file. You should boot into signle user mode, change the shell back to /bin/bash, and you should be set. If that doesn't work, you'll need to boot off of your rescue disk and do it.
 
Old 08-30-2004, 06:53 PM   #9
kpachopoulos
Member
 
Registered: Feb 2004
Location: Athens, Greece
Distribution: Gentoo,FreeBSD, Debian
Posts: 705

Original Poster
Rep: Reputation: 30
Thanks a lot; everything works fine 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
unable to login as user; can login as root. rksanders Debian 24 02-09-2011 09:01 AM
wrong login shell prevent root login cefs99 Linux - Security 4 05-31-2006 09:28 AM
I have re-installed MK 9.2 but cannot login as user, login as root works. bobinglis Mandriva 2 02-22-2004 12:39 PM
can only login as root? user login doesnt work..? anyone? hacking_4_b33r Linux - General 1 02-06-2004 12:40 AM
root login incorrect ,then passwd root,but error sunnycn Linux - Security 6 05-20-2002 11:54 AM


All times are GMT -5. The time now is 05:21 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration