Re: disable 'su' for normal users
From: Vincent Danen (vdanen@freezer-burn.org)Date: 11/10/01
- Previous message: Dallas Engelken: "RE: disable 'su' for normal users"
- Maybe in reply to: Luciano Miguel Ferreira Rocha: "Re: disable 'su' for normal users"
- Next in thread: Michael H. Warfield: "Re: disable 'su' for normal users"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 9 Nov 2001 17:34:39 -0700 From: Vincent Danen <vdanen@freezer-burn.org> To: Jose Nazario <jose@biocserver.BIOC.cwru.edu> Subject: Re: disable 'su' for normal users Message-ID: <20011109173439.E4205@mandrakesoft.com>
On Fri Nov 09, 2001 at 06:02:26PM -0500, Jose Nazario wrote:
> On Thu, 8 Nov 2001, bugtraq wrote:
>
> > I was wondering how one can disable the su-command for a normal user.
>
> GNU derived 'su', which is typically found on Linux, doesn't enforce what
> every other UNIX does, which is 'wheel' group requirements. this is for
> poilitical/philosophical reasons.
>
> someone will point out how to use PAM to do this, i hope. i don't know a
> whole lot of PAM so i wont comment on it. however, a cheap and simple way
> to do it is this:
>
> # chgrp wheel /bin/su
> # chmod o-rwx /bin/su
>
> now if people are in 'wheel', the group, they can su. no muss, no fuss. it
> should look something like this:
>
> $ ls -l /bin/su
> -rwsr-x--- 1 root wheel 12288 Mar 2 2001 /bin/su*
>
> enjoy. this allows you to have trusted users in the wheel group who can do
> symtemly things ...
Your other option (and one I prefer), is to use sudo as a "frontend"
to su. If you strip the suid bit from su, then only root can use it.
Setup sudo to allow access to su (as root) for particular user(s) and
then you don't have to worry about this wheel thing.
This is my preferred solution, at any rate. This way anyone can still
try to use su, and even if they know the root (or other user's)
passwords, they can't actually do the su because it is not setuid.
-- vdanen@mandrakesoft.com, OpenPGP key available on www.keyserver.net 1024D/FE6F2AFD 88D8 0D23 8D4B 3407 5BD7 66F9 2043 D0E5 FE6F 2AFD - Danen Consulting Services www.danen.net, www.freezer-burn.org - MandrakeSoft, Inc. Security www.linux-mandrake.comCurrent Linux kernel 2.4.8-31.1mdk uptime: 11 days 2 hours 16 minutes.
- application/pgp-signature attachment: stored
- Previous message: Dallas Engelken: "RE: disable 'su' for normal users"
- Maybe in reply to: Luciano Miguel Ferreira Rocha: "Re: disable 'su' for normal users"
- Next in thread: Michael H. Warfield: "Re: disable 'su' for normal users"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|