pkgsrc-wip administration

adding users

  • cd /etc/sshkeys
  • export USERNAME=foo
  • export NAME="Name of User"
  • echo 'key_from_user' > $USERNAME.key
  • useradd -d /home/git-shell -s /usr/pkg/bin/git-shell -g git -c "$NAME" $USERNAME
  • chown $USERNAME $USERNAME.key
  • chmod 600 $USERNAME.key
  • git add $USERNAME.key
  • git commit -m "adding key for $USERNAME"

For NetBSD developers, sync the UID with the one used everywhere else:

  • vipw
  • chown $USERNAME $USERNAME.key