Changeset 7454
- Timestamp:
- Jan 31, 2010, 1:20:34 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
2.0/nanobsd/nanobsd/cfg/nanobsd.wleiden
r7450 r7454 206 206 ) 207 207 208 # Customize nsd209 cust_ nsd() (208 # Customize Security 209 cust_security() ( 210 210 chroot ${NANO_WORLDDIR} sh -c "chown -R bind /var/db/nsd" 211 211 chroot ${NANO_WORLDDIR} sh -c "chmod u+x /usr/local/etc/rc.d/nsd" 212 chroot ${NANO_WORLDDIR} sh -c "chmod 400 /usr/local/sshtun/sshkey" 212 213 ) 213 214 … … 231 232 cust_disable_ssh_password () { 232 233 chroot ${NANO_WORLDDIR} sh -c "mv /etc/ssh/sshd_config /tmp" 233 chroot ${NANO_WORLDDIR} sh -c "cat /tmp/sshd_config | sed -e 's/\# PasswordAuthentication\ no/PasswordAuthentication\ no/' > /etc/ssh/sshd_config"234 chroot ${NANO_WORLDDIR} sh -c "cat /tmp/sshd_config | sed -e 's/\#UsePAM\ yes/UsePAM\ no/g' > /etc/ssh/sshd_config" 234 235 chroot ${NANO_WORLDDIR} sh -c "rm /tmp/sshd_config" 235 236 } … … 303 304 customize_cmd cust_set_root_password 304 305 customize_cmd cust_apply_nanobsd_patches 305 customize_cmd cust_ nsd306 customize_cmd cust_security
Note:
See TracChangeset
for help on using the changeset viewer.