FreeBSD Bugzilla – Attachment 160369 Details for
Bug 202664
mergemaster as unprivileged user dumps system default master.passwd into /var/tmp/temproot
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
warn user when not running as root
mergemaster.sh.patch (text/plain), 771 bytes, created by
Willem Jan Withagen
on 2015-08-26 10:24:37 UTC
(
hide
)
Description:
warn user when not running as root
Filename:
MIME Type:
Creator:
Willem Jan Withagen
Created:
2015-08-26 10:24:37 UTC
Size:
771 bytes
patch
obsolete
>Index: usr.sbin/mergemaster/mergemaster.sh >=================================================================== >--- usr.sbin/mergemaster/mergemaster.sh (revision 287027) >+++ usr.sbin/mergemaster/mergemaster.sh (working copy) >@@ -247,6 +247,23 @@ > read DISCARD > } > >+press_to_continue_not_root () { >+ local DISCARD >+ if [ `/usr/bin/id -g` != 0 ]; then >+ echo ' *** Press the [Enter] or [Return] key to continue running as NOT root' >+ echo ' *** This script will require root privileges to be effective' >+ echo -n ' *** ^C to abort' >+ read DISCARD >+ fi >+} >+ >+ >+# >+# Warn about running as non root >+# >+press_to_continue_not_root >+ >+ > # Set the default path for the temporary root environment > # > TEMPROOT='/var/tmp/temproot'
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 202664
: 160369