• TechOps

    Need clarity?
    Chat with our experts now

    • Web Hosting SupportWeb Hosting Support
    • Helpdesk Support

      Skilled and professional 24/7 helpdesk support

    • Product Support

      Boost your product support with our expertise

    • Managed ServicesManaged Services
    • Server Management

      Don't let server issues slow you down. Let us manage them for you

    • Server Monitoring

      Safeguard your server health with our comprehensive monitoring solutions

    • Staff AugmentationStaff Augmentation
    • Hire an Admin

      Transform your business operations with our expert administrative support

    • Hire a Team

      Augment your workforce with highly skilled professional from our diverse talent pool

  • CloudOps

    Confused?
    Discuss with our sales team now.

    • Author ProfileAWS
      Well Architected Review
    • Author ProfileFinOps As a Service

      FinOps As a Service

    • Migrate

      Upgrade the journey: Migrate & Modernize seamlessly

    • Modernize

      Effortless CloudOps mastery for seamless cloud management

    • Optimize

      Efficient CloudOps: Boosting performance through optimization

    • Manage

      Simplify compliance complexities with our dedicated service

  • DevOps

    How Supportsages
    is creating an
    impact?

    View Casestudies
    • Author Profile24/7 DevOps As a Service

      Round-the-clock DevOps for uninterrupted efficiency

    • Author ProfileCI/CD Pipeline

      Automated CI/CD pipeline for seamless deployments

    • Author ProfileInfrastructure As a Code

      Crafting infrastructure with ingenious code

    • Author ProfileDevSecOps

      Integrated security in continuous DevOps practices

    • Author ProfileHire DevOps Engineers

      Level up your team with DevOps visionaries

    • Author ProfileConsulting Services

      Navigate success with expert DevOps consulting

  • SecOps

    Expert SecOps Services
    for any Scale

    • Author ProfileVAPT

      Vulnerability Assessment and Penetration Testing

    • Author ProfileSource Code Review

      Ensuring source code security and safe practices to reduce risks

    • Author ProfileSecurity Consultation

      On demand services for improving server security

    • Author ProfileSystem Hardening

      Reduced vulnerability and proactive protection

    • Author ProfileManaged SOC

      Monitors and maintains system security. Quick response on incidents

    • Author ProfileCompliance as a Service

      Regulatory compliance, reduced risk

  • Insights

    Explore our latest
    insights and resources

    Blog

    Explore our latest articles and insights

    Case Studies

    Read about our client success stories

  • Contact Us

  • About
  • Certifications
  • Life at Supportsages
  • Events
  • Contact
  • Careers
  • Blog

  • Dedicated Support Team
  • Quasi-dedicated Support Team
  • Hire a DevOps Engineer
  • Hire a Billing Support Staff
  • Per-ticket Support Plan
  • Managed Services

  • Microsoft Azure Expert
  • AWS Cloud Expert
  • Hire a developer
SS

SupportSages

Bites of wisdom @ work


Copyright © 2008 - 2026 SupportSages Pvt Ltd. All Rights Reserved.
Privacy PolicyLegal TermsData ProtectionCookie Policy

How to do data transfer using Rsync without root access

Abhilash Padmanabhan

  • 3 min read
How to do data transfer using Rsync without root access

Generating audio, please wait...

There could be many situations where you do not have a root password for many of the servers you interact with where you can not SSH directly in as the root user. Also, the ssh daemons are wisely configured with ‘PermitRootLogin’ set to ‘no’ so a password would be moot anyway. Let us see how to use the rsync without root access in such situations.

Most probably you may have sudo permissions on the servers so that you can connect under your username and sudo the privileged commands as needed.

Set NOPASSWD in the /etc/sudoers file. Here we could have used the username instead of the wheel group

%wheel ALL= NOPASSWD:/usr/bin/rsync

Then use the –rsync-path option to specify the sudo wrapper.

rsync -a -e "ssh" --rsync-path="sudo rsync" [email protected]:/home/user/ /home/user
In normal cases the above should work, If you are getting a warning message like below, there you will need to go for Option 2 as mentioned in the Reference #1, which may or may not work for you
[root@b ~]# rsync -a -e “ssh” –rsync-path=”sudo rsync” [email protected]/home/user/ /home/user
Address xx.xx.xx.xx maps to tr.xxx.xx, but this does not map back to the address – POSSIBLE BREAK-IN ATTEMPT!
[email protected]’s password:
sudo: no tty present and no askpass program specified
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(600) [receiver=3.0.6]

You may also get the same message, if the rsync command is not installed in the source server from which you are rsyncing and in such case, you would need to install rsync package.

References

  1. http://crashingdaily.wordpress.com/2007/06/29/rsync-and-sudo-over-ssh/
  2. http://lists.samba.org/archive/rsync/2004-August/010439.html

Get 24/7 expert server management

  • Howtos
  • Linux
  • Troubleshooting

Looking for AWS Experts?

We provide top-of-the-line custom AWS setup services tailored to your needs.

500 Internal Server due to low RLimitMem value

SupportSages Logo
  • Apache
  • cPanel
  • General
  • Linux
logo

Change all user account passwords in a cPanel server

Change all user account passwords in a cPanel server
  • cPanel
  • Linux
  • Snippets
logo

cPanel, postgresql and a default database issue with 8.4.x versions of postgres

SupportSages Logo
  • cPanel
  • PostgreSQL
  • Troubleshooting
logo

CRITICAL : Serious kernel bug!!! Root privilege escalation

SupportSages Logo
  • Linux
  • VPS
logo
How to do data transfer using Rsync without root access

Posts by Abhilash Padmanabhan

Technology always fascinated me and continues to do so. I started my career back in 2004 as a Junior System Admin and worked in various capacities both in technical and managerial roles. I love to experiment and try out new OSS projects and in free time, go for cycling to the interiors of God's own country, Kerala!