Hey.
My problem is that Everyone can use admin commands. That is, if there is a group user, then all commands are in use.
According to the database, there also seems to be a user group.
And no matter how I use setgroup admin / superadmin it goes through but does not update the database as opposed to I left the server.
Currently the es_extended version is: legacy
but same problem with es_extended v1-final (1.2.0) version
My server.cfg settings:
Extended Settings
add_principal group.admin group.user
add_ace group.admin command allow # allow all commands
add_ace group.admin command.quit deny # but don’t allow quit
add_ace resource.es_extended command.add_ace allow
add_ace resource.es_extended command.add_principal allow
add_ace resource.es_extended command.remove_principal allow
add_ace resource.es_extended command.stop allow
– Start
start mapmanager
start chat
start chat_twitter
start spawnmanager
start sessionmanager
start fivem
start mysql-async
start async
start cron
start es_extended
start esx_menu_default
start esx_menu_dialog
start esx_menu_list
start esx_identity
start esx_skin
start baseevents
start load
start np-sounds
##start runcode
– ESX Basic
start instance
start skinchanger
##start esx_multicharacter # es_extended requires Config.Multichar = true
start esx_addonaccount
start esx_addoninventory
start esx_datastore
start esx_society
start esx_service
start esx_billing
start esx_scoreboard
start esx_basicneeds
start esx_license
start hud
#WHITELIST
start DiscordWhitelist
#PUHELIN
start esx_addons_gcphone
start gcphone
Someone else has the same problem:
opened 03:41AM - 12 Aug 20 UTC
closed 09:11PM - 12 Aug 20 UTC
## Bug Report
> Please use the template below and replace all example lines w… ith your issue!
## Issue Checklist
> Please put `x` inside of the box that matches your issue.
- [x] I'm using the latest version (develop branch).
- [x] The issue has occured more than once.
- [x] I have followed the readme and my setup is correct.
- [x] I have searched the ESX forum and Github issues for solution before submitting my issue.
- [x] I'm certain this is an issue with es_extended and not my personal module / script.
## Expected Result
> In a few short sentences please tell us what the expected result / correct behaviour should occur.
**I should not be able to use any commands**
## Current Result
> In a few short sentences please tell us what is currently happening and isn't "normal" (Images are strongly recommended).
**I should not be able to use any commands **
## How to reproduce the problem
> What steps did you take for the issue to occur? What would we have to do for the same result to happen?
1. **I downloaded a fresh download from FiveM to make a server**
2. **I downloaded this version of es_extended v1-final and add required file like asyn etc. set the config up**
3. **run the server. join and i am able to use admin commands like /giveitem etc an my group in the database is set to user**
## Errors
> Screenshot or direct copy and paste of the error from the console window.
`below is basically my cfg.
ensure mapmanager
ensure chat
ensure spawnmanager
ensure sessionmanager
ensure fivem
ensure hardcap
ensure rconlog
ensure scoreboard
add_principal group.admin group.user
add_ace resource.es_extended command.add_ace allow
add_ace resource.es_extended command.add_principal allow
add_ace resource.es_extended command.remove_principal allow
add_ace resource.es_extended command.stop allow
start mysql-async
start es_extended
start esx_menu_default
start esx_menu_list
start esx_menu_dialog`
### Code Block referenced by the error
> If the code references a specific line of code within a file, what line is it?
`example code block for error context`
### Possible Solution
> If you have an idea of a potential solution or have a suggestion of how to fix the issue please write it below.
`I have another server set up with all the other resources like properties, stores, job etc and this still happened. until i removed essentailmode from that server and it worked as it shud. but then after restart, erveryone cud use admin commands. So i created a brand new server with only the baisc files. no jobs, no essentialmode. and i can still use admin commands

`
This line of coding is allowing every user to have admin access
add_principal group.admin group.user
What you are essentially saying is everyone in the user group has access to the admin group commands. This is your issue.
t0nnizi
December 9, 2021, 11:55pm
3
Yes, I have tested here as well:
add_principal group.admin group.user
add_ace group.admin command allow # allow all commands
add_ace group.admin command.quit deny # but don’t allow quit
add_ace resource.es_extended command.add_ace allow
add_ace resource.es_extended command.add_principal allow
add_ace resource.es_extended command.remove_principal allow
add_ace resource.es_extended command.stop allow
but still the user group can use admin commands.
but i can try one more time.
Should I delete this cosing line: add_principal group.admin group.user
?
1 Like
Yes delete that line. Also remember because you are changing permissions to restart your server after you make the changes.
2 Likes
t0nnizi
December 10, 2021, 9:07am
5
to my recollection I have tried, without that line
and the same problem that the user can use admin commands
t0nnizi
December 11, 2021, 9:55pm
6
Now removed from server.cfg:
add_principal group.admin group.user
But did not change anything. You can still use admin rights as a user group. Setjob etc …
My server.cfg now:
Extended Settings:
add_ace resource.es_extended command.add_ace allow
add_ace resource.es_extended command.add_principal allow
add_ace resource.es_extended command.remove_principal allow
add_ace resource.es_extended command.stop allow
be the problem now?:
add_ace resource.es_extended command.add_ace allow
add_ace resource.es_extended command.add_principal allow
system
Closed
January 10, 2022, 9:56pm
7
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.