The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

how to disable CageFS for a user

Discussion in 'CloudLinux' started by miladtnt, Jul 12, 2016.

Tags:
  1. miladtnt

    miladtnt Registered

    Joined:
    Jun 28, 2016
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I want to disable CageFS just for one user
    I ve installed cloudlinux in cpanel

    I need to disable CageFS becouse I installer imagemagick (convert) and it works just in root user... i want to work with it in another user
     
    #1 miladtnt, Jul 12, 2016
    Last edited by a moderator: Jul 13, 2016
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,474
    Likes Received:
    202
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  3. MironJ

    MironJ Active Member

    Joined:
    Dec 9, 2009
    Messages:
    40
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Just force CageFS update with the new installed files (#cagefsctl --force-update), eventually restart httpd (#/scripts/restartsrv_httpd) and that's all, no need for disabling user from the CageFS :)
     
  4. twhiting9275

    twhiting9275 Well-Known Member

    Joined:
    Sep 26, 2002
    Messages:
    538
    Likes Received:
    15
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Twitter:
    So much misinformation and disinformation here. People, if you don't know what you're doing, please, stop trying to be "helpful" , you're only hurting things in the longrun. Sad that even staff are doing this any more.

    To disable cagefs for a user, there are two options

    #1: From ssh (easiest)
    Code:
    cagefsctl --disable username
    
    #2: From WHM
    Login to WHM
    Search for CageFS
    Move the user from 'enabled' to 'disabled

    You can also add the program you're trying to use to the skeleton. There's a couple of methods to doing this, both need to be done from ssh

    #1: RPM
    cagefsctl --addrpm rpmname

    #2: Manual
    Create a custom file in /etc/cagefs/conf.d. Call it my.cfg or something else
    Add something to the file, something like
    Code:
    [my]
    comment=My Configurations here
    paths=/bin/prog1, /bin/prog2, /bin/prog3
    
    Exit the file
    run
    Code:
    cagefsctl --force-update
    
    No http restart should be necessary. No http configs have changed, just new binaries have been added

    In your case
    Code:
    cagefsctl --addrpm ImageMagick
    
    should do what you're looking for.
     
    rpvw and Patrick Heinz like this.
  5. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,474
    Likes Received:
    202
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Your friendly and helpful post differs from the actual CloudLinux docs in what way?
     
  6. twhiting9275

    twhiting9275 Well-Known Member

    Joined:
    Sep 26, 2002
    Messages:
    538
    Likes Received:
    15
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Twitter:
    Your telling someone to RTFM helps someone in what way? It doesn't. It sends the user on a wild goose chase , having them pour through countless pages of documentation that might not actually get them what they're looking for.

    I get it, you're probably not familiar with CL. Great, so, there's no need for you to post in a thread related to CL then. Pretty common sense there. Even for an 'employee' of cPanel. You're not helping, you're misdirecting (though that first line wasn't exactly directed at you, but the misinformation in the post after yours).
     
  7. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,474
    Likes Received:
    202
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    I disagree. My link is to the actual page with the same command you posted. He may not trust yours, or mine, but he should be able to trust the actual docs.

    I run CloudLinux on all my servers.

    Please calm down.
     
Loading...

Share This Page