Date: Sun, 02 Aug 2020 16:28:27 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 248434] security/acme: Backport fix for running under sudo Message-ID: <bug-248434-7788-uCAT8OUL0m@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-248434-7788@https.bugs.freebsd.org/bugzilla/> References: <bug-248434-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D248434 --- Comment #3 from Dan Langille <dvl@FreeBSD.org> --- (In reply to John W. O'Brien from comment #2) No need to redo. I want to understand this: if [ -n "$SUDO_COMMAND" ]; then #it's a normal user doing "sudo su", or `sudo -i` or `sudo -s` _endswith "$SUDO_COMMAND" /bin/su || grep "^$SUDO_COMMAND\$" /etc/she= lls >/dev/null 2>&1 return $? fi If SUDO_COMMAND is not null exit with the string: "$SUDO_COMMAND" /bin/su || grep "^$SUDO_COMMAND\$" /etc/shells I think that tells the user: "you need to be doing it this way" Am I following? --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-248434-7788-uCAT8OUL0m>