LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Why does RHEL not boot to a proper shell under single user mode ? (https://www.linuxquestions.org/questions/linux-newbie-8/why-does-rhel-not-boot-to-a-proper-shell-under-single-user-mode-4175476254/)

Grtyop 09-07-2013 12:05 AM

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 =)

unSpawn 09-07-2013 05:50 AM

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.

Grtyop 09-07-2013 08:09 AM

Quote:

Originally Posted by unSpawn (Post 5023548)
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 ?

rockstar05 09-07-2013 08:25 AM

this will help you,
http://www.itworld.com/operating-sys...tcinittab-file

goumba 09-07-2013 08:35 AM

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.


All times are GMT -5. The time now is 04:08 PM.