We help IT Professionals succeed at work.

winscp to linux with admin privileges

233 Views
Last Modified: 2018-09-14
I have several linux systems. Normally I login on them with my account, and after I login i execute sudo -s, so I can get admin privileges.
Sometimes I need to edit some files or copy some files out of the linux systems and in the past I ofter used the winscp program.
Unfortunately when I login with winscp with my account I don't have admin privileges, and thus I am not able to open and edit needed files, I am not able to copy files out of the system. Can you tell me how to login with winscp with admin privileges
Comment
Watch Question

Scott SilvaNetwork Administrator
CERTIFIED EXPERT

Commented:
You would need to login with an account that has root privileges. I don't think WINSCP has any form of sudo support. Or you would need to login via SSH and use the elevated command prompt to copy the files you need in and out of your home folder, then use winscp to get them from there...
nociSoftware Engineer
CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
You would need to use SCP protocol with a ssh-certifcate and ONLY allow root to logon with the right certificate.
and have each user use their OWN certificate to still keep the tracking of who dit what, when..
Jr. Linux System Administrator
CERTIFIED EXPERT
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION

Author

Commented:
I tried as it is suggested in the article above, choose the SCP protocol , and in shell settings put sudo su-, and I receive the error message: error skipping startup message. Your shell is probably incompativle with the application(BASH is recommended)
 I also tried with the sudo -s and the same message appear

Author

Commented:
i downloaded new version of winscp and now it's working. Thank you Rahul.

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions