scp with su
I am trying to copy some files over the network in between my linux servers. I am using scp command for this. by default direct ssh root login is disabled on all of my linux servers. Normaly we used to login as a normal user and the su to th root user.
unfortunately root user is only having the write permission. Is there any alternative option on scp command to switch to root user before starting the copying. Please help me.
If root login is disabled, then root login is disabled. You'll need to enable root login to enable root login.
There are other ways this could be done than scp, though. You could tunnel a tape archive into ssh, fed into tar or a script that runs tar as root via sudo. something like
|All times are GMT -4. The time now is 07:38 AM.|
Linux and Unix Supported by: vBulletin
Search Engine Optimisation provided by DragonByte SEO v1.1.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Unix & Linux Forums Content Copyright ©1993-2015. All Rights Reserved.
Forum Operations by The UNIX and Linux Forums