AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Winscp elevate to root11/13/2023 ![]() Go to your WinSCP profile (Session > Sites > Site Manager) Click on Edit > Advanced. ![]() If I use wrong pwd, I will get "Access Denied" first. I know this is old, but it is actually very possible. Use the sudo command to elevate the privileges or invoke a root user shell. ![]() Log in using a previously created admin account. Is the host running an SFTP server?" msg. Follow the steps below to elevate the prompt: CLI: Access the Command Line Interface.You can do this using the CLI button in the GUI or by using a program such as PuTTY. Then I am getting "Connection has been unexpectedly closed error" with "Cannot initialize SFTP protocol. I have tried to use "File protocol=SFTP" => Advanced Environment, SFTP, SFTP server = sudo -u userB /usr/libexec/openssh/sftp-server or sudo /usr/libexec/openssh/sftp-server. With WinSCP, if i use "File protocol=SFTP" => Advanced Environment, SFTP,"SFTP server = "default" or /usr/libexec/openssh/sftp-server, I can access directly as user A no problem. Now I wish to use WinSCP to login as A and sudo to B, then r/w files owned by B. For example, as user A, I can run sudo -u userB whoami without pwd. Then sudo to another non-root user B, without pwd. Below are the WebDAV folders that reside in the root directory (called dav), as well as subfolders that are specifically connected to a. From ssh command line, I can login as a user A, which has (ALL) NOPASSWD: ALL permission. I try to connect to a Linux (Red Hat 8) box. ![]() We are able to connect successfully if the target shell is set to /bin/bash, but changing it to sudo su - results in the following error: <<<. This can typically be accomplished by setting the target shell to 'sudo su -'. I am using latest WinSCP v5.21.5 on my Win10 box. Connect to PSMP with WinSCP using Centrify account stored in EPV. ![]()
0 Comments
Read More
Leave a Reply. |