Skip to content

Commit c6e12d1

Browse files
authored
Merge pull request #1258 from ddpbsd/openbsd_useradd
Fix the useradd and groupadd script on OpenBSD
2 parents 3a7472c + 9bb6cab commit c6e12d1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/init/adduser.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ else
4545
GROUPADD="/usr/sbin/mkgroup"
4646
USERADD="/usr/sbin/useradd"
4747
OSMYSHELL="/bin/false"
48+
elif [ "$UNAME" = "OpenBSD" ]; then
49+
GROUPADD="/usr/sbin/groupadd"
50+
USERADD="/usr/sbin/useradd"
51+
OSMYSHELL="/sbin/nologin"
4852
else
4953
# All current linux distributions should support system accounts for
5054
# users/groups. If not, leave the GROUPADD/USERADD as it was before

0 commit comments

Comments
 (0)