Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax error: Unterminated quoted string #100

Closed
priyadarshan opened this issue Oct 24, 2016 · 4 comments
Assignees

Comments

@priyadarshan
Copy link

@priyadarshan priyadarshan commented Oct 24, 2016

I just installed cbsd on a fresh FreeBSD 11-RELEASE, and followed the first tutorial here: https://www.bsdstore.ru/en/tutorial.html but it throws error Syntax error: Unterminated quoted string

root@kavi:~ # cbsd jconstruct-tui
[...]
/usr/jails/ftmp/jcreate_jconf.67746: 48: Syntax error: Unterminated quoted string
Config file for jconf: /usr/jails/ftmp/jail1.67455.jconf

# cat /usr/jails/ftmp/jail1.67455.jconf

# DO NOT EDIT THIS FILE. PLEASE USE INSTEAD:
# cbsd jconfig jname=jail1
relative_path="1";
jname="jail1";
path="/usr/jails/jails/jail1";
host_hostname="jail1.my.domain";
ip4_addr="DHCP";
mount_devfs="1";
allow_mount="1";
allow_devfs="1";
allow_nullfs="1";
mount_fstab="/usr/jails/jails-fstab/fstab.jail1";
arch="amd64";
mkhostsfile="1";
devfs_ruleset="4";
ver="11.0";
basename="";
baserw="0";
mount_src="0";
mount_obj="0";
mount_kernel="0";
mount_ports="1";
astart="1";
data="/usr/jails/jails-data/jail1-data";
vnet="0";
applytpl="1";
mdsize="0";
rcconf="/usr/jails/jails-rcconf/rc.conf_jail1";
floatresolv="1";
zfs_snapsrc="";

exec_poststart="0";
exec_poststop="";
exec_prestart="0";
exec_prestop="0";

exec_master_poststart="0";
exec_master_poststop="0";
exec_master_prestart="0";
exec_master_prestop="0";
pkg_bootstrap="1";
with_img_helpers="";
runasap="0";
interface="auto";
jailskeldir="/usr/jails/share/FreeBSD-jail-skel";
jail_profile="default";
# root password
user_pw_root=''';
emulator="jail"
@priyadarshan

This comment has been minimized.

Copy link
Author

@priyadarshan priyadarshan commented Oct 24, 2016

I have found issue: one cannot use password'

Admittedly, such a short password qould be unsafe in any case (only good for quick testing).

Sorry for the noise.

Thank you for bsd, it is really excellent.

@olevole olevole self-assigned this Oct 24, 2016
@olevole

This comment has been minimized.

Copy link
Collaborator

@olevole olevole commented Oct 24, 2016

Got it. I'll think of something for extra check, Thanks for report!

@priyadarshan

This comment has been minimized.

Copy link
Author

@priyadarshan priyadarshan commented Oct 25, 2016

Thank you. It occurred to me that the issue will come anytime there is a quote sign inside the password, like test', etc.
Let me know if I can be of any help testing.

olevole added a commit that referenced this issue Nov 25, 2016
…nd pw ; dialog-based add user wizard switched to hash-based password, not plain. In jconf new params: user_pw_XXXX_crypt. Based and fix on Issue #100
@olevole

This comment has been minimized.

Copy link
Collaborator

@olevole olevole commented Nov 25, 2016

It is corrected in 11.0.5: 2d94ceb

@olevole olevole closed this Nov 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.