The next problem was reported earlier by a colleague of mine, but was not published because of the login name, domain name and SID. I have therefore anonymized his text in the hope that you publish this version.
We have CopSSH 5.7.0 x64 installed on a Windows 2012 R2 server. During the installation we supplied a domain account as service account. This resulted in the following entry in ICW\etc\passwd:
There are 2 errors in this entry:
no UID (between "unused:" and ":999"
The server and the service account are part of the same domain.
We determined the SID with the Sysinternals tools PsGetSid, and changed this entry into:
With this modification the CopSSH SFTP server works as expected for users with SFTP-only access.
Problem is when we activate or deactivate a user with the CopSSH control panel the erroneous passwd file entry reappears.
GetAccountSid seems to work fine for local accounts, but in our case not for domain accounts. Is it possible to update GetAccountSid to support domain accounts like PsGetSid does?