ports/main/nnd-s6-services/rc/net/user.sshd/up

18 lines
271 B
Plaintext

#!/bin/execlineb -P
s6-envdir -i /etc/s6/env/core/path
importas -i PATH PATH
emptyenv
export PATH $PATH
define SHELL /sbin/nologin
define USER sshd
fdclose 1
fdclose 2
foreground {
exec adduser -s $SHELL -H -D $USER
} if -nt {
importas status ? test $status -eq 1
}