]> git.pld-linux.org Git - packages/sudo.git/commitdiff
- sample to disable tty tickets, useful if you need to copy files as root remotely:
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 15 Aug 2011 16:36:33 +0000 (16:36 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  $ 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

config.patch [new file with mode: 0644]
sudo.spec

diff --git a/config.patch b/config.patch
new file mode 100644 (file)
index 0000000..d0f6906
--- /dev/null
@@ -0,0 +1,12 @@
+--- 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
index 719a5079bbab0c1d9bd5ec9e05ac4366f35bcb52..e67ea8e2e50b6e048a5ce1e1ede47743b553326c 100644 (file)
--- a/sudo.spec
+++ b/sudo.spec
@@ -32,6 +32,7 @@ Source2:      %{name}-i.pamd
 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
@@ -139,11 +140,12 @@ Ten pakiet zawiera sudo.schema dla pakietu openldap.
 # 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
This page took 0.052811 seconds and 4 git commands to generate.