• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

build-aux/H12-Apr-2017-5,1344,142

contrib/H12-Apr-2017-3,5592,806

m4/H12-Apr-2017-1,6851,591

.gitignoreH A D12-Apr-2017170 2019

.travis.ymlH A D12-Apr-2017169 117

AUTHORSH A D12-Apr-2017168 54

COPYINGH A D12-Apr-20171.2 KiB2118

ChangeLogH A D12-Apr-20178.1 KiB225177

INSTALLH A D12-Apr-201715.4 KiB371289

Makefile.amH A D12-Apr-20171.2 KiB4131

Makefile.inH A D12-Apr-201729.3 KiB900795

NEWSH A D12-Apr-201722 21

READMEH A D12-Apr-20174.4 KiB9172

aclocal.m4H A D12-Apr-201739 KiB1,089992

atov.cH A D12-Apr-20171.7 KiB7964

autogen.shH A D12-Apr-2017538 2713

config.h.inH A D12-Apr-20176.7 KiB264184

configureH A D03-May-2022302.3 KiB11,1909,062

configure.acH A D12-Apr-201711.5 KiB353310

defs.hH A D12-Apr-20174.1 KiB188148

lex.cH A D12-Apr-2017143.1 KiB3,8062,875

lex.lH A D12-Apr-201711.9 KiB540424

main.cH A D12-Apr-201742.7 KiB1,6031,221

op.1H A D12-Apr-201710.1 KiB391387

op.confH A D12-Apr-2017366 190

op.conf-distH A D12-Apr-20172.7 KiB9883

op.conf.complexH A D12-Apr-20172.6 KiB8473

op.list.inH A D12-Apr-2017523 2620

op.pamH A D12-Apr-201767 43

op.paperH A D12-Apr-201714.5 KiB359291

regexp.cH A D12-Apr-201734.9 KiB1,404916

regexp.hH A D12-Apr-2017872 3318

rplregex.cH A D12-Apr-20176.2 KiB219174

rplregex.hH A D12-Apr-20172.1 KiB6130

snprintf.cH A D12-Apr-201730.4 KiB1,069807

strlcat.cH A D12-Apr-20172.5 KiB7729

strlcpy.cH A D12-Apr-20171.7 KiB5925

util.cH A D12-Apr-20172.8 KiB13399

yywrap.cH A D12-Apr-2017124 1110

README

1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
2
3This document is largely out of date, but left for historical interest.
4
5Alec Thomas, 08/06/2005
6
7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
8
9Op is a tool for allowing users to run root privileged commands
10without the root password. It is described in detail in "Op: A Flexible
11Tool for Restricted Superuser Access" by Tom Christiansen. From this
12description Dave Koblas produced an impementation of op in C. Tom's
13original paper is included in this distribution in the file
14"op.paper". Differences between that design and the current
15implementation are noted in the file "op.changes".
16
17I first came into contact with op at Octel in 1992. Over the years I
18added a couple of things, and ported it to architectures Octel cared
19about. Those included SunOS 4.1.x, Solaris 2.2 and greater, AIX,
20HP-UX 9.x, BSDI 1.1 and Linux 1.x. I added support for SecurID access
21control from Security Dynamics. This particular code has only been
22tested under SunOS and Solaris. I also enhanced the syslog stuff so it
23would log the command parameters that op executes as well as the
24command name. Support for Solaris shadow passwords was also added.
25
26I left Octel in 1996, and payed little attention to op for over a
27year. Recently, I had a need for op on Linux 2.0. I had to tweak the
28shadow password implementation to get it to work. while I was at it I
29cleaned up some of the logging code. It seems to work quite well on
30Linux. I've tried hard not to break other platforms with my mods, so
31they probably still work too. 8).I will test this code on any platform
32I need to use it on. If you have ported or built this code on other
33platforms, I'd like to hear from you. You can reach me via email at
34hbo@egbok.com. I'll try to help out with bugs time permitting.
35
36
37**** Disclaimer ****
38
39This code has been extensively tested only on the Sun
40architectures. We have noticed no egregious bugs on those platforms,
41but that's no guarantee such bugs don't exist. That goes double for
42the non-Sun architectures where testing has involved building,
43installing and running "op sh" once or twice.
44
45To build op, edit defs.h to point OP_ACCESS at the full pathname of
46your op.access file. You can study the sample file included with the
47distribution to get an idea of its semantics. Next, edit the Makefile
48and remove comments from  the lines appropriate to your
49architecture.
50
51If you have shadow passwords, define the USE_SHADOW symbol to build in
52Solaris style shadow support. This also works on Linux 2.0.30. Shadow
53passwords on other architectures have not been tested and are not
54supported. If you successfully port op to another platform's shadow
55password implementation, send me the diffs, and I'll try to roll them
56into the main distribution.
57
58 If you have the Security Dynamics ACE server software,
59uncomment the lines pertaining to SECURID. Define SECURIDLIBDIR and
60SECURIDINC to point at where the  sdiclient library, and the ACE
61header files live respectively. The keyword "securid" in op.access
62will enable the client code. Each host that runs op in this mode must
63be configured as a client in the ACE server's database.
64
65After that, a simple make in the source directory should build op. To
66test op, the executable must be setuid root, and the op.access file
67must reside at the place OP_ACCESS points to.
68
69I'm grateful to Tom Christiansen and Dave Koblas for the original
70design and implementation of op. I'm also grateful to all those folks
71who, like Tom and Dave, have made my life easier by giving away
72marvelous, useful source code. I'm happy to give a little bit back, at
73long last.
74
75/* +-------------------------------------------------------------------+ */
76/* | Copyright 1991, David Koblas.                                     | */
77/* |   Permission to use, copy, modify, and distribute this software   | */
78/* |   and its documentation for any purpose and without fee is hereby | */
79/* |   granted, provided that the above copyright notice appear in all | */
80/* |   copies and that both that copyright notice and this permission  | */
81/* |   notice appear in supporting documentation.  This software is    | */
82/* |   provided "as is" without express or implied warranty.           | */
83/* +-------------------------------------------------------------------+ */
84
85	Ditto for my contributions which are Copyright (C) 1995, 1997 by
86	Howard Owen. (hbo@egbok.com)
87
88	And again for contributions by me, Alec Thomas (alec@swapoff.org),
89	Copyright (C) 2002-2005.
90
91