summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-06-03 05:36:58 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-06-03 05:36:58 +0000
commitea7e36a022ee9c400307cb677b1e5b55bfab5563 (patch)
treeddb1bcf0efcb5fc38150edeea1a01d419787ad1a
parent4bbf41c98f478a99f12752789647795b9b671ecb (diff)
teach adduser about /sbin/nologin
-rw-r--r--usr.sbin/adduser/adduser.perl15
1 files changed, 5 insertions, 10 deletions
diff --git a/usr.sbin/adduser/adduser.perl b/usr.sbin/adduser/adduser.perl
index 732d546f6f9..ec56d432a93 100644
--- a/usr.sbin/adduser/adduser.perl
+++ b/usr.sbin/adduser/adduser.perl
@@ -1,6 +1,6 @@
#!/usr/bin/perl
#
-# $OpenBSD: adduser.perl,v 1.7 1998/02/16 16:44:24 bitblt Exp $
+# $OpenBSD: adduser.perl,v 1.8 1998/06/03 05:36:57 deraadt Exp $
#
# Copyright (c) 1995-1996 Wolfram Schneider <wosch@FreeBSD.org>. Berlin.
# All rights reserved.
@@ -153,14 +153,9 @@ sub shells_read {
}
}
-# Allow /nonexistent and /bin/date as a valid shell for system utils
- push(@list, "/nonexistent");
- &shell_pref_add("no");
- $shell{"no"} = "/nonexistent";
-
- push(@list, "/bin/date");
- &shell_pref_add("date");
- $shell{"date"} = "/bin/date";
+ push(@list, "/sbin/nologin");
+ &shell_pref_add("nologin");
+ $shell{"nologin"} = "/bin/nologin";
return $err;
}
@@ -1447,7 +1442,7 @@ sub config_write {
print C <<EOF;
#
-# $OpenBSD: adduser.perl,v 1.7 1998/02/16 16:44:24 bitblt Exp $
+# $OpenBSD: adduser.perl,v 1.8 1998/06/03 05:36:57 deraadt Exp $
# $config - automatic generated by adduser(8)
#
# Note: adduser read *and* write this file.