Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Nov 2001 06:40:11 -0800 (PST)
From:      Hiten Pandya <hitmaster2k@yahoo.com>
To:        current@freebsd.org
Subject:   [SUGGESTION] - disallowing shutdown after su(1)
Message-ID:  <20011122144011.50097.qmail@web21104.mail.yahoo.com>

next in thread | raw e-mail | index | archive | help
--0-311395425-1006440011=:49711
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

hi all,

correct me if i am wrong.. but..
do you think, if we denied a shutdown after an su(1)
to root from a non-privileged user would be good...

i tried this same thing at home.. i builded it and
installed it.. works fine for me... the patch below
will allow a shutdown only be logging into root itself
and not by issuing an su(1) command to root.

this would be very good, i think if someone broke into
a normal user and was able to gain access into root
using su... (without a password..)

i am submitting a tar.gz file, which has the patch for
the shutdown.8 manpage, and shutdown.c located at..
src/sbin/shutdown.c...

thanks...


=====
regards,
Hiten Pandya
<hitmaster2k@yahoo.com>
<http://geocities.com/hitmaster2k>;
----------------------------------------------------
Guys!... stay away from Einstein Junior!
----------------------------------------------------

__________________________________________________
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1
--0-311395425-1006440011=:49711
Content-Type: application/x-tar; name="shutdown.tar.gz"
Content-Transfer-Encoding: base64
Content-Description: shutdown.tar.gz
Content-Disposition: attachment; filename="shutdown.tar.gz"

H4sICLEI/TsCA3NodXRkb3duLnRhcgDtV21v2zYQ9lf7VxyyL7YrKaIixy/B
gC5I2vVD2yBJsWFZYNASJRGWREGk7BpD/3uPVPySLO2XYSlQ8IEg8eV4PN6R
D0/Xl79dvL/s/K8gvn8ahtABDf/JFxGMQ4DxyXgc+GEQEgDik2DcAb/zAmik
ojVApxZCfU9unTGWd3463GYMEp4zCZEoFeUli4GXoDIuoaLRkqZs1uvJrFGx
WJfexIt5koCLfSrKIBE17Pv2YtF3xKJe7zaj5VJ6Xs+F37liJVzRMt5QrGZc
FVQqVgfL1xuaCeFFomjbWfm6WX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mumUVLQCN1IqSj
0QpnVJoUA48q3Z3J/Y2e6CXLxkVDvHbAuwSk8OBjxTAlwgSj1W6SHQZXrC64
Uiw2ssetZd/YDPCPFnrYNjVmRfGZaTBFPDnoy1ykuEcGbTtP+n0MbVRUfT3e
aQUHg60igKrGICf9o8vr64/XswMTtXU701oftiOMG13yUNee/GLTEwsLCwsL
CwsLCwsLCwsLCwsLCwsLC4s9vgJf6t1TACgAAA==

--0-311395425-1006440011=:49711--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011122144011.50097.qmail>