Browse Source

Add .ssh and authorized keys to /etc/skel, makes setting up new

pubkey authentication users with the correct file permissions a bit easier.
ok djm krw henning miod and many others
OPENBSD_4_3
mcbride 17 years ago
parent
commit
045ce10737
2 changed files with 11 additions and 3 deletions
  1. +4
    -2
      src/etc/Makefile
  2. +7
    -1
      src/etc/mtree/4.4BSD.dist

+ 4
- 2
src/etc/Makefile View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.259 2008/01/31 14:18:03 reyk Exp $
# $OpenBSD: Makefile,v 1.260 2008/02/09 12:10:53 mcbride Exp $
TZDIR= /usr/share/zoneinfo TZDIR= /usr/share/zoneinfo
LOCALTIME= Canada/Mountain LOCALTIME= Canada/Mountain
@ -110,7 +110,9 @@ distribution-etc-root-var: distrib-dirs
${INSTALL} -c -o root -g wheel -m 644 dot.mailrc \ ${INSTALL} -c -o root -g wheel -m 644 dot.mailrc \
${DESTDIR}/etc/skel/.mailrc; \ ${DESTDIR}/etc/skel/.mailrc; \
${INSTALL} -c -o root -g wheel -m 644 dot.profile \ ${INSTALL} -c -o root -g wheel -m 644 dot.profile \
${DESTDIR}/etc/skel/.profile
${DESTDIR}/etc/skel/.profile; \
${INSTALL} -c -o root -g wheel -m 600 /dev/null \
${DESTDIR}/etc/skel/.ssh/authorized_keys
cd kerberosV; \ cd kerberosV; \
${INSTALL} -c -o root -g wheel -m 644 README \ ${INSTALL} -c -o root -g wheel -m 644 README \
${DESTDIR}/etc/kerberosV; \ ${DESTDIR}/etc/kerberosV; \


+ 7
- 1
src/etc/mtree/4.4BSD.dist View File

@ -1,4 +1,4 @@
# $OpenBSD: 4.4BSD.dist,v 1.190 2008/01/31 22:44:40 henning Exp $
# $OpenBSD: 4.4BSD.dist,v 1.191 2008/02/09 12:10:54 mcbride Exp $
/set type=dir uname=root gname=wheel mode=0755 /set type=dir uname=root gname=wheel mode=0755
# . # .
@ -132,6 +132,12 @@ ppp
# ./etc/skel # ./etc/skel
skel skel
# ./etc/skel/.ssh
.ssh uname=root mode=0700
# ./etc/skel/.ssh
..
# ./etc/skel # ./etc/skel
.. ..


Loading…
Cancel
Save