Re: avoid su in ssh sessions

tony_at_aplawrence.com
Date: 05/28/04


Date: 28 May 2004 07:41:18 -0700

dpuryear@usa.net wrote:
> On 27 May 2004 13:47:05 -0700, pablo@crecat.com (pablo hernandez)
> wrote:
>
> >Can I avoid user to use "su" command if they log within an ssh
session ?
> >
> >I did not see any any related thing in sshd_config.
>
> Not really. Consider removing world permissions on su, setting group
> ownership to a group such as wheel or su_users, and then putting only
> allowed users in wheel or su_users. Alternatively, quit using su
> entirely, start using sudo, and control user access using sudo rules.

While I certainly agree that sudo has its advantages (see
http://aplawrence.com/Basics/sud.html ), it is indeed possible to
restrict users rights to use su - it's one of the attributes you can
set for any user. It's also possible to give a user specific root
privileges without giving them the root passwrd at all: See the man
pages for "asroot", "auth" and "authorize"

--
Tony Lawrence
http://aplawrence.com/SCOFAQ/


Relevant Pages

  • Re: Help with sudoers and wheel - "Old Guy" or anyone?
    ... > gateway for home LAN and ADSL Internet. ... > explain the wheel group. ... Without having su sudo ... > like to know about the specific commands like for adding groups. ...
    (comp.os.linux)
  • Re: Noob Help On Mounting /dev/acd0
    ... I installed sudo and copied this from sudoers.sample. ... Still I can't mount /dev/acd0 from the wheel group. ... perm acd0 0666 ...
    (comp.unix.bsd.freebsd.misc)
  • Help with sudoers and wheel - "Old Guy" or anyone?
    ... explain the wheel group. ... Without having su sudo ... This sudoers file is rough and I cannot figure out how to make it do what ... I want as user "ohmster"? ...
    (comp.os.linux)
  • Re: Wheel group?
    ... I generally use it to grant su privileges as well as sudo privileges. ... Only members of the wheel group can use su, ... If you uncomment - only wheel members can "su". ...
    (Fedora)
  • Re: avoid su in ssh sessions
    ... Consider removing world permissions on su, setting group ... allowed users in wheel or su_users. ... entirely, start using sudo, and control user access using sudo rules. ...
    (comp.unix.sco.misc)