Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2003
    Location
    AR
    Posts
    2,381

    Give user permission to compile (cpanel)

    Hi there. I'd like to give my username on my server permission to access g++ to compile custom C++ programs. I know I can just su - and compile as root, but I really don't like that.

    What do I need to do to allow ONLY my username permission to do that?

    Kevin

  2. #2
    Join Date
    Oct 2004
    Location
    Kerala, India
    Posts
    4,750
    If the binary /usr/bin/gcc has got 755 permission users can use it.

    ls -al /usr/bin/gcc

    to set permission 755

    chmod 755 /usr/bin/gcc

    If you need only one user to use gcc, make a new group, add the username to that group and make the group of /usr/bin/gcc as the new group.
    David | www.cliffsupport.com
    Affordable Server Management Solutions sales AT cliffsupport DOT com
    CliffWebManager | Access WHM from iPhone and Android

  3. #3
    Join Date
    Apr 2005
    Location
    Cochin
    Posts
    2,446
    Sam
    Supportlobby.com - Expertise in Windows/Linux server support, IaaS and PaaS Management
    Spiralbean.com - Custom Software Development
    Email: exec @ activelobby.net | Skype: unni_active

  4. #4
    Join Date
    Feb 2003
    Location
    AR
    Posts
    2,381
    I knew that method - I just didn't know if there was a preferred method for doing this on cPanel servers.

  5. #5
    Join Date
    Apr 2005
    Location
    Cochin
    Posts
    2,446
    Quote Originally Posted by kcackler View Post
    I knew that method - I just didn't know if there was a preferred method for doing this on cPanel servers.
    Using whm you can just add the existing users to wheel group. So if you wish to create an entirely new group/user this is the method
    Sam
    Supportlobby.com - Expertise in Windows/Linux server support, IaaS and PaaS Management
    Spiralbean.com - Custom Software Development
    Email: exec @ activelobby.net | Skype: unni_active

Posting Permissions

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