<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wikidot="http://www.wikidot.com/rss-namespace">

	<channel>
		<title>Uups, i set wrong shell passwd file for root</title>
		<link>http://mybookworld.wikidot.com/forum/t-13989824/uups-i-set-wrong-shell-passwd-file-for-root</link>
		<description>Posts in the discussion thread &quot;Uups, i set wrong shell passwd file for root&quot; - i set root shell in /etc/passwd: /bin/bash
My Book bash is installed: /opt/bin/bash

no i cannot login root user...</description>
				<copyright></copyright>
		<lastBuildDate>Thu, 21 May 2026 16:57:13 +0000</lastBuildDate>
		
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-13989824#post-4883712</guid>
				<title>Uups, i set wrong shell passwd file for root</title>
				<link>http://mybookworld.wikidot.com/forum/t-13989824/uups-i-set-wrong-shell-passwd-file-for-root#post-4883712</link>
				<description></description>
				<pubDate>Fri, 29 Jan 2021 19:41:45 +0000</pubDate>
				<wikidot:authorName>Jonneb</wikidot:authorName>				<wikidot:authorUserId>7246572</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Ups,</p> <p>I setup wrong shell for root user.</p> <p>Default is /bin/sh, and i want switch this to bash, installed bash but write /etc/passwd file:</p> <p>root:&#8230; .. &#8230;/root:/bin/bash</p> <p>Right shell line: /opt/bin/bash no i cannot login root, and sudoers not set, what i can do?</p> <p>i see backup file: /etc/passwd~ and there is working /bin/sh shell, can i restore this?</p> <p>How i can edit /etc/passwd file WITHOUT root access ?</p> <p>Or how i can setup ssh access again, if this is set root password and shell to default ?</p> <p>HELP ME PLEASE!</p> <p>Can i take HDD out and mount partition another pc and edit file?</p> <p>WD MyBook World Edition (WhiteLight) 1tb</p> <p>uname -a<br /> Linux WD 2.6.24.4 #1 Thu Apr 1&#160;16:43:58 CST 2010 armv5tejl unknown</p> <p>cat /etc/model<br /> WWLXN</p> <p>or can i edit some startup files, and write these skript which restore my passwd~ to passwd</p> <p>startupfiles like:</p> <p>/etc/init.d/SxxAddBackupToPasswd.php.</p> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>