This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How do I run sshd as a particular user?

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 Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]