Restricting some features with feature_sets

Silmari

New member
Joined
Nov 19, 2021
Messages
3
Location
Lithuania
I'm trying to restrict some features for Evolution skin using feature_sets. I want all features to be enabled except several that I list in commands.deny

According to https://www.directadmin.com/features.php?id=2199 :
if you have commands in command.deny, but commands.allow is not set at all, then all commands are allowed, except the values in commands.deny.

So I've created the only file in new folder "my_set" with the following content (for testing purposes):

Code:
# cat /usr/local/directadmin/data/templates/feature_sets/my_set/commands.deny
CMD_TICKET_CREATE

And in /root/d/users/username/user.conf I've added this value:
Code:
feature_sets=my_set

However, ticket create function is still working.

I achieve what I want if I create commands.deny file in users folder /usr/local/directadmin/data/users/username/commands.deny but it means that if I want to change something for like 100 users in the same server, I will have to edit 100 files instead of one /usr/local/directadmin/data/templates/feature_sets/my_set/commands.deny

If I use these values ( feature_sets=core_functions:email_only:my_set ), I cannot do almost anything (including all things with domains) but ticket creation still works.

What is the correct way to allow everything instead of listed (denied) features?
 
You are looking at the per user options. The global options can be found here:

So in your case, if I'm not mistaken, add this line to your directadmin.conf file:
never_commands=CMD_TICKET_CREATE
and restart directadmin.

However, they will get a notice that they are not allowed.

This is a very old option, but also still seems to work.
maybe nicer because that way you can refer to your own support page.
 
never_commands disables some feature for everyone in the server, right? Including admin. I want to disable them only for user and leave admin unrestricted. Ticket command was only an example, just for testing purposes.
 
Back
Top