Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)


Topic review


Thanks for sharing your solution.

The problem was the -c. This worked:
sudo  -u another  /usr/libexec/openssh/sftp-server

login with sudo -u another (i.e. change to a non-root user)

My WinSCP sessions are running the following executable:

(determined by ps -ef | grep 'ftp')

From a PuTTY session I can change (to a non-root) user with the following command:
sudo -u another -i

I'd like to do that with WinSCP.
Under "Advanced Settings" I configured "SFTP Server" as follows:
sudo -u another -c /usr/libexec/openssh/sftp-server

I get the following error message:
Cannot initialize SFTP protocol. Is the host running an SFTP server?

Any ideas what I'm doing wrong?