Su with password in one line

2015年4月29日 — echo 'CbEYKFKt' | sudo -S su -c whoami. should work - -c specifies a command for su whereas in you...

Su with password in one line

2015年4月29日 — echo 'CbEYKFKt' | sudo -S su -c whoami. should work - -c specifies a command for su whereas in your example you seem to be running a ... ,2018年1月27日 — su only works without a password if you are already root. Trying to provide a password to it on the command line is a bad idea, it will expose the credential. Don't use su.

相關軟體 WinSCP 資訊

WinSCP
WinSCP 是一個開源免費的 SFTP 客戶端,FTP 客戶端,WebDAV 客戶端和 Windows 客戶端。它的主要功能是在本地和遠程計算機之間進行文件傳輸。除此之外,WinSCP 提供腳本和基本的文件管理器功能.WinSCP 功能:圖形用戶界面(GUI)翻譯成多種語言與 Windows 集成(拖放,URL,快捷方式圖標)U3 支持所有文件的常用操作支持 SFTP 和 SCP 協議通過 SS... WinSCP 軟體介紹

Su with password in one line 相關參考資料
command line - One liner for login using su - Ask Ubuntu

2017年9月12日 — As the account I use is non-root (without superuser permissions), it brings up a password prompt for the user I log into. Is there a way to use su or ...

https://askubuntu.com

How can I apply password to sudo in one line command and ...

2015年4月29日 — echo 'CbEYKFKt' | sudo -S su -c whoami. should work - -c specifies a command for su whereas in your example you seem to be running a ...

https://stackoverflow.com

How to su non-interactively? - Server Fault

2018年1月27日 — su only works without a password if you are already root. Trying to provide a password to it on the command line is a bad idea, it will expose the credential. Don't use su.

https://serverfault.com

Logging in with 'su' without entering a password - Unix & Linux ...

How can I log in with the su command in one line in the terminal? I know that the sudo command can do that: echo [password] | sudo -S [command]. But when I ...

https://unix.stackexchange.com

loging in with 'su' command in one line - Stack Overflow

How can I loging with su command in one line in the terminal? I know that sudo command can do that: echo [password] | sudo -S [command]. But when I try to ...

https://stackoverflow.com

password - Is there a single line command to do `su`? - Ask ...

2013年10月7日 — If you write a password in a command like su <username> -p <password> , it would be stored in plain text in your bash history.

https://askubuntu.com

script to su with password in script without root - Super User

2014年5月29日 — Using su, is there a way to pass the password argument to the command on a single line, without invoking sudo as the users will not have ...

https://superuser.com

sudo with password in one command line? - Super User

You could replace your command line with this: $sudo su. $./configure && make && make install && halt. You will be prompted for your password immediately, ...

https://superuser.com