dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 0b3da2aceaee3813bfb9f865b5163c079592bf20
parent 827e155d8ee2b4b93690f11ce255841562b23d18
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Tue, 18 Feb 2020 20:00:34 +0100

Fix newuser main command

Diffstat:
M.local/bin/newuser | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.local/bin/newuser b/.local/bin/newuser @@ -72,7 +72,7 @@ add_user() { printf 'adding ssh key to %s\n' "$1" printf 'limiting access to /home/%s\n' "$1" fi - doas "useradd -m $1 && \ + doas sh -c "useradd -m $1 && \ echo 'permit nopass keepenv ad as $1' >> /etc/doas.conf && \ cat $HOME/.ssh/id_rsa.pub >> /home/$1/.ssh/authorized_keys && \ chmod go-rx /home/$1"