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.

Options
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)

Options

Topic review

martin

And does the /bin/sftp-server exists?
Guest

Martin, Thanks a lot for your reply.
Actually, I have tried both SFTP and Shell.

If set SFTP server to "sudo /bin/sftp-server", the login fail, it says

Sever sent command exit status 1
Cannot initialize SFTP protocol. Is the host running an SFTP server?
martin

Re: Shell sudo -s has no effect

The Shell option is for the SCP protocol. While it seems that you are using the SFTP protocol. So use the SFTP server option.

See https://winscp.net/eng/docs/faq_su
Guest

Shell sudo -s has no effect

This maybe a frequently asked question, but I do checked the FAQ and searched a lot.

What I did is:
1. Add "myname ALL = NOPASSWD: ALL" into /etc/sudoers
2. Advanced site settings -> Shell -> Shell, input sudo -s

After this, I am still telled if edit files with rwxr-xr-x

Permission denied.
Error code: 3
Error message from server: Permission denied

Could anyone help me with the problem?
Any help will be highly appreciated.