LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 12-21-2013, 05:56 PM   #1
jjthomas
Member
 
Registered: Jan 2004
Location: Tacoma, WA
Distribution: Slackware 14
Posts: 242
Blog Entries: 2

Rep: Reputation: 28
Remote installation request root password


I'm trying to do the Remote Installation as provided here. I am able to make the ssh connection, login as root and I am prompted for a password.

From looking at /etc/shadow there does not appear to be a password.

I was able to run passwd from the computer console and change the password to a blank password.

Bug?

-JJ
 
Old 12-21-2013, 06:26 PM   #2
wildwizard
Member
 
Registered: Apr 2009
Location: Oz
Distribution: slackware64-14.0
Posts: 755

Rep: Reputation: 226Reputation: 226Reputation: 226
While I can't help you with the overall setup required I can point out that entering a blank password with passwd does not clear the password but rather sets it as null.

A null password will result in a password prompt and not all programs will allow a blank password in these cases as they consider a null password as an error.
 
Old 12-21-2013, 08:15 PM   #3
jjthomas
Member
 
Registered: Jan 2004
Location: Tacoma, WA
Distribution: Slackware 14
Posts: 242
Blog Entries: 2

Original Poster
Rep: Reputation: 28
I just needed something to get me though the installation. Once the installation was completed, I set a password.

-JJ
 
Old 12-22-2013, 01:29 AM   #4
slac-in-the-box
Member
 
Registered: Mar 2010
Location: oregon
Distribution: slackware64-14.1
Posts: 160

Rep: Reputation: 26
shouldn't need password:

Quote:
start the embedded SSH server (Slackware uses dropbear as the SSH server). You can then do a remote login as root (no password will be asked! Be sure that your network is secure before you attempt this).

Are you booting from a PXE Server?
Is dropbear running?
 
Old 12-22-2013, 03:55 AM   #5
drmozes
Slackware Contributor
 
Registered: Apr 2008
Location: Surrey, England
Distribution: Slackware
Posts: 147

Rep: Reputation: 114Reputation: 114
Quote:
Originally Posted by jjthomas View Post
I'm trying to do the Remote Installation as provided here. I am able to make the ssh connection, login as root and I am prompted for a password.

From looking at /etc/shadow there does not appear to be a password.

I was able to run passwd from the computer console and change the password to a blank password.

Bug?

-JJ
Busybox is built to allow an empty password, and in the run up to releasing 14.1 I found that it was no longer effective, and worked around it for Slackware ARM by adding this hack to the installer's rc.local which just adds in the encrypted 'empty' password:
Code:
sed -i 's?^root:.*?root:joFWnPF2bJhPc:0:0:::::?g' /etc/shadow
However, I thought it'd been fixed properly - perhaps not.
If you need to boot the installer with a working empty password, you could unpack the installer, edit the shadow file and re-pack it.

Code:
cd slackware-14.1/isolinux
mkdir q; cd q
zcat ../initrd.img | cpio -di
sed -i 's?^root:.*?root:joFWnPF2bJhPc:0:0:::::?g' etc/shadow
find . | cpio -o -H newc | gzip -9fv > ../initrd.img

Last edited by drmozes; 12-22-2013 at 05:24 AM.
 
1 members found this post helpful.
Old 12-26-2013, 06:03 PM   #6
jjthomas
Member
 
Registered: Jan 2004
Location: Tacoma, WA
Distribution: Slackware 14
Posts: 242
Blog Entries: 2

Original Poster
Rep: Reputation: 28
drmozes, looks like you provided a solution so I'll mark the thread SOLVED.

Thank you.

-JJ
 
  


Reply

Tags
installation, root password, slackware


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] Unexpected request to enter root password stuart_m Linux - Security 14 05-16-2011 09:08 AM
System Login & Password Request on Installation dcapewell Linux - Newbie 7 09-17-2009 10:58 AM
root password on remote system arut Solaris / OpenSolaris 2 01-03-2005 05:27 AM
Insufficient Privilege instead of Root Password Request buckberger Linux - Security 3 12-25-2004 08:00 PM
Slackware 2.4.22 remote root login no password jerry950 LinuxQuestions.org Member Success Stories 3 02-09-2004 12:40 PM


All times are GMT -5. The time now is 09:38 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration