FreeBSD Bugzilla – Attachment 38281 Details for
Bug 60635
Enhanced adduser script allowing different homedir create permissions.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
adduser.sh.diff
adduser.sh.diff (text/plain), 2.19 KB, created by
SIUE non-NIS acct.
on 2003-12-27 21:30:16 UTC
(
hide
)
Description:
adduser.sh.diff
Filename:
MIME Type:
Creator:
SIUE non-NIS acct.
Created:
2003-12-27 21:30:16 UTC
Size:
2.19 KB
patch
obsolete
>--- adduser.sh Sat Dec 27 00:43:54 2003 >+++ /usr/src/usr.sbin/adduser/adduser.sh Sun Mar 23 17:06:44 2003 >@@ -82,7 +82,6 @@ > echo " -L login class of the user" > echo " -N do not read configuration file" > echo " -d home directory" >- echo " -o home directory permissions (octal)" > echo " -f file from which input will be received" > echo " -g default login group" > echo " -h display this usage message" >@@ -152,7 +151,6 @@ > echo "defaultgroups=$ugroups" >> ${ADDUSERCONF} > echo "passwdtype=$passwdtype" >> ${ADDUSERCONF} > echo "homeprefix=$homeprefix" >> ${ADDUSERCONF} >- echo "mode=$mode" >> ${ADDUSERCONF} > echo "defaultshell=$ushell" >> ${ADDUSERCONF} > echo "udotdir=$udotdir" >> ${ADDUSERCONF} > echo "msgfile=$msgfile" >> ${ADDUSERCONF} >@@ -271,9 +269,6 @@ > info "Sent welcome message to ($username)." > } > fi >- >- chmod $mode "$uhome"; >- info "Set permissions of ($uhome) to $mode."; > } > > # get_user >@@ -387,21 +382,6 @@ > fi > } > >-# get_mode >-# Reads an octal number (permissions) in an interactive session or batch >-# session. Sets the user's new home directory to these permissions. >-# >-get_mode() { >- _input= >- >- echo -n "Home directory permissions [$mode]: " >- read _input >- >- if [ -n "$_input" ]; then >- mode=$_input >- fi >-} >- > # get_uid > # Reads a numeric userid in an interactive or batch session. Automatically > # allocates one if it is not specified. >@@ -625,7 +605,6 @@ > get_class > get_shell > get_homedir >- get_mode > > while : ; do > echo -n "Use password-based authentication? [$_usepass]: " >@@ -736,7 +715,6 @@ > printf "%-10s : %s\n" "Class" "$uclass" > printf "%-10s : %s %s\n" "Groups" "${ulogingroup:-$username}" "$ugroups" > printf "%-10s : %s\n" "Home" "$uhome" >- printf "%-10s : %s\n" "Home Perms" "$mode" > printf "%-10s : %s\n" "Shell" "$ushell" > printf "%-10s : %s\n" "Locked" "$_disable" > while : ; do >@@ -802,7 +780,6 @@ > defaultLgroup= > defaultgoups= > defaultshell="${DEFAULTSHELL}" >-mode=0751 > > # Make sure the user running this program is root. This isn't a security > # measure as much as it is a usefull method of reminding the user to >@@ -874,10 +851,6 @@ > -d) > homeprefix="$2" > shift; shift >- ;; >- -o) >- mode="$2" >- shift; shift; > ;; > -m) > case "$2" in
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 60635
: 38281 |
38282