所有的鸟儿他们都知道, 他们的巢应该筑在什么地方, 鸟儿知道自己该在什么地方筑巢, 那就意味着他们了解他们自己的使命。 我们身为万物之灵的人类, 怎么会不知道,连鸟儿都知道的道理呢?
putty winscp 登录后切换到 root
putty winscp 登录后切换到 root

putty winscp 登录后切换到 root

 

很多linux 默认都没有开放 root 登录,操作的时候会因为权限的问题很麻烦。

sudo -i            /        -su root      ,可以在 putty 里面切换到root

winscp 其实也可以:http://winscp.net/eng/docs/faq_su

 

 

Use sudo on Login

In some cases (with Unix/Linux server) you may be able to use sudo command straight after login to change a user, before file transfer session starts.

FTP protocol does not allow this.

The SFTP and SCP protocols allow for this, but the actual method is platform dependent.

With SFTP protocol, you can use SFTP server option on SFTP page of Advanced Site Settings dialog to execute SFTP binary under a different user. With OpenSSH server, you can specify:

sudo /bin/sftp-server

Note that SFTP server binary may be located elsewhere2) (e.g. in /usr/lib/sftp-server/usr/lib/openssh/sftp-server or /usr/libexec/openssh/sftp-server).

With SCP protocol, you can specify following command as custom shell on the SCP/Shell page of Advanced Site Settings dialog:

sudo -s

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注