Diskless question

Bill Tillman btillman99 at yahoo.com
Sun Sep 15 06:38:46 UTC 2013





________________________________
 From: Bernt Hansson <bah at bananmonarki.se>
To: Bernt Hansson <bah at bananmonarki.se> 
Cc: Julian H. Stacey <jhs at berklix.com>; freebsd-questions at freebsd.org 
Sent: Saturday, September 14, 2013 12:37 PM
Subject: Re: Diskless question
 

On 2013-09-14 15:41, Bernt Hansson wrote:
> On 2013-09-14 11:05, Julian H. Stacey wrote:
>> Hi, Reference:
>>> From:        Bernt Hansson <bah at bananmonarki.se>
>>> Date:        Sat, 14 Sep 2013 09:36:58 +0200
>>
>> Bernt Hansson wrote:
>>> Hello list!
>>>
>>> I have a setup with a diskless machine and working, but I can not log in
>>> as root on the diskless. How to proceed?
>>
>> Log in as non root & see what /var/log shows
>> Mount the media elsewhere then either
>>     give a good look at what might be wrong,
>>     relax some restrictive permissions
>>     create some temporary back doors.
>>     rlogin, ssh, no or simple password on toor etc
>>
>> Cheers,
>> Julian
>
> I solved it. Root did not have a password as strange as it may be.

Unsolved. Root do not have a password, pressing enter at the passwd 
prompt gives "sorry"
_______________________________________________
freebsd-questions at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"



It's been a long time since I did this but there was some command for passwd for root which I had to do as well. The initial diskless boot will login you in with root without a password as I recall. Aha, here it is...

cd /etc
cp passwd master.passwd /pxeroot/conf/default/etc/
cd /pxeroot/etc
pwd_mkdb -d /pxeroot/etc master.passwd

You may need to adjust this based on your setup. I found lots of good info on diskless booting at this site:

http://www.nber.org/sys-admin/FreeBSD-diskless.html


More information about the freebsd-questions mailing list