search for: 243a21f1

Displaying 1 result from an estimated 1 matches for "243a21f1".

2009 Nov 24
1
Copiying /etc/shadow with sudo and rsync
Hello, I have 2 server, which must rsync some files, including /etc/passwd and /etc/shadow. Everything was working fine until we decided to forbid rootlogin on the server, and use sudo for the sync. My problem is that /etc/shadow has a file permission of 400, so the non privilegd user can not read it, so I can use a command like this: rsync --rsync-path='sudo rsync'