File: paths-in-samples.diff

package info (click to toggle)
sudo 1.9.17p2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 26,624 kB
  • sloc: ansic: 114,008; sh: 13,621; makefile: 9,805; yacc: 2,608; lex: 1,574; perl: 366; python: 362; sed: 265
file content (48 lines) | stat: -rw-r--r-- 1,774 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
From: Bdale Garbee <bdale@gag.com>
Date: Wed, 13 Aug 2025 10:22:56 -0700
Subject: fix paths in sudoers example to match Debian's

Last-Update: 2021-12-13
Forwarded: not-needed
---
 examples/sudoers.in | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/examples/sudoers.in b/examples/sudoers.in
index 46953d6..1be6725 100644
--- a/examples/sudoers.in
+++ b/examples/sudoers.in
@@ -44,7 +44,7 @@ Host_Alias	CDROM = orion, perseus, hercules
 # Cmnd alias specification
 ##
 Cmnd_Alias	DUMPS = /usr/sbin/dump, /usr/sbin/rdump, /usr/sbin/restore, \
-			/usr/sbin/rrestore, /usr/bin/mt, \
+			/usr/sbin/rrestore, /bin/mt, \
 			sha224:0GomF8mNN3wlDt1HD9XldjJ3SNgpFdbjO1+NsQ== \
 			/home/operator/bin/start_backups
 Cmnd_Alias	KILL = /usr/bin/kill, /usr/bin/top
@@ -85,7 +85,7 @@ operator	ALL = DUMPS, KILL, SHUTDOWN, HALT, REBOOT, PRINTING,\
 		sudoedit /etc/printcap, /usr/oper/bin/
 
 # joe may su only to operator
-joe		ALL = /usr/bin/su operator
+joe		ALL = /bin/su operator
 
 # pete may change passwords for anyone but root on the hp snakes
 pete		HPPA = /usr/bin/passwd ^[a-zA-Z0-9_]+$, !/usr/bin/passwd root
@@ -99,13 +99,13 @@ jim		+biglab = ALL
 
 # users in the secretaries netgroup need to help manage the printers
 # as well as add and remove users
-+secretaries	ALL = PRINTING, /usr/bin/adduser, /usr/bin/rmuser
++secretaries	ALL = PRINTING, /usr/sbin/adduser
 
 # fred can run commands as oracle or sybase without a password
 fred		ALL = (DB) NOPASSWD: ALL
 
 # on the alphas, john may su to anyone except root, no flags are allowed.
-john		ALPHA = /usr/bin/su ^[a-zA-Z0-9_]+$, !/usr/bin/su root
+john		ALPHA = /bin/su ^[a-zA-Z0-9_]+$, !/bin/su root
 
 # jen can run anything on all machines except the ones
 # in the "SERVERS" Host_Alias