1. 程式人生 > >WinSCP得到root許可權 ubuntn

WinSCP得到root許可權 ubuntn

WinSCP如果進行sudo?

首先 要在 /etc/sudoer

最後一行加上
你的使用者名稱 ALL=NOPASSWD:ALL

 

然後到 winscp裡的編譯一下站點屬性

SFTP -> SFTP 伺服器 輸入 sudo /usr/lib/openssh/sftp-server

注意:預設下拉選項是 sudo su -c /bin/sftp-server 這個好坑 用這個連不上

然後  Shell 選用這個 sudo su -

這樣重新登入WinScp就是root許可權  ,最好建兩個 如果不需要這個許可權 就不要用這個登呀

 

 

這裡沒圖,要看圖可以參看這個文章

https://blog.csdn.net/SSS_Benjamin/article/details/88406785

https://blog.csdn.net/qq_33182756/article/details/72235471

 

https://blog.csdn.net/qq_36975671/a