how to disable CageFS for a user

miladtnt

Registered
Jun 28, 2016
2
0
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
 
Last edited by a moderator:

MironJ

Active Member
Dec 9, 2009
43
0
56
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 :)
 

twhiting9275

Well-Known Member
Sep 26, 2002
560
28
178
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.
 

Infopro

Well-Known Member
May 20, 2003
17,075
524
613
Pennsylvania
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.
Your friendly and helpful post differs from the actual CloudLinux docs in what way?
 

twhiting9275

Well-Known Member
Sep 26, 2002
560
28
178
cPanel Access Level
Root Administrator
Twitter
Your friendly and helpful post differs from the actual CloudLinux docs in what way?
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).