Shell sudo -s has no effect

Advertisement

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.

Reply with quote

Advertisement

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?

Reply with quote

Advertisement

You can post new topics in this forum