| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| Message-Id: | <3.0.5.32.20050312093212.00b4d0f0@verizon.net> |
| X-Sender: | phumblet AT verizon DOT net (Unverified) |
| Date: | Sat, 12 Mar 2005 09:32:12 -0500 |
| To: | cygwin AT cygwin DOT com |
| From: | "Pierre A. Humblet" <Pierre DOT Humblet AT ieee DOT org> |
| Subject: | ssh-host-config patch |
| Mime-Version: | 1.0 |
This patch makes ssh-host-config handle the case where the user
has renamed the Administrators group in /etc/group or has several
entries with the same SID (e.g. also root).
Pierre
--- ssh-host-config.orig 2005-03-12 09:11:57.196148000 -0500
+++ ssh-host-config 2005-03-12 09:15:41.868023000 -0500
@@ -449,12 +449,10 @@ then
echo "Should this script create a new local account 'sshd_server' which has"
if request "the required privileges?"
then
- _admingroup=`awk -F: '{if ( $2 == "S-1-5-32-544" ) print $1;}' ${SYSCONFDIR}/group`
+ _admingroup=`mkgroup -l | awk -F: '{if ( $2 == "S-1-5-32-544" ) print $1;}' `
if [ -z "${_admingroup}" ]
then
- echo "There's no group with SID S-1-5-32-544 (Local administrators group) in"
- echo "your ${SYSCONFDIR}/group file. Please regenerate this entry using 'mkgroup -l'"
- echo "and restart this script."
+ echo "mkgroup -l produces no group with SID S-1-5-32-544 (Local administrators group)."
exit 1
fi
dos_var_empty=`cygpath -w ${LOCALSTATEDIR}/empty`
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |