moptry.blogg.se

How to whitelist minecraft server linux
How to whitelist minecraft server linux





how to whitelist minecraft server linux

The process of doing this, however, looks something like this( just for demonstration. There are also ways of creating a named pipe and using GDB to attach it to the running process's STDIN or STDOUT in order to be able to write( send arguments) to or read( see the output) from that process but, this is, however a bit complicated and might not work as expected from the first time( GDB is a source-level debugger and not a regular user program). You need, however, to either change ptrace_scope from 1( default but, will prevent reptyr from attaching processes) to 0( Will revert back to 1 after reboot or you can set it back to 1 after you have finished for optimum security) for reptyr to work like so: echo "0" | sudo tee /proc/sys/kernel/yama/ptrace_scope

#How to whitelist minecraft server linux install

reptyr is available in the Ubuntu repositories so you can install it like so: sudo apt install reptyrĪnd try if it works for you. There is no guaranteed out of the box easy way to do this but, there are tools like reptyr( and others) that try to do that using ptrace. If your main process is started with a script file then you might want to get its PID this way: pgrep -f "ScriptFileName.sh"Ĭhanging ScriptFileName.sh to your script's actual filename. The more the children the harder and more complicated it gets. It gets even harder when that process has children( sub processes under it).

how to whitelist minecraft server linux

That is a totally different matter and it's not easy( for a normal user). What you're asking about, on the other hand, is to detach and transfer a running process/program from its controlling terminal and attach it to a new terminal. You can, only, bring a process/program to the foreground in the same terminal in which it was initially sent to the background.







How to whitelist minecraft server linux