Link to home
Start Free TrialLog in
Avatar of dedri
dedriFlag for United States of America

asked on

winscp to linux with admin privileges

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
Avatar of Scott Silva
Scott Silva
Flag of United States of America image

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...
Avatar of noci
noci

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..
ASKER CERTIFIED SOLUTION
Avatar of Rahul Shende
Rahul Shende

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dedri

ASKER

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
Avatar of dedri

ASKER

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