$ ssh -t remote sudo id # enter password hidden
$ rsync -axHv -e ssh --rsync-path="sudo rsync" remote:/ ./ # copy files with cached sudo rights
Changed files:
config.patch -> 1.1
sudo.spec -> 1.183
--- /dev/null
+--- sudo-1.7.6/sudoers.in~ 2010-08-18 14:25:38.000000000 +0300
++++ sudo-1.7.6/sudoers.in 2011-08-15 19:32:35.509228012 +0300
+@@ -55,6 +55,9 @@
+ ## this may allow users to subvert the command being run via sudo.
+ # Defaults env_keep += "XMODIFIERS GTK_IM_MODULE QT_IM_MODULE QT_IM_SWITCHER"
+ ##
++# Uncomment to disable TTY tickets
++# Defaults !tty_tickets
++#
+ ## Uncomment to enable logging of a command's output, except for
+ ## sudoreplay and reboot. Use sudoreplay to play back logged sessions.
+ # Defaults log_output
Source3: %{name}.logrotate
Patch0: %{name}-libtool.patch
Patch1: %{name}-env.patch
+Patch2: config.patch
URL: http://www.sudo.ws/sudo/
BuildRequires: autoconf >= 2.53
BuildRequires: automake
# only local macros
mv aclocal.m4 acinclude.m4
# do not load libtool macros from acinclude
-cp acinclude.m4 acinclude.m4.orig
+cp -p acinclude.m4 acinclude.m4.orig
%{__sed} -i -e '/Pull in libtool macros/,$d' acinclude.m4
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
%{__mv} install-sh install-custom-sh