Topic "PermitRootLogin = No ; switch user to root through WinSCP"

Author Message
ragingspeed
[View user's profile]

Joined: 2015-04-15
Posts: 2
Location: Malta
Hi,

Recently we had to implement a security policy where all our Linux servers have to have the following enabled ...

PermitRootLogin = No

As you know, this means that to access Root, we have to login with one of our Admin user names, then switch to root using su - root

Our question is, can we switch to root through WinSCP application after logging in with an Admin user? This is very important to us since we do have numerous instances where we have to use Root through WinSCP

Thanks a lot in advance for assistance and support
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Please read documentation:
https://winscp.net/eng/docs/faq_su

If that does not help, come back.
ragingspeed
[View user's profile]

Joined: 2015-04-15
Posts: 2
Location: Malta
hi prikryl,

thanks for your feedback.

however we are afraid that this cannot solve our request... we wish to change the user to root through WinSCP in similar way as we do in the terminal emulator that is as follows ...

- login as sysadmin user (provide username and password)
- su - root
- provide root password

Thanks very much in advance for assistance... needless to say that such an option would very much greatly be of value for us




prikryl wrote:
Please read documentation:
https://winscp.net/eng/docs/faq_su

If that does not help, come back.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
ragingspeed wrote:
however we are afraid that this cannot solve our request... we wish to change the user to root through WinSCP in similar way as we do in the terminal emulator that is as follows ...

- login as sysadmin user (provide username and password)
- su - root
- provide root password

WinSCP cannot prompt for a root password due to constraints imposed by the SFTP/SCP protocols and su implementation. Otherwise the procedure is the same.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License