Hey all,
I am writing this post in this place, because it is probably unrelated to sysutils/qjail, since I've seen it before when I was creating my jails using FreeBSD's handbook guidelines. Nevertheless, I came across this problem again today, when I used sysutils/qjail for the first time. The problem is -as the title already implies- that root's default password inside the jail is empty, not *, which means that any user belonging to wheel group inside that jail, can su(1) to root, or can login as root with an empty password where a root login session is permitted.
Here's what I did:
This must be related to the default /usr/src/etc/master.passwd file used by make installworld that contains an empty root password.
My opinion is that, if this empty password is not needed anywhere, it should either be changed to *, or at least be documented on the FreeBSD handbook, in order to avoid jails with empty root passwords (I came accross this problem more than once).
I am writing this post in this place, because it is probably unrelated to sysutils/qjail, since I've seen it before when I was creating my jails using FreeBSD's handbook guidelines. Nevertheless, I came across this problem again today, when I used sysutils/qjail for the first time. The problem is -as the title already implies- that root's default password inside the jail is empty, not *, which means that any user belonging to wheel group inside that jail, can su(1) to root, or can login as root with an empty password where a root login session is permitted.
Here's what I did:
Code:
# qjail install
# qjail create -n lo1 -d 30 jail 192.168.16.10
# chroot /usr/jails/jail-1
# vipw
# $FreeBSD: release/9.1.0/etc/master.passwd 218047 2011-01-28 22:29:38Z pjd $
#
root::0:0::0:0:Charlie &:/root:/bin/csh
toor:*:0:0::0:0:Bourne-again Superuser:/root:
This must be related to the default /usr/src/etc/master.passwd file used by make installworld that contains an empty root password.
My opinion is that, if this empty password is not needed anywhere, it should either be changed to *, or at least be documented on the FreeBSD handbook, in order to avoid jails with empty root passwords (I came accross this problem more than once).