Results 1 to 2 of 2

Thread: how to secure commands by disabling group access?

  1. #1
    Join Date
    Sep 2010
    Beans
    1

    how to secure commands by disabling group access?

    Hi

    I'm running a server using ubuntu 10.04 x64

    I want to disable access of groups to "bin" folder so they cannot execute commands.

    [info: actually because of a bug in cPanel (the control panel I installed) Perl will give access to all hosting users to execute commands.]

    so what i wanna do is to ban some groups on 'bin' folder, for example 'my_group1' and 'my_group2" cannot access bin but 'my_trusted_group' can access it.

    how is it possible?

  2. #2
    Join Date
    Jun 2006
    Location
    Melbourne, Australia
    Beans
    265
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: how to secure commands by disabling group access?

    I may be missing something here but surely this is as simple as;

    Code:
    sudo chgrp my_trusted_group /bin/*
    sudo chmod 754 /bin/*
    However, I must warn you that changing permissions of system files can occasionally produce erratic behaviour.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •