208 | | * (optional) Set up users, groups, and sudo access in chroot. Compare /etc/passwd, /etc/shadow, /etc/group/, /etc/hosts, and /etc/sudoers from the base machine to the equivalent /var/chroot/lucid/etc/* in the chroot. Copy your user and group to the chroot files. Also copy the 'admin' group for and add 'admin' access in the chroot sudoers file. Setup the home directory for your user: |
| 208 | * (optional) Set up users, groups, and sudo access in chroot. Compare /etc/passwd, /etc/shadow, /etc/group, /etc/gshadow, and /etc/sudoers from the base machine to the equivalent /var/chroot/lucid/etc/* in the chroot. Copy your user and group to the chroot files. Copy the hosts file from the base machine into the chroot. |
| 209 | {{{ |
| 210 | $ sudo cp /etc/hosts /var/chroot/lucid/etc/ |
| 211 | }}} |
| 212 | |
| 213 | Also copy the 'admin' group for and add 'admin' access in the chroot sudoers file. Setup the home directory for your user: |