Working with passwd(1), sysrc(8), service(8) in jail via CBSD
Commands: passwd, sysrc, service
Commands from bsdconf.d module - is a wrapper around the standard FreeBSD sysrc(8), service(8), passwd(1) for adding jname argument for more convenient work with the services and password in jail from the master host.
Via jname= argument specified jail, all that comes after (except passwd, which has yet possible user= ) - not analyzed and treated appropriately utitites as is.
Example1: Mark sshd service in jail1 as active:
% cbsd sysrc jname=jail1 sshd_enable="YES"
% cbsd sysrc jname=jail1 service -l
% cbsd service mode=action jname=jail1 sshd enable
% cbsd service mode=action jname='jail*' sshd start % cbsd service mode=action jname='jail*' sshd onestart % cbsd service mode=action jname='jail*' sshd status
% cbsd passwd jname=jail1
% cbsd passwd jname=jail1 login=web