usermin/usermin-1.834-install_noroot.patch

21 lines
559 B
Diff
Raw Permalink Normal View History

--- usermin-1.834/setup.sh.orig 2022-02-19 19:07:52.274577698 +0100
+++ usermin-1.834/setup.sh 2022-02-19 19:08:20.217420597 +0100
@@ -33,17 +33,6 @@
echo "systems and common Unix services to be easily administered."
echo ""
-# Only root can run this
-id | grep "uid=0(" >/dev/null
-if [ $? != "0" ]; then
- uname -a | grep -i CYGWIN >/dev/null
- if [ $? != "0" ]; then
- echo "ERROR: The Usermin install script must be run as root";
- echo "";
- exit 1;
- fi
-fi
-
# Use the supplied destination directory, if any
if [ "$1" != "" ]; then
wadir=$1