LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 09-07-2013, 12:05 AM   #1
Grtyop
Member
 
Registered: May 2013
Location: Over the Rainbow..
Distribution: LinuxMint , RedHat
Posts: 31

Rep: Reputation: Disabled
Why does RHEL not boot to a proper shell under single user mode ?


After editing the kernel options with the added word 'single' , the system reboots to a command line interface.

But with RHEL, it always boots to [root@noname /]# . This has no passwd command ability to change passwords. I've to add init=/bin/bash in the kernel options for RHEL to boot correctly to sh.

But when I try the same steps with Fedora, it immediately boots to sh-3.1# which has the passwd command ability to change passwords.

Why does RHEL behave differently ?

Thanks =)
 
Old 09-07-2013, 05:50 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,358
Blog Entries: 55

Rep: Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545
Changing passwords doesn't have anything to do with what shell you use but with mount points (where applicable) and the location of the tools: if /sbin and /usr/sbin are outside the default path then you must prefix the full path.
 
Old 09-07-2013, 08:09 AM   #3
Grtyop
Member
 
Registered: May 2013
Location: Over the Rainbow..
Distribution: LinuxMint , RedHat
Posts: 31

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by unSpawn View Post
Changing passwords doesn't have anything to do with what shell you use but with mount points (where applicable) and the location of the tools: if /sbin and /usr/sbin are outside the default path then you must prefix the full path.
Oh thanks, is the default path you are referring to the $PATH ?
 
Old 09-07-2013, 08:25 AM   #4
rockstar05
Member
 
Registered: Dec 2011
Posts: 64

Rep: Reputation: Disabled
this will help you,
http://www.itworld.com/operating-sys...tcinittab-file
 
1 members found this post helpful.
Old 09-07-2013, 08:35 AM   #5
goumba
Senior Member
 
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Debian, Arch
Posts: 1,163
Blog Entries: 7

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
And just FYI that is a 'proper' shell. Without a shell at all, you'd be unable to do anything. The apparent differences you show is in the prompt only, and we can tell nothing else from there. It could be as simple as RHEL sets a prompt in single user mode, and Fedora does not.
 
  


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
[SOLVED] Rhel 6.0 santiago passwd no affected in single user mode adol83 Linux - Newbie 3 11-12-2012 10:01 AM
Adding a shell script in start up of single user mode.. logan_the_wolverine Linux - Newbie 4 02-22-2012 10:21 AM
[SOLVED] openindiana how to boot into single user mode? struct Linux - Server 3 03-07-2011 03:21 AM
boot to GUI problem want grub boot to single user mode. hocheetiong Linux - Newbie 1 09-26-2007 06:41 PM
single-user mode can't boot eye Red Hat 1 11-19-2003 04:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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