Answer the question
In order to leave comments, you need to log in
How to give root on the server and write commands?
Do not rush to accuse me of lamerism, the situation is such
that one tricky script needs to be installed at work, but it can’t be installed in any way, then one tenth
I created a cheap VPS and I want to give root access to the developer there, let him do it right, but I need to know what software and he entered commands that would then be reproduced on a combat vehicle.
Thank you.
Answer the question
In order to leave comments, you need to log in
Use asciinema .
Record session:
asciinema rec filename.req
Play session:
asciinema play filename.req
You can surf the Internet:
asciinema upload filename.req
The result will be something like this:
Linux shells usually write a command history file, just open it and read it.
https://www.shellhacks.com/en/tune-command-line-hi...
on the server, create a user through useradd,
give him rights through sudoers
, the commands he entered, then you can look in ./bash_history if he doesn’t clean them up, or doesn’t take down your account at all, if you give him wrong rights
You can look at the list of installed software through dpkg (if your cheap vps on a debian-like distribution)
In general, this is not a security issue, but a redneck, do you want to pay the developer for the admin work?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question