packages: sudo/sudo.spec, sudo/config.patch (NEW) - sample to disable tty t...

glen glen at pld-linux.org
Mon Aug 15 18:36:39 CEST 2011


Author: glen                         Date: Mon Aug 15 16:36:39 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- sample to disable tty tickets, useful if you need to copy files as root remotely:
  $ ssh -t remote sudo id # enter password hidden
  $ rsync -axHv -e ssh --rsync-path="sudo rsync" remote:/ ./ # copy files with cached sudo rights

---- Files affected:
packages/sudo:
   sudo.spec (1.182 -> 1.183) , config.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/sudo/sudo.spec
diff -u packages/sudo/sudo.spec:1.182 packages/sudo/sudo.spec:1.183
--- packages/sudo/sudo.spec:1.182	Mon Apr 11 14:07:05 2011
+++ packages/sudo/sudo.spec	Mon Aug 15 18:36:33 2011
@@ -33,6 +33,7 @@
 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
@@ -140,11 +141,12 @@
 # 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
@@ -257,6 +259,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.183  2011/08/15 16:36:33  glen
+- sample to disable tty tickets, useful if you need to copy files as root remotely:
+  $ ssh -t remote sudo id # enter password hidden
+  $ rsync -axHv -e ssh --rsync-path="sudo rsync" remote:/ ./ # copy files with cached sudo rights
+
 Revision 1.182  2011/04/11 12:07:05  glen
 - up to 1.7.6
 

================================================================
Index: packages/sudo/config.patch
diff -u /dev/null packages/sudo/config.patch:1.1
--- /dev/null	Mon Aug 15 18:36:39 2011
+++ packages/sudo/config.patch	Mon Aug 15 18:36:33 2011
@@ -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
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/sudo/sudo.spec?r1=1.182&r2=1.183&f=u



More information about the pld-cvs-commit mailing list