LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-02-2007, 09:01 PM   #16
automata
Member
 
Registered: Oct 2006
Posts: 51

Original Poster
Rep: Reputation: 15

Both the options give me same result-:
root@place:~#

But the problem persists id I try to be root by being any other user with the options you mentioned it again says
NO Shell.

Automata
 
Old 07-07-2007, 06:22 AM   #17
automata
Member
 
Registered: Oct 2006
Posts: 51

Original Poster
Rep: Reputation: 15
hello,
Is there is anyone who can guide me further.

Automata
 
Old 07-09-2007, 01:43 AM   #18
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Quote:
Originally Posted by Automata
root@place:~#
suggest that you're logged in as root.

This means that part 1 of the solution, namely to give you a shell with root access, has worked. The next step is to actually fix root's login shell settings in the /etc/passwd file, that are causing the error.

So, at the above prompt, open /etc/passwd file in your favorite text editor, go to the line that contains the entry for "root" user and modify its last field (changing "bash" into "/bin/bash"). Then save the file & exit the editor.

Alternatively, just type in "chsh" at this prompt. If it can't find the "chsh" command, don't worry, and revert back to editing /etc/passwd as I mentioned above.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
root has no shell how do i get out of this evzen Linux - Software 2 05-10-2006 09:06 PM
changing root shell surfbass Linux - General 1 10-28-2005 02:03 PM
How to login root shell satimis Linux From Scratch 7 07-11-2005 08:07 PM
get root shell with gdb Musikolo Linux - Security 1 02-15-2005 04:06 PM
su to root in my shell script? lel800 Programming 2 08-20-2003 11:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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