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

Advertisement

DaveTheDane
Joined:
Posts:
2

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

My WinSCP sessions are running the following executable:
/usr/libexec/openssh/sftp-server
(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?

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum