Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Paste
P568
adduser.sh defaults
Active
Public
Actions
Authored by
admin_hackacad.net
on May 18 2023, 7:46 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Flag For Later
Award Token
Tags
None
Referenced Files
F61402140: adduser.sh defaults
May 18 2023, 7:46 PM
2023-05-18 19:46:54 (UTC+0)
Subscribers
None
diff --git a/usr.sbin/adduser/adduser.sh b/usr.sbin/adduser/adduser.sh
index fb4b51fc23e..ffe5dad2b7c 100644
--- a/usr.sbin/adduser/adduser.sh
+++ b/usr.sbin/adduser/adduser.sh
@@ -657,6 +657,8 @@ input_interactive() {
_usepass="yes"
_logingroup_ok="no"
_groups_ok="no"
+ _all_ok="yes"
+ _another_user="no"
case $passwdtype in
none)
_emptypass="yes"
@@ -817,8 +819,11 @@ input_interactive() {
printf "%-10s : %s\n" "Shell" "$ushell"
printf "%-10s : %s\n" "Locked" "$_disable"
while : ; do
- echo -n "OK? (yes/no): "
+ echo -n "OK? (yes/no) [$_all_ok]: "
read _input
+ if [ -z "$_input" ]; then
+ _input=$_all_ok
+ fi
case $_input in
[Nn][Oo]|[Nn])
return 1
@@ -1030,11 +1035,14 @@ else
input_interactive
while : ; do
if [ -z "$configflag" ]; then
- echo -n "Add another user? (yes/no): "
+ echo -n "Add another user? (yes/no) [$_another_user]: "
+ read _input
+ if [ -z "$_input" ]; then
+ _input=$_another_user
+ fi
else
echo -n "Re-edit the default configuration? (yes/no): "
fi
- read _input
case $_input in
[Yy][Ee][Ss]|[Yy][Ee]|[Yy])
uidstart=`get_nextuid $uidstart`
Event Timeline
admin_hackacad.net
created this paste.
May 18 2023, 7:46 PM
2023-05-18 19:46:54 (UTC+0)
admin_hackacad.net
created this object in space
S1 Global
.
admin_hackacad.net
created this object with visibility "No One".
admin_hackacad.net
changed the visibility from "No One" to "Public (No Login Required)".
May 18 2023, 7:49 PM
2023-05-18 19:49:32 (UTC+0)
Log In to Comment