CloudLinux Symlink Protection AND PHP selector

HostNodesLTD

Registered
Oct 7, 2016
2
0
1
Georgia
cPanel Access Level
Root Administrator
Hello everyone,

I have issue when enabling

fs.protected_symlinks_create = 1
fs.protected_hardlinks_create = 1

PHP selector gives Error 13 (can't create symlinks).

Problem is that i don't know which GID owns selector process.
I need GID for adding it here

fs.protected_symlinks_allow_gid = id_of_group_linksafe
fs.protected_hardlinks_allow_gid = id_of_group_linksafe

There is no such information in CloudLinux documentation.

Thanks
 

Bazinga

Active Member
Verifed Vendor
Aug 23, 2016
32
7
8
Ukraine
cPanel Access Level
Website Owner
Hello everyone,

I have issue when enabling

fs.protected_symlinks_create = 1
fs.protected_hardlinks_create = 1

PHP selector gives Error 13 (can't create symlinks).

Problem is that i don't know which GID owns selector process.
I need GID for adding it here

fs.protected_symlinks_allow_gid = id_of_group_linksafe
fs.protected_hardlinks_allow_gid = id_of_group_linksafe

There is no such information in CloudLinux documentation.

Thanks
please check linksafe group ID in system and in sysctl settings, they should match. e.g.:
grep linksafe /etc/groups
sysctl -a | grep protected_symlinks_allow_gid
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,237
463
Hello,

I'm happy to see the issue is now resolved. Thank you for updating us with the outcome.