I am trying to get some files from a mounted read-only disk on a remote computer (Ubuntu) using recursive rsync. I am the administrator on both the remote and local machine. For a few files, I am told that I don’t have sufficient privileges to access their directories. I tried to rsync as root@hostname, but it rejects the password I normally use as sudo (this method works ok on an OS X machine I use). In my sshd_config file, PermitRootLogin is set to yes (and it’s not an issue of sshd restart), and there list no list of DenyUsers. Is there still a way I can try to get these files? Thanks.
Share
You have to enable the root account on the other machine.
sshas your normal user and runsudo passwd rootAnd type in your password. Ubuntu, by default, uses the
sudosystem, which doesn’t use therootaccount but instead raises the current user’s privileges.