delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/04/03/03:45:27

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Thu, 3 Apr 2008 10:45:00 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: How do I run sshd as a particular user?
Message-ID: <20080403084500.GK4468@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <D06D8751-81CE-408B-931B-66DA714FE1CC AT von-campe DOT com> <47C4A0DB DOT 6020007 AT cygwin DOT com> <6ADC05D7-7602-4123-81EF-1DE06D26E91F AT von-campe DOT com> <D1627F08-4387-4C0A-94B2-5AFC6C1EA325 AT von-campe DOT com> <006301c890e8$4fa2f070$2708a8c0 AT CAM DOT ARTIMI DOT COM> <FB6643AB-610F-46F7-B019-389E82E687C8 AT von-campe DOT com> <20080402132726 DOT GG4468 AT calimero DOT vinschen DOT de> <48B1F68C-02BA-4C66-A152-504906008D30 AT von-campe DOT com>
MIME-Version: 1.0
In-Reply-To: <48B1F68C-02BA-4C66-A152-504906008D30@von-campe.com>
User-Agent: Mutt/1.5.16 (2007-06-09)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
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

On Apr  2 13:55, Alfred von Campe wrote:
> On Apr 2, 2008, at 9:27, Corinna Vinschen wrote:
>> - Does the domain user have an entry in the local /etc/passwd?  sshd
>>   needs that when checking file ownership.  And it allows to specify the
>>   user to cygrunsrv without the "domain\win_username" syntax.
>
> Well, there is an entry for a user of the same name.  Is that enough or is 
> there a way to specify the fact that it's a domain user?

The SID in the pw_gecos field must match.  When in doubt, try
mkpasswd -d -u username.

>> - Did you chown /etc/ssh* and /var/empty to the domain user when trying
>>   to start the service under that account?  That's a must have.
>
> No, I did not know about this either.  I will try these suggestions as soon 
> as I get a chance, but that might not be until I return to the office next 
> week.  A quick question, though.  Instead of making all these changes, is 
> there a better way to (re-)install Cygwin sshd so that it is properly set 
> up for a domain user?

No, that's not supported by the install scripts.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019