LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 09-20-2019, 12:48 PM   #1
Cebrayil
LQ Newbie
 
Registered: Sep 2019
Posts: 1

Rep: Reputation: Disabled
no job control on this shell


I am trying to reset root password of my ubuntu 12.04.When Grub menu open I am clicking 'e' button and add rw init=/bin/bash instead of ro splash quite handoff.After doing this, root shell is opening but can not insert anything with keyboard .There is error a no job control in this shell.
 
Old 09-21-2019, 07:22 AM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
It's complicated (to be honest, more complicated than I understand ). You find explanations on the internet why a shell might issue this message, for example https://stackoverflow.com/a/11821441/3548109.

In your situation, the problem should be solved with a Bourne Shell instead of Bash. Find out where it resides, perhaps /bin/sh, and use init=/bin/sh.

EDIT: I am currently working on a Xubuntu system, where /bin/sh is a symbolic link to /bin/dash. dash also features job control, but it's size is about a tenth of bash. Perhaps it's better suited than bash. Right now, I can't see how to install the Bourne shell on Ubuntu.

Last edited by berndbausch; 09-21-2019 at 07:27 AM.
 
Old 09-21-2019, 07:39 AM   #3
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
but why do you want to do this?

the simplest solution would be to select recovery option in grub

an alternative is to boot a liveCD/DVD/USB
mount root partition
chroot and then run passwd

Since your Ubuntu 12.04 is old, ( expired in 2017 )
you should upgrade it
and the best way is a fresh install

you will want to backup data.
 
2 members found this post helpful.
  


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
bash: no job control in this shell Altair314 Linux - Newbie 5 08-26-2018 11:49 AM
Change Control at the Bash Shell? Version Control of Bash History gdizzle Linux - Enterprise 2 04-26-2015 05:56 PM
tc traffic control tc traffic control Linux QoS control tool(noob help) inv|s|ble Linux - General 1 07-26-2007 11:12 AM
[Shell] Job control in a script probabil1ty Programming 2 12-30-2006 02:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

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