tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* Summary: ACL help requested.
@ 2002-04-03 20:45 Brown, Tony
  0 siblings, 0 replies; only message in thread
From: Brown, Tony @ 2002-04-03 20:45 UTC (permalink / raw)
  To: tru64-unix-managers

[-- 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:&nbsp; </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.&nbsp; ACL won't work because the =
code checks internally to see who is running it.&nbsp; 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.&nbsp; lpc enable is flagged in lpc.c as a priviledged command, =
and anyone but root is stopped.&nbsp; 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">&quot;ERRORS</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Courier New">&nbsp; The following diagnostic =
messages are possible.</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier New">...</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier New">&nbsp; Privileged command</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier =
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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.&nbsp; =
Don't see any reference to a supported way around it.&nbsp; </FONT></P>
<BR>
<BR>

<P><FONT FACE=3D"Arial"><SPAN LANG=3D"en"></SPAN></FONT><SPAN =
LANG=3D"en">&nbsp;<FONT SIZE=3D1 FACE=3D"Tahoma">-----Original =
Message-----</FONT></SPAN>

<BR><SPAN LANG=3D"en"><B><FONT SIZE=3D1 FACE=3D"Tahoma">From: =
&nbsp;</FONT></B> <FONT SIZE=3D1 FACE=3D"Tahoma">Brown, Tony&nbsp; =
</FONT></SPAN>

<BR><SPAN LANG=3D"en"><B><FONT SIZE=3D1 =
FACE=3D"Tahoma">Sent:&nbsp;&nbsp;</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:&nbsp;&nbsp;&nbsp;&nbsp;</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:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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&nbsp;&nbsp;&nbsp;&nbsp; </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&gt; /usr/sbin/lpc</FONT></SPAN>

<BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"r_ansi">lpc&gt; 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">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printer is on =
remote host ISAPPS3 with name text</FONT></SPAN>

<BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 =
FACE=3D"r_ansi">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; queuing is =
disabled</FONT></SPAN>

<BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 =
FACE=3D"r_ansi">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printing is =
disabled</FONT></SPAN>

<BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 =
FACE=3D"r_ansi">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; no =
entries</FONT></SPAN>

<BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 =
FACE=3D"r_ansi">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; no daemon =
present</FONT></SPAN>

<BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"r_ansi">lpc&gt; 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&gt; =
</FONT></SPAN>
</P>

<P><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"Arial">Any Ideas?&nbsp; =
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--

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-04-03 20:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-03 20:45 Summary: ACL help requested Brown, Tony

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox