Possible to grant permissions via config file?Solved

I've built my own server and I'm trying to make the plugin management easier, burrently i have been typing them into the Batch server console... can i add them into the server cfg file instead... I'm thinking of: \Rust_Server\server\Server_Folder\cfg\serverauto.cfg?

If not this file, is there another?
And could someone give me the path and filename?

I have a dedicated server which has no local console or GUI... so everything is manual.

Is there a guide I should have followed?

Is this in the wrong place?

I'm assuming you have a hosted server.

You need to connect to your server using RCON (remote console), assuming that's configured and working properly - either from a web RCON client (https://facepunch.github.io/webrcon/#/home) or software such as RustAdmin for Windows. Then you'll have console access and can manage uMod/Oxide plugins and permissions.

Corrosion Hour's website has a good starter for permissions - you can find more through searches.

Console commands for plugin management is basically oxide.plugins (o.plugins for short) to list installed plugins, o.reload, o.unload, and o.load after you've uploaded the plugins via http://FTP. You edit their JSON config files, re-upload those configs, then o.reload the relevant plugin as necessary to load the changes, which take effect immediately for most plugins.

Thanks for this info, I have been looking at the .json files for the plugins since your post.

I have access to the console, but rather than typing the oxide.grant .... perms in manually I was hoping to have a file somewhere I could put all of them in so when I boot up the server after a wipe or reinstall etc all of the perms can be added without this manual intervention.

My server is not hosted BTW, I have a dedicated server. I don't need to use RCON.

You can run any available console commands via the server.cfg file, but you would be running the permission ones unnecessarily as they only need to be ran once for permissions/groups to be granted.

Oh thats interesting and exactly what I was looking for.
How often are the commands in the server.cfg file ran?

Wondering how much performance impact this could be.

 

Commands in server.cfg are ran during server startup only. You would see a lot of text in your console/logs during startup for each attempt when granding permissions.

Understood, thats no issue for me due to the way I'm running my server.

Last related query and then I think I can set this to solved...

Is the server.cfg file to add these commands in the below?

\\....\Rust_Server\server\Server_Folder_Name\cfg\serverauto.cfg

Im assuming the file name is serverauto.cfg or server.cfg and can be edited and saved manually in notepad?

You would use server.cfg, not serverauto.cfg; but notepad is fine.
Ok I don't have this file in my Rust server directory, so I assume creating this file in the same path will do the trick?
So: \\....\Rust_Server\server\Server_Folder_Name\cfg\server.cfg
You would create it.

Thank you both for your help and info!

I've learnt a lot today!

Locked automatically