From: "Brown, Tony" <TBrown2 () nmff ! org>
To: tru64-unix-managers
Subject: Summary: ACL help requested.
Date: Wed, 03 Apr 2002 20:45:30 +0000 [thread overview]
Message-ID: <102653755322191.tru64-unix-managers.marc@archive.invalid> (raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: multipart/mixed; boundary="------_=_NextPart_001_01C1DB50.7E1611D3", Size: 8722 bytes --]
This is a multi-part message in MIME format.
------_=_NextPart_001_01C1DB50.7E1611D3
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Thanks to:
Mandell Degerness and Ann Majeske for responding.
The official answer came from Compaq support: =20
Checking the code and lpc man page, I found it uses getuid to figure out =
who is running it...
real uid is going to be the user, not root, so setuid won't work. ACL =
won't work because the code checks internally to see who is running it. =
dop will also fail.
These all have to do with permissions to run the program which you =
already have, since you can do lpc stat. lpc enable is flagged in lpc.c =
as a priviledged command, and anyone but root is stopped. I doubt sudo =
can defeat this either.
The man page for lpc states=20
"ERRORS
The following diagnostic messages are possible.
...
Privileged command
Command may be executed by the superuser only.
The system admin guide references the same thing... have to be superuser =
to run, say, lpc disable. Don't see any reference to a supported way =
around it. =20
> -----Original Message-----
> From: Brown, Tony =20
> Sent: Wednesday, April 03, 2002 10:19 AM
> To: tru64-unix-managers@ornl.gov
> Subject: ACL help requested.
>=20
> Managers,
>=20
> I recently set up ACL's for the user support ...
>=20
> # pwd =20
> /usr/sbin
> # getacl lpc
> #
> # file: lpc
> # owner: root
> # group: bin
> #
> user::rwx
> user:support:rwx
> group::--x
> other::--x
> #=20
>=20
> However ...
>=20
> # su - support
> serverhere.blah.org> /usr/sbin/lpc
> lpc> status lp170
> lp170:
> printer is on remote host ISAPPS3 with name text
> queuing is disabled
> printing is disabled
> no entries
> no daemon present
> lpc> enable lp170
> ?Privileged command
> lpc>=20
>=20
> Any Ideas? Thanks in advance,
>=20
> Tony Brown
> Systems Administrator
> Northwestern Medical Faculty Foundation
> 680 North Lake Shore Drive, Suite 1108
> Chicago, IL 60611
> tbrown2@nmff.org
> 312-695-3975
>=20
------_=_NextPart_001_01C1DB50.7E1611D3
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.0.5762.3">
<TITLE>Summary: ACL help requested.</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">Thanks to:</FONT>
</P>
<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">Mandell Degerness and =
Ann Majeske for responding.</FONT>
</P>
<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">The official answer =
came from Compaq support: </FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Courier New">Checking the code and lpc man =
page, I found it uses getuid to figure out who is running it...</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">real uid is going to be the =
user, not root, so setuid won't work. ACL won't work because the =
code checks internally to see who is running it. dop will also =
fail.</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Courier New">These all have to do with =
permissions to run the program which you already have, since you can do =
lpc stat. lpc enable is flagged in lpc.c as a priviledged command, =
and anyone but root is stopped. I doubt sudo can defeat this =
either.</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Courier New">The man page for lpc states =
</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Courier New">"ERRORS</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Courier New"> The following diagnostic =
messages are possible.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">...</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New"> Privileged command</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier =
New"> Command may be executed =
by the superuser only.</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Courier New">The system admin guide references =
the same thing... have to be superuser to run, say, lpc disable. =
Don't see any reference to a supported way around it. </FONT></P>
<BR>
<BR>
<P><FONT FACE=3D"Arial"><SPAN LANG=3D"en"></SPAN></FONT><SPAN =
LANG=3D"en"> <FONT SIZE=3D1 FACE=3D"Tahoma">-----Original =
Message-----</FONT></SPAN>
<BR><SPAN LANG=3D"en"><B><FONT SIZE=3D1 FACE=3D"Tahoma">From: =
</FONT></B> <FONT SIZE=3D1 FACE=3D"Tahoma">Brown, Tony =
</FONT></SPAN>
<BR><SPAN LANG=3D"en"><B><FONT SIZE=3D1 =
FACE=3D"Tahoma">Sent: </FONT></B> <FONT SIZE=3D1 =
FACE=3D"Tahoma">Wednesday, April 03, 2002 10:19 AM</FONT></SPAN>
<BR><SPAN LANG=3D"en"><B><FONT SIZE=3D1 =
FACE=3D"Tahoma">To: </FONT></B> <FONT SIZE=3D1 =
FACE=3D"Tahoma">tru64-unix-managers@ornl.gov</FONT></SPAN>
<BR><SPAN LANG=3D"en"><B><FONT SIZE=3D1 =
FACE=3D"Tahoma">Subject: </FONT>=
</B> <FONT SIZE=3D1 FACE=3D"Tahoma">ACL help requested.</FONT></SPAN>
</P>
<P><SPAN LANG=3D"en-us"><FONT SIZE=3D2 =
FACE=3D"Arial">Managers,</FONT></SPAN>
</P>
<P><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"Arial">I recently set up =
ACL's for the user support ...</FONT></SPAN>
</P>
<P><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"r_ansi"># =
pwd </FONT></SPAN>
<BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 =
FACE=3D"r_ansi">/usr/sbin</FONT></SPAN>
<BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"r_ansi"># getacl =
lpc</FONT></SPAN>
<BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"r_ansi">#</FONT></SPAN>
<BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"r_ansi"># file: =
lpc</FONT></SPAN>
<BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"r_ansi"># owner: =
root</FONT></SPAN>
<BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"r_ansi"># group: =
bin</FONT></SPAN>
<BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"r_ansi">#</FONT></SPAN>
<BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 =
FACE=3D"r_ansi">user::rwx</FONT></SPAN>
<BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 =
FACE=3D"r_ansi">user:support:rwx</FONT></SPAN>
<BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 =
FACE=3D"r_ansi">group::--x</FONT></SPAN>
<BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 =
FACE=3D"r_ansi">other::--x</FONT></SPAN>
<BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"r_ansi"># </FONT></SPAN>
</P>
<P><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"Arial">However =
...</FONT></SPAN>
</P>
<P><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"r_ansi"># su - =
support</FONT></SPAN>
<BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 =
FACE=3D"r_ansi">serverhere.blah.org> /usr/sbin/lpc</FONT></SPAN>
<BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"r_ansi">lpc> status =
lp170</FONT></SPAN>
<BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 =
FACE=3D"r_ansi">lp170:</FONT></SPAN>
<BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 =
FACE=3D"r_ansi"> printer is on =
remote host ISAPPS3 with name text</FONT></SPAN>
<BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 =
FACE=3D"r_ansi"> queuing is =
disabled</FONT></SPAN>
<BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 =
FACE=3D"r_ansi"> printing is =
disabled</FONT></SPAN>
<BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 =
FACE=3D"r_ansi"> no =
entries</FONT></SPAN>
<BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 =
FACE=3D"r_ansi"> no daemon =
present</FONT></SPAN>
<BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"r_ansi">lpc> enable =
lp170</FONT></SPAN>
<BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"r_ansi">?Privileged =
command</FONT></SPAN>
<BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"r_ansi">lpc> =
</FONT></SPAN>
</P>
<P><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"Arial">Any Ideas? =
Thanks in advance,</FONT></SPAN>
</P>
<P><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"Arial">Tony =
Brown</FONT></SPAN>
<BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"Arial">Systems =
Administrator</FONT></SPAN>
<BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"Arial">Northwestern =
Medical Faculty Foundation</FONT></SPAN>
<BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"Arial">680 North Lake =
Shore Drive, Suite 1108</FONT></SPAN>
<BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"Arial">Chicago, IL =
60611</FONT></SPAN>
<BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 =
FACE=3D"Arial">tbrown2@nmff.org</FONT></SPAN>
<BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 =
FACE=3D"Arial">312-695-3975</FONT></SPAN>
</P>
</BODY>
</HTML>
------_=_NextPart_001_01C1DB50.7E1611D3--
reply other threads:[~2002-04-03 20:45 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox